|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.roo.classpath.PhysicalTypeIdentifier
public final class PhysicalTypeIdentifier
Provides string manipulation functions for PhysicalTypeMetadata IDs.
| Field Summary | |
|---|---|
static String |
PHYSICAL_METADATA_TYPE_ID
The class-level ID for physical type metadata. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PHYSICAL_METADATA_TYPE_ID
| Method Detail |
|---|
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 getFriendlyName(String metadataId)
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 check
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||