public final class PhysicalTypeIdentifier extends Object
PhysicalTypeMetadata IDs.| Modifier and Type | Field and Description |
|---|---|
static String |
PHYSICAL_METADATA_TYPE_ID
The class-level ID for physical type metadata.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
createIdentifier(ClassOrInterfaceTypeDetails details) |
static String |
createIdentifier(org.springframework.roo.model.JavaType javaType,
org.springframework.roo.project.LogicalPath path)
Creates a physical type metadata ID for the given user project type,
which need not exist.
|
static String |
getFriendlyName(String metadataId) |
static org.springframework.roo.model.JavaType |
getJavaType(String physicalTypeId)
Parses the given metadata ID for the user project type to which it
relates.
|
static String |
getMetadataIdentiferType()
Returns the class-level ID for physical type metadata.
|
static org.springframework.roo.project.LogicalPath |
getPath(String metadataId)
Parses the given metadata ID for the path of the user project type to
which it relates.
|
static boolean |
isValid(String metadataIdentificationString)
Indicates whether the given metadata ID identifies a physical Java type,
in other words an interface, class, annotation, or enum.
|
public static final String PHYSICAL_METADATA_TYPE_ID
public static String createIdentifier(org.springframework.roo.model.JavaType javaType, org.springframework.roo.project.LogicalPath path)
JavaType exists but don't
know its LogicalPath, you can use
TypeLocationService.getPhysicalTypeIdentifier(JavaType) instead.javaType - the type for which to create the identifier (required)path - the path in which it's located (required)public static String createIdentifier(ClassOrInterfaceTypeDetails details)
public static org.springframework.roo.model.JavaType getJavaType(String physicalTypeId)
physicalTypeId - the metadata ID to parse (must identify an instance
of PHYSICAL_METADATA_TYPE)null typepublic static String getMetadataIdentiferType()
PHYSICAL_METADATA_TYPE_ID directly.public static org.springframework.roo.project.LogicalPath getPath(String metadataId)
metadataId - the metadata ID to parse (must identify an instance of
PHYSICAL_METADATA_TYPE)null pathpublic static boolean isValid(String metadataIdentificationString)
metadataIdentificationString - the metadata ID to checkCopyright © 2009–2018 Pivotal Software, Inc.. All rights reserved.