|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.chromattic.dataobject.DataObjectCompiler
public class DataObjectCompiler
The data object compiler.
| Constructor Summary | |
|---|---|
DataObjectCompiler(CompilationSource source,
java.lang.String... doPaths)
Create a new do compiler. |
|
DataObjectCompiler(org.exoplatform.services.jcr.ext.script.groovy.JcrGroovyCompiler compiler,
CompilationSource source,
java.lang.String... doPaths)
Create a new do compiler with the provided JCR compiler. |
|
| Method Summary | |
|---|---|
java.lang.Class[] |
generateAllClasses()
Compiles the specified classes and returns an array containing all the classes generated during the compilation. |
java.util.Map<java.lang.String,java.lang.Class<?>> |
generateClasses()
Compiles the specified classes and returns a map with a data object path as key and the corresponding compiled data object class. |
java.util.Map<java.lang.String,NodeType> |
generateSchema()
Generates the node types for the specified data object paths. |
java.lang.String |
generateSchema(NodeTypeFormat format)
Generates the node types for the specified data object paths. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataObjectCompiler(org.exoplatform.services.jcr.ext.script.groovy.JcrGroovyCompiler compiler,
CompilationSource source,
java.lang.String... doPaths)
throws java.lang.NullPointerException,
java.lang.IllegalArgumentException,
DataObjectException
compiler - the compiler to usesource - the compilation sourcedoPaths - the data object paths
DataObjectException - anything that would prevent the compilation of data object
java.lang.NullPointerException - if any argument is null
java.lang.IllegalArgumentException - if any data object path is null
public DataObjectCompiler(CompilationSource source,
java.lang.String... doPaths)
throws DataObjectException
source - the compilation sourcedoPaths - the data object paths
DataObjectException - anything that would prevent the compilation of data object
java.lang.NullPointerException - if any argument is null
java.lang.IllegalArgumentException - if any data object path is null| Method Detail |
|---|
public java.lang.String generateSchema(NodeTypeFormat format)
throws DataObjectException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException
format - the schema output format
DataObjectException - anything that would prevent data object compilation
java.lang.NullPointerException - if any argument is null
java.lang.IllegalArgumentException - if any data object path is null
public java.util.Map<java.lang.String,NodeType> generateSchema()
throws DataObjectException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException
DataObjectException - anything that would prevent data object compilation
java.lang.NullPointerException - if any argument is null
java.lang.IllegalArgumentException - if any data object path is null
public java.util.Map<java.lang.String,java.lang.Class<?>> generateClasses()
throws DataObjectException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException
DataObjectException - anything that would prevent data object compilation
java.lang.NullPointerException - if any argument is null
java.lang.IllegalArgumentException - if any data object path is null
public java.lang.Class[] generateAllClasses()
throws DataObjectException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException
DataObjectException - anything that would prevent data object compilation
java.lang.NullPointerException - if any argument is null
java.lang.IllegalArgumentException - if any data object path is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||