org.springframework.roo.classpath
Class PhysicalTypeIdentifierNamingUtils

java.lang.Object
  extended by org.springframework.roo.classpath.PhysicalTypeIdentifierNamingUtils

public abstract class PhysicalTypeIdentifierNamingUtils
extends Object

Used to produce metadata identification strings that represent a JavaType located in a particular ClassloaderInclusivePath.

The metadata identification strings separate the path name from the fully qualified type name via the presence of a question mark character ("?"). A question mark is used given it is reserved by Path.

Since:
1.0
Author:
Ben Alex

Constructor Summary
PhysicalTypeIdentifierNamingUtils()
           
 
Method Summary
static String createIdentifier(String providesType, org.springframework.roo.model.JavaType javaType, org.springframework.roo.project.Path path)
           
static org.springframework.roo.model.JavaType getJavaType(String providesType, String metadataIdentificationString)
           
static org.springframework.roo.project.Path getPath(String providesType, String metadataIdentificationString)
           
static boolean isValid(String providesType, String metadataIdentificationString)
          Indicates whether the presented metadata identification string appears to be valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhysicalTypeIdentifierNamingUtils

public PhysicalTypeIdentifierNamingUtils()
Method Detail

createIdentifier

public static final String createIdentifier(String providesType,
                                            org.springframework.roo.model.JavaType javaType,
                                            org.springframework.roo.project.Path path)

getJavaType

public static final org.springframework.roo.model.JavaType getJavaType(String providesType,
                                                                       String metadataIdentificationString)

getPath

public static final org.springframework.roo.project.Path getPath(String providesType,
                                                                 String metadataIdentificationString)

isValid

public static boolean isValid(String providesType,
                              String metadataIdentificationString)
Indicates whether the presented metadata identification string appears to be valid.

Parameters:
providesType - to verify the presented type (required)
metadataIdentificationString - to evaluate (can be null or empty)
Returns:
true only if the string appears to be valid


Copyright © 2009-2010 VMware, Inc. All Rights Reserved.