|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClasspathOperations
Provides a common set of operations for Java types.
Method Summary | |
---|---|
void |
addEnumConstant(String physicalTypeIdentifier,
org.springframework.roo.model.JavaSymbolName constantName)
|
void |
addField(FieldMetadata fieldMetadata)
Adds a new field to an existing class. |
void |
generateClassFile(ClassOrInterfaceTypeDetails details)
Creates a new class, with the location name name provided in the details. |
ClassOrInterfaceTypeDetails |
getClassOrInterface(org.springframework.roo.model.JavaType requiredClassOrInterface)
Obtains the requested JavaType , assuming it is a class or interface that exists at this time and can be parsed. |
String |
getPhysicalLocationCanonicalPath(org.springframework.roo.model.JavaType javaType,
org.springframework.roo.project.Path path)
|
String |
getPhysicalLocationCanonicalPath(String physicalTypeIdentifier)
|
ClassOrInterfaceTypeDetails |
getSuperclass(org.springframework.roo.model.JavaType superclass)
Obtains the superclass, if one is specified. |
boolean |
isPersistentClassAvailable()
|
boolean |
isProjectAvailable()
|
void |
newDod(org.springframework.roo.model.JavaType entity,
org.springframework.roo.model.JavaType name,
org.springframework.roo.project.Path path)
Creates a new data on demand provider for the entity. |
void |
newIntegrationTest(org.springframework.roo.model.JavaType entity)
Creates an integration test for the entity. |
Method Detail |
---|
boolean isProjectAvailable()
boolean isPersistentClassAvailable()
String getPhysicalLocationCanonicalPath(org.springframework.roo.model.JavaType javaType, org.springframework.roo.project.Path path)
String getPhysicalLocationCanonicalPath(String physicalTypeIdentifier)
ClassOrInterfaceTypeDetails getSuperclass(org.springframework.roo.model.JavaType superclass)
Throws an exception is a superclass was requested but could not be parsed or found.
superclass
- requested superclass (can be null)
ClassOrInterfaceTypeDetails getClassOrInterface(org.springframework.roo.model.JavaType requiredClassOrInterface)
JavaType
, assuming it is a class or interface that exists at this time and can be parsed.
If these assumption are not met, an exception will be thrown.
requiredClassOrInterface
- that should be parsed (required)
void generateClassFile(ClassOrInterfaceTypeDetails details)
An exception is thrown if the class already exists.
details
- to create (required)void addEnumConstant(String physicalTypeIdentifier, org.springframework.roo.model.JavaSymbolName constantName)
void addField(FieldMetadata fieldMetadata)
An exception is thrown if the class does not exist, cannot be modified or a field with the requested name is already declared.
fieldMetadata
- to add (required)void newIntegrationTest(org.springframework.roo.model.JavaType entity)
entity
- to produce an integration test for (required)void newDod(org.springframework.roo.model.JavaType entity, org.springframework.roo.model.JavaType name, org.springframework.roo.project.Path path)
entity
- to produce a data on demand provider for (required)name
- the name of the new data on demand class (required)path
- the location for the new data on demand class (required)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |