|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectredora.generator.ModelProcessor
public class ModelProcessor
Retrieves all available models from the file system in this project and generated all the sources and resources with the available templates. The maven plugin will use the ModelProcessor directly, so just add the maven plugin to your project's plugins.
| Field Summary | |
|---|---|
static String |
APPLICATION_SCHEMA
Schema file for checking if the application document is correct. |
static String |
INCLUDE_SCHEMA
Schema file for checking if the include document is correct. |
static String |
MODEL_SCHEMA
Schema file for checking if the model document is correct. |
| Constructor Summary | |
|---|---|
ModelProcessor(FileLocations where,
String basePackage,
String artifactId,
String defaultLanguage)
|
|
| Method Summary | |
|---|---|
String |
dump()
|
void |
dumpAllModelsToLocalFile()
|
void |
dumpModelToLocalFile()
|
void |
generate()
Generate sources for project |
boolean |
schemaValidation(String schema,
File testFile)
Validate the xml file according to schema file MODEL_SCHEMA |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String MODEL_SCHEMA
public static final String APPLICATION_SCHEMA
public static final String INCLUDE_SCHEMA
| Constructor Detail |
|---|
public ModelProcessor(@NotNull
FileLocations where,
@NotNull
String basePackage,
@NotNull
String artifactId,
@NotNull
String defaultLanguage)
throws ModelGenerationException
where - (Mandatory)basePackage - (Mandatory) From Maven pom, like 'com.company'artifactId - (Mandatory) Project name, from maven pomdefaultLanguage - (Mandatory) From Maven pom, from there it defaults to 'en'.
ModelGenerationException - Passing on| Method Detail |
|---|
public void generate()
throws ModelGenerationException
ModelGenerationException - The only exception you could get
public boolean schemaValidation(@NotNull
String schema,
@NotNull
File testFile)
throws ModelGenerationException
schema - (Mandatory) Name of the schema file, like 'model.xsd'.testFile - (Mandatory) File you want to validate
ModelGenerationException - Wrapping IO and XML Exceptions@NotNull public String dump()
public void dumpModelToLocalFile()
throws ModelGenerationException
ModelGenerationException
public void dumpAllModelsToLocalFile()
throws ModelGenerationException
ModelGenerationException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||