|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xanot.structure.XanotRule
org.xanot.structure.AttributeSetRule
public class AttributeSetRule
Attribute setter rule. This rule define how an XML element's attribute tobe mapped to an object's property.
Constructor Summary | |
---|---|
AttributeSetRule(java.lang.String path,
java.lang.String propertyName,
java.lang.String xmlAttributeName)
Creates a new AttributeSetRule object. |
Method Summary | |
---|---|
java.lang.String |
getDateFormat()
Get the date format value. |
java.lang.String |
getPropertyName()
Get Object's property name |
java.lang.String |
getXmlAttributeName()
|
void |
setDateFormat(java.lang.String dateFormat)
Set the date format value |
void |
setPropertyName(java.lang.String propertyName)
set Object's property name |
void |
setXmlAttributeName(java.lang.String xmlAttributeName)
|
java.lang.String |
toString()
Get string representation of this object. |
Methods inherited from class org.xanot.structure.XanotRule |
---|
getPath, setPath |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AttributeSetRule(java.lang.String path, java.lang.String propertyName, java.lang.String xmlAttributeName)
path
- The path, should be equals to the parent path. Hmm. what for.propertyName
- The object's property name.xmlAttributeName
- The XML attribute name.Method Detail |
---|
public java.lang.String getPropertyName()
public void setPropertyName(java.lang.String propertyName)
propertyName
- The propertyName to set.public java.lang.String getXmlAttributeName()
public void setXmlAttributeName(java.lang.String xmlAttributeName)
xmlAttributeName
- The xmlAttributeName to set.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getDateFormat()
public void setDateFormat(java.lang.String dateFormat)
dateFormat
- new date format pattern
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |