org.apache.myfaces.buildtools.maven2.plugin.builder.model
Class ValidatorMeta

java.lang.Object
  extended by org.apache.myfaces.buildtools.maven2.plugin.builder.model.ClassMeta
      extended by org.apache.myfaces.buildtools.maven2.plugin.builder.model.ViewEntityMeta
          extended by org.apache.myfaces.buildtools.maven2.plugin.builder.model.ValidatorMeta
All Implemented Interfaces:
PropertyHolder

public class ValidatorMeta
extends ViewEntityMeta
implements PropertyHolder

Store metadata about a class that is either a JSF Validator, or some base class or interface that a Validator can be derived from.


Constructor Summary
ValidatorMeta()
           
 
Method Summary
 void addValidatorClassModifier(int modifier)
          Adds a Java Language class modifier to the validator class.
static void addXmlRules(org.apache.commons.digester.Digester digester, String prefix)
          Add digester rules to repopulate an instance of this type from an xml file.
 String getBodyContent()
           
 Collection getPropertyTagList()
           
 Collection getPropertyValidatorList()
           
 String getSerialuidtag()
           
 String getTagClass()
           
 String getTagHandler()
           
 String getTagSuperclass()
           
 int getValidatorClassModifiers()
          Returns the Java Language class modifiers for the validator class.
 String getValidatorId()
           
 Boolean isConfigExcluded()
           
 Boolean isEvaluateELOnExecution()
           
 Boolean isGeneratedComponentClass()
           
 Boolean isGeneratedTagClass()
           
 void merge(ValidatorMeta other)
          Merge the data in the specified other property into this one, throwing an exception if there is an incompatibility.
 void setBodyContent(String bodyContent)
           
 void setConfigExcluded(Boolean configExcluded)
           
 void setEvaluateELOnExecution(Boolean evaluateELOnExecution)
           
 void setGeneratedComponentClass(Boolean generatedComponentClass)
           
 void setGeneratedTagClass(Boolean generatedTagClass)
           
 void setSerialuidtag(String serialuidtag)
           
 void setTagClass(String tagClass)
          Sets the JSP tag handler class for this component.
 void setTagHandler(String tagHandler)
          Specifies the class of the Facelets tag handler (component handler) for this component.
 void setTagSuperclass(String tagSuperclass)
          Sets the JSP tag handler superclass for this component.
 void setValidatorId(String validatorId)
          Sets the validator identifer for this component.
protected  void writeXmlSimple(XmlWriter out)
          Write an instance of this class out as xml.
 
Methods inherited from class org.apache.myfaces.buildtools.maven2.plugin.builder.model.ViewEntityMeta
addProperty, getDescription, getLongDescription, getName, getProperties, getProperty, getPropertyList, hasProperties, merge, properties, propertiesSize, setDescription, setLongDescription, setName, writeXmlComplex
 
Methods inherited from class org.apache.myfaces.buildtools.maven2.plugin.builder.model.ClassMeta
addInterfaceClassName, getClassName, getInterfaceClassNames, getModelId, getPackageName, getParentClassName, getSourceClassName, getSourceClassParentClassName, merge, setClassName, setInterfaceClassNames, setModelId, setParentClassName, setSourceClassName, setSourceClassParentClassName, writeXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.myfaces.buildtools.maven2.plugin.builder.model.PropertyHolder
addProperty, getProperties, getProperty, properties
 

Constructor Detail

ValidatorMeta

public ValidatorMeta()
Method Detail

writeXmlSimple

protected void writeXmlSimple(XmlWriter out)
Write an instance of this class out as xml.

Overrides:
writeXmlSimple in class ViewEntityMeta

addXmlRules

public static void addXmlRules(org.apache.commons.digester.Digester digester,
                               String prefix)
Add digester rules to repopulate an instance of this type from an xml file.


merge

public void merge(ValidatorMeta other)
Merge the data in the specified other property into this one, throwing an exception if there is an incompatibility. Not used right now since theorically there is very few inheritance on converters


setValidatorId

public void setValidatorId(String validatorId)
Sets the validator identifer for this component.


getValidatorId

public String getValidatorId()

addValidatorClassModifier

public void addValidatorClassModifier(int modifier)
Adds a Java Language class modifier to the validator class.

TODO: what is this for?


getValidatorClassModifiers

public int getValidatorClassModifiers()
Returns the Java Language class modifiers for the validator class. By default, these modifiers include Modifier.PUBLIC.

Returns:
the Java Language class modifiers for the validator class

setBodyContent

public void setBodyContent(String bodyContent)

getBodyContent

public String getBodyContent()

setTagClass

public void setTagClass(String tagClass)
Sets the JSP tag handler class for this component.


getTagClass

public String getTagClass()

setTagSuperclass

public void setTagSuperclass(String tagSuperclass)
Sets the JSP tag handler superclass for this component.


getTagSuperclass

public String getTagSuperclass()

setTagHandler

public void setTagHandler(String tagHandler)
Specifies the class of the Facelets tag handler (component handler) for this component.

Note that a Facelets tag handler class is not needed for most components.

Since:
1.0.8

getTagHandler

public String getTagHandler()
Since:
1.0.8

setSerialuidtag

public void setSerialuidtag(String serialuidtag)

getSerialuidtag

public String getSerialuidtag()

setGeneratedComponentClass

public void setGeneratedComponentClass(Boolean generatedComponentClass)

isGeneratedComponentClass

public Boolean isGeneratedComponentClass()

setGeneratedTagClass

public void setGeneratedTagClass(Boolean generatedTagClass)

isGeneratedTagClass

public Boolean isGeneratedTagClass()

setConfigExcluded

public void setConfigExcluded(Boolean configExcluded)

isConfigExcluded

public Boolean isConfigExcluded()

setEvaluateELOnExecution

public void setEvaluateELOnExecution(Boolean evaluateELOnExecution)
Since:
1.0.8

isEvaluateELOnExecution

public Boolean isEvaluateELOnExecution()
Since:
1.0.8

getPropertyTagList

public Collection getPropertyTagList()

getPropertyValidatorList

public Collection getPropertyValidatorList()


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.