|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.buildtools.maven2.plugin.builder.model.ClassMeta
org.apache.myfaces.buildtools.maven2.plugin.builder.model.ViewEntityMeta
public abstract class ViewEntityMeta
Base class for metadata about any class whose instances can be used in a JSF view.
This means Components, Converters, Validators.
Constructor Summary | |
---|---|
ViewEntityMeta(String xmlElementName)
Constructor. |
Method Summary | |
---|---|
void |
addProperty(PropertyMeta property)
Adds a property to this component. |
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 |
getDescription()
|
String |
getLongDescription()
|
String |
getName()
|
Map |
getProperties()
|
PropertyMeta |
getProperty(String propertyName)
|
Collection |
getPropertyList()
|
boolean |
hasProperties()
Returns true if this component has any properties. |
protected void |
merge(ViewEntityMeta other)
|
Iterator |
properties()
Returns an iterator for all properties |
int |
propertiesSize()
Number of properties for this component |
void |
setDescription(String description)
Sets the brief description of this property. |
void |
setLongDescription(String longDescription)
Sets the long description of this property. |
void |
setName(String name)
Sets the name that the user will refer to instances of this component by. |
protected void |
writeXmlComplex(XmlWriter out)
Implement callback method to write out the "complex" properties of this class as xml. |
protected void |
writeXmlSimple(XmlWriter out)
Implement callback method to write out the "simple" properties of this class as xml. |
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 |
Constructor Detail |
---|
public ViewEntityMeta(String xmlElementName)
Method Detail |
---|
public static void addXmlRules(org.apache.commons.digester.Digester digester, String prefix)
protected void writeXmlSimple(XmlWriter out)
writeXmlSimple
in class ClassMeta
protected void writeXmlComplex(XmlWriter out)
writeXmlComplex
in class ClassMeta
protected void merge(ViewEntityMeta other)
public void setName(String name)
In JSP tags, this value will be used as the JSP tag name.
This property is optional; if not set then this Model instance represents a base class that components can be derived from, but which cannot itself be instantiated as a component.
public String getName()
public void setDescription(String description)
This description is used in tooltips, etc.
public String getDescription()
public void setLongDescription(String longDescription)
public String getLongDescription()
public void addProperty(PropertyMeta property)
addProperty
in interface PropertyHolder
public PropertyMeta getProperty(String propertyName)
getProperty
in interface PropertyHolder
public int propertiesSize()
public boolean hasProperties()
public Map getProperties()
getProperties
in interface PropertyHolder
public Collection getPropertyList()
public Iterator properties()
properties
in interface PropertyHolder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |