|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for interacting with the code generation features of different vendors' implementations of JMI.
These methods are necessary for the TCK to gain access to objects, for which JMI has not specified the means of access.
Method Summary | |
RefPackage |
createRefPackage(java.lang.String packageName,
java.lang.String prefix)
Returns a new RefPackage, returning a unique identifier, which can be used to access the new RefPackage. |
XmiReader |
createXmiReader()
Return an object which implements the XmiReader interface. |
com.sun.javatest.Status |
generate(java.lang.String metamodel,
java.lang.String xmiImportPath,
boolean interfacesOnly)
Generate the code corresponding to the named metamodel. |
java.lang.String |
getMetamodelLoadPath(java.lang.String metamodel)
Returns the classpath required for the generated code. |
void |
init(java.util.Properties p,
java.io.File rootDir)
Perform any required iniialization of the generator. |
void |
retire(RefPackage refPackage)
Clean-up after a list of RefPackage instances, after completion of a test. |
Method Detail |
public void init(java.util.Properties p, java.io.File rootDir)
p
- properties loaded from a properties file, if provided
by the vendor (may be null)rootDir
- the root directory for the Javatest executionpublic com.sun.javatest.Status generate(java.lang.String metamodel, java.lang.String xmiImportPath, boolean interfacesOnly)
metamodel
- a fully-qualified name of the metamodel, which
will correspond to an XMI file in the metamodels
directoryinterfacesOnly
- true, when only the interfaces, enum
classes, and exceptions specified by the JMI need be generated.
When false, the implementation of those interfaces must also be
geneated.
public java.lang.String getMetamodelLoadPath(java.lang.String metamodel)
metamodel
- the fully-qualified name of the metamodel (the
same name that is passed in to the generate method).
public RefPackage createRefPackage(java.lang.String packageName, java.lang.String prefix)
packageName
- the name of the Model.Package defining the RefPackageprefix
- the package prefix used in code generation (as
defined by a tag in the metamodel)
public XmiReader createXmiReader()
XmiReader
valuepublic void retire(RefPackage refPackage)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |