public class DefaultPhysicalTypeMetadata extends org.springframework.roo.metadata.AbstractMetadataItem implements PhysicalTypeMetadata
PhysicalTypeMetadata implementation.| Constructor and Description |
|---|
DefaultPhysicalTypeMetadata(String metadataIdentificationString,
String physicalLocationCanonicalPath,
ClassOrInterfaceTypeDetails cid)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getItdCanoncialPath(ItdMetadataProvider metadataProvider)
Obtains the canonical file path to where an ITD can be emitted for this
physical Java type.
|
String |
getItdCanonicalPath(ItdMetadataProvider metadataProvider)
Obtains the canonical file path to where an ITD can be emitted for this
physical Java type.
|
org.springframework.roo.model.JavaType |
getItdJavaType(ItdMetadataProvider metadataProvider)
Obtains the
JavaType which represents an ITD for this physical
Java type. |
ClassOrInterfaceTypeDetails |
getMemberHoldingTypeDetails()
Obtains the
MemberHoldingTypeDetails, if available. |
String |
getPhysicalLocationCanonicalPath() |
org.springframework.roo.model.JavaType |
getType()
Returns the Java type for this physical type
|
String |
toString() |
public DefaultPhysicalTypeMetadata(String metadataIdentificationString, String physicalLocationCanonicalPath, ClassOrInterfaceTypeDetails cid)
metadataIdentificationString - the ID to assign this
MetadataItem (must
satisfy PhysicalTypeIdentifier.isValid(String))physicalLocationCanonicalPath - the canonical path of the file
containing this Java type (required)cid - the details of this type (required)public String getItdCanoncialPath(ItdMetadataProvider metadataProvider)
PhysicalTypeMetadatagetItdCanoncialPath in interface PhysicalTypeMetadatametadataProvider - so the
ItdMetadataProvider.getItdUniquenessFilenameSuffix()
can be queried (never null)public String getItdCanonicalPath(ItdMetadataProvider metadataProvider)
PhysicalTypeMetadatagetItdCanonicalPath in interface PhysicalTypeMetadatametadataProvider - the MetadataProvider that produces the
ITD in question (never null)public org.springframework.roo.model.JavaType getItdJavaType(ItdMetadataProvider metadataProvider)
PhysicalTypeMetadataJavaType which represents an ITD for this physical
Java type.getItdJavaType in interface PhysicalTypeMetadatametadataProvider - so the
ItdMetadataProvider.getItdUniquenessFilenameSuffix()
can be queried (never null)JavaType applicable for this ITD (never null)public ClassOrInterfaceTypeDetails getMemberHoldingTypeDetails()
MemberHoldingTypeDetailsMetadataItemMemberHoldingTypeDetails, if available.
An MemberHoldingTypeDetails should be returned even if no members
should be introduced. Only return null if there was a failure during
parsing or other unexpected condition.
getMemberHoldingTypeDetails in interface MemberHoldingTypeDetailsMetadataItem<ClassOrInterfaceTypeDetails>public String getPhysicalLocationCanonicalPath()
getPhysicalLocationCanonicalPath in interface PhysicalTypeMetadatapublic org.springframework.roo.model.JavaType getType()
PhysicalTypeMetadatagetType in interface PhysicalTypeMetadatanull typeCopyright © 2009–2016. All rights reserved.