|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectredora.generator.Normalizer
public class Normalizer
There are default settings for a model that, because they are default, are not available in the model file.
The Normalizer fixes this. So, if an attribute is omitted in model file, here they will be inserted with the necessary
default value.
Also, here a few helper stuff is added to make the templates easier. For example the object name. Here is the list:
- object.name;
| Constructor Summary | |
|---|---|
Normalizer(String packageName)
|
|
| Method Summary | |
|---|---|
void |
addScope()
Add listScope, tableScope, formScope and lazyScope nodes to the model. listScope In this node all the attributes that have set list='true' are added. |
void |
normalize(Document doc,
String modelName,
Set<String> sortedModels,
int sequence)
Enhances the model XML document with name, package and sequence tags and then invokes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Normalizer(@NotNull
String packageName)
packageName - Add the object/package to the model| Method Detail |
|---|
public void normalize(@NotNull
Document doc,
@NotNull
String modelName,
@NotNull
Set<String> sortedModels,
int sequence)
throws ModelGenerationException
doc - The loaded Document with the modelmodelName - The file name is used as model name and insert object/name to the modelsortedModels - List of models that have the sorted = true tagsequence - Simple incremental sequence. Used to uniquely identify (minimalist) the table alias in queries
ModelGenerationException - Wrapper on all throw exceptions
public void addScope()
throws ModelGenerationException
ModelGenerationException - Wrapper on XPath exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||