|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.turbine.services.intake.xmlmodel.XmlField
A Class for holding data about a property used in an Application.
Constructor Summary | |
XmlField()
Default Constructor |
|
XmlField(java.lang.String name)
Creates a new column and set the name |
Method Summary | |
Rule |
addRule(org.xml.sax.Attributes attrib)
A utility function to create a new input parameter from attrib and add it to this property. |
void |
addRule(Rule rule)
Adds a new rule to the parameter Map and set the parent property of the Rule to this property |
java.lang.String |
getArrayConvert()
|
java.lang.String |
getBaseClass()
Get the base class of the field |
java.lang.String |
getDefaultValue()
Get the default Value |
java.lang.String |
getDisplayName()
Get the display name of the property |
XmlGroup |
getGroup()
Get the parent XmlGroup of the property |
java.lang.String |
getIfRequiredMessage()
Get the value of ifRequiredMessage. |
java.lang.String |
getKey()
Get the parameter key of the property |
java.lang.String |
getMapToObject()
Get the name of the object that takes this input |
java.lang.String |
getMapToProperty()
Get the property method that takes this input |
java.lang.String |
getName()
Get the name of the property |
java.lang.String |
getPPMethod()
|
java.lang.String |
getRawName()
Get the name of the property |
java.util.Map |
getRuleMap()
The collection of rules for this field keyed by parameter name. |
java.util.List |
getRules()
The collection of rules for this field. |
java.lang.String |
getType()
Get the type of the property |
java.lang.String |
getValidator()
Get the className of the validator |
java.lang.String |
getVariable()
The name of the field making sure the first letter is lowercase. |
boolean |
isMultiValued()
can this field have several values? |
void |
loadFromXML(org.xml.sax.Attributes attrib)
Imports a column from an XML specification |
void |
setBaseClass(java.lang.String newBaseClass)
Set the base class of the field |
void |
setDefaultValue(java.lang.String prop)
Set the default Value |
void |
setDisplayName(java.lang.String newDisplayName)
Set the display name of the property |
void |
setGroup(XmlGroup parent)
Set the parent XmlGroup of the property |
void |
setIfRequiredMessage(java.lang.String v)
Set the value of ifRequiredMessage. |
void |
setKey(java.lang.String newKey)
Set the parameter key of the property |
void |
setMapToObject(java.lang.String obj)
Set the name of the object that takes this input |
void |
setMapToProperty(java.lang.String prop)
Set the property method that takes this input |
void |
setMultiValued(java.lang.String newMultiValued)
Set whether this class can have multiple values |
void |
setName(java.lang.String newName)
Set the name of the property |
void |
setType(java.lang.String newType)
Set the type of the property |
void |
setValidator(java.lang.String prop)
Set the class name of the validator |
java.lang.String |
toString()
String representation of the column. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public XmlField()
public XmlField(java.lang.String name)
Method Detail |
public void loadFromXML(org.xml.sax.Attributes attrib)
public java.lang.String getRawName()
public java.lang.String getName()
public void setName(java.lang.String newName)
public java.lang.String getDisplayName()
public void setDisplayName(java.lang.String newDisplayName)
public void setKey(java.lang.String newKey)
public java.lang.String getKey()
public void setType(java.lang.String newType)
public java.lang.String getType()
public void setBaseClass(java.lang.String newBaseClass)
public java.lang.String getBaseClass()
public void setMultiValued(java.lang.String newMultiValued)
public boolean isMultiValued()
public void setMapToObject(java.lang.String obj)
public java.lang.String getMapToObject()
public void setMapToProperty(java.lang.String prop)
public java.lang.String getMapToProperty()
public void setValidator(java.lang.String prop)
public java.lang.String getValidator()
public void setDefaultValue(java.lang.String prop)
public java.lang.String getDefaultValue()
public java.lang.String getVariable()
String
valuepublic java.lang.String getPPMethod()
public java.lang.String getArrayConvert()
public void setGroup(XmlGroup parent)
public XmlGroup getGroup()
public java.lang.String getIfRequiredMessage()
public void setIfRequiredMessage(java.lang.String v)
v
- Value to assign to ifRequiredMessage.public Rule addRule(org.xml.sax.Attributes attrib)
public void addRule(Rule rule)
public java.util.List getRules()
List
valuepublic java.util.Map getRuleMap()
Map
valuepublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |