|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.jomc.model.modlet.DefaultModelProcessor
public class DefaultModelProcessor
Default object management and configuration ModelProcessor implementation.
ModelContext.processModel(org.jomc.modlet.Model)| Field Summary | |
|---|---|
static String |
ENABLED_ATTRIBUTE_NAME
Constant for the name of the model context attribute backing property enabled. |
static String |
TRANSFORMER_LOCATION_ATTRIBUTE_NAME
Constant for the name of the model context attribute backing property transformerLocation. |
| Constructor Summary | |
|---|---|
DefaultModelProcessor()
Creates a new DefaultModelProcessor instance. |
|
| Method Summary | |
|---|---|
List<Transformer> |
findTransformers(ModelContext context,
String location)
Searches a given context for transformers. |
static String |
getDefaultTransformerLocation()
Gets the default location searched for transformer resources. |
String |
getTransformerLocation()
Gets the location searched for transformer resources. |
static boolean |
isDefaultEnabled()
Gets a flag indicating the processor is enabled by default. |
boolean |
isEnabled()
Gets a flag indicating the processor is enabled. |
Model |
processModel(ModelContext context,
Model model)
|
static void |
setDefaultEnabled(Boolean value)
Sets the flag indicating the processor is enabled by default. |
static void |
setDefaultTransformerLocation(String value)
Sets the default location searched for transformer resources. |
void |
setEnabled(Boolean value)
Sets the flag indicating the processor is enabled. |
void |
setTransformerLocation(String value)
Sets the location searched for transformer resources. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ENABLED_ATTRIBUTE_NAME
enabled.
processModel(org.jomc.modlet.ModelContext, org.jomc.modlet.Model),
ModelContext.getAttribute(java.lang.String),
Constant Field Valuespublic static final String TRANSFORMER_LOCATION_ATTRIBUTE_NAME
transformerLocation.
processModel(org.jomc.modlet.ModelContext, org.jomc.modlet.Model),
ModelContext.getAttribute(java.lang.String),
Constant Field Values| Constructor Detail |
|---|
public DefaultModelProcessor()
DefaultModelProcessor instance.
| Method Detail |
|---|
public static boolean isDefaultEnabled()
The default enabled flag is controlled by system property
org.jomc.model.modlet.DefaultModelProcessor.defaultEnabled holding a value indicating the processor is
enabled by default. If that property is not set, the true default is returned.
true, if the processor is enabled by default; false, if the processor is disabled by
default.setDefaultEnabled(java.lang.Boolean)public static void setDefaultEnabled(Boolean value)
value - The new value of the flag indicating the processor is enabled by default or null.isDefaultEnabled()public final boolean isEnabled()
true, if the processor is enabled; false, if the processor is disabled.isDefaultEnabled(),
setEnabled(java.lang.Boolean)public final void setEnabled(Boolean value)
value - The new value of the flag indicating the processor is enabled or null.isEnabled()public static String getDefaultTransformerLocation()
The default transformer location is controlled by system property
org.jomc.model.modlet.DefaultModelProcessor.defaultTransformerLocation holding the location to search for
transformer resources by default. If that property is not set, the META-INF/jomc.xsl default is
returned.
setDefaultTransformerLocation(java.lang.String)public static void setDefaultTransformerLocation(String value)
value - The new default location to search for transformer resources or null.getDefaultTransformerLocation()public final String getTransformerLocation()
getDefaultTransformerLocation(),
setTransformerLocation(java.lang.String)public final void setTransformerLocation(String value)
value - The new location to search for transformer resources or null.getTransformerLocation()
public List<Transformer> findTransformers(ModelContext context,
String location)
throws ModelException
context - The context to search for transformers.location - The location to search at.
location in context or null, if no transformers are
found.
NullPointerException - if context or location is null.
ModelException - if getting the transformers fails.
public Model processModel(ModelContext context,
Model model)
throws ModelException
processModel in interface ModelProcessorModelExceptionisEnabled(),
getTransformerLocation(),
findTransformers(org.jomc.modlet.ModelContext, java.lang.String),
ENABLED_ATTRIBUTE_NAME,
TRANSFORMER_LOCATION_ATTRIBUTE_NAME
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Copyright © 2005-2012 The JOMC Project. All Rights Reserved. |