public class ToolsModelProcessor extends Object implements ModelProcessor
ModelProcessor
implementation.ModelContext.processModel(org.jomc.modlet.Model)
Modifier and Type | Field and Description |
---|---|
static String |
ENABLED_ATTRIBUTE_NAME
Constant for the name of the model context attribute backing property
enabled . |
static String |
MODEL_OBJECT_CLASSPATH_RESOLUTION_ENABLED_ATTRIBUTE_NAME
Constant for the name of the model context attribute backing property
modelObjectClasspathResolutionEnabled . |
Constructor and Description |
---|
ToolsModelProcessor()
Creates a new
ToolsModelProcessor instance. |
Modifier and Type | Method and Description |
---|---|
static boolean |
isDefaultEnabled()
Gets a flag indicating the processor is enabled by default.
|
static boolean |
isDefaultModelObjectClasspathResolutionEnabled()
Gets a flag indicating model object class path resolution is enabled by default.
|
boolean |
isEnabled()
Gets a flag indicating the processor is enabled.
|
boolean |
isModelObjectClasspathResolutionEnabled()
Gets a flag indicating model object class path resolution 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 |
setDefaultModelObjectClasspathResolutionEnabled(Boolean value)
Sets the flag indicating model object class path resolution is enabled by default.
|
void |
setEnabled(Boolean value)
Sets the flag indicating the processor is enabled.
|
void |
setModelObjectClasspathResolutionEnabled(Boolean value)
Sets the flag indicating model object class path resolution is is enabled.
|
public static final String ENABLED_ATTRIBUTE_NAME
enabled
.public static final String MODEL_OBJECT_CLASSPATH_RESOLUTION_ENABLED_ATTRIBUTE_NAME
modelObjectClasspathResolutionEnabled
.public ToolsModelProcessor()
ToolsModelProcessor
instance.public static boolean isDefaultEnabled()
The default enabled flag is controlled by system property
org.jomc.tools.modlet.ToolsModelProcessor.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 boolean isDefaultModelObjectClasspathResolutionEnabled()
The model object class path resolution default enabled flag is controlled by system property
org.jomc.tools.modlet.ToolsModelProcessor.defaultModelObjectClasspathResolutionEnabled
holding a value
indicating model object class path resolution is enabled by default. If that property is not set, the
true
default is returned.
true
, if model object class path resolution is enabled by default; false
, if model object
class path resolution is disabled by default.setDefaultModelObjectClasspathResolutionEnabled(java.lang.Boolean)
public static void setDefaultModelObjectClasspathResolutionEnabled(Boolean value)
value
- The new value of the flag indicating model object class path resolution is enabled by default or
null
.isDefaultModelObjectClasspathResolutionEnabled()
public final boolean isModelObjectClasspathResolutionEnabled()
true
, if model object class path resolution is enabled; false
, if model object class path
resolution is disabled.isDefaultModelObjectClasspathResolutionEnabled()
,
setModelObjectClasspathResolutionEnabled(java.lang.Boolean)
public final void setModelObjectClasspathResolutionEnabled(Boolean value)
value
- The new value of the flag indicating model object class path resolution is enabled or null
.isModelObjectClasspathResolutionEnabled()
public Model processModel(ModelContext context, Model model) throws ModelException
processModel
in interface ModelProcessor
ModelException
isEnabled()
,
isModelObjectClasspathResolutionEnabled()
,
ENABLED_ATTRIBUTE_NAME
,
MODEL_OBJECT_CLASSPATH_RESOLUTION_ENABLED_ATTRIBUTE_NAME
Copyright © 2005-2012 The JOMC Project. All Rights Reserved.