|
Joda System API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.joda.property.xml.impl.AbstractPropertyXMLConvertor | +--org.joda.property.xml.impl.DataPropertyXMLConvertor
DataPropertyXMLConvertor converts a data property to and from XMLData.
Field Summary | |
static XMLConvertor |
INSTANCE
|
Constructor Summary | |
protected |
DataPropertyXMLConvertor()
Restrictive constructor |
Method Summary | |
protected void |
buildAsAttribute(XMLConvertorContext context,
XMLData data,
java.lang.Object object)
Build the property data as an attribute |
protected void |
buildAsElement(XMLConvertorContext context,
XMLData data,
java.lang.Object object)
Build the property data as an element |
void |
buildXMLData(XMLConvertorContext context,
XMLData data,
java.lang.Object object)
Add the DataProperty's data to the bean's XMLData passed in |
void |
expandXMLData(XMLConvertorContext context,
XMLData data)
Expand the XMLData when a DataProperty is stored as the content. |
boolean |
isConvertorFor(java.lang.Object object)
Check to see if this convertor handles the object. |
Methods inherited from class org.joda.property.xml.impl.AbstractPropertyXMLConvertor |
addAttribute, addAttributes, addAttributes, addAttributesToParentXMLData, addAttributesToParentXMLData, addAttributeToParentXMLData, addAttributeToParentXMLData, addTypeAttribute, addTypeAttributeToParentXMLData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final XMLConvertor INSTANCE
Constructor Detail |
protected DataPropertyXMLConvertor()
Method Detail |
public boolean isConvertorFor(java.lang.Object object)
XMLConvertor
isConvertorFor
in interface XMLConvertor
object
- the object to check
XMLConvertor.isConvertorFor(Object)
public void buildXMLData(XMLConvertorContext context, XMLData data, java.lang.Object object)
buildXMLData
in interface XMLConvertor
context
- the XML contextdata
- the bean's XMLData to add toobject
- the propertyprotected void buildAsElement(XMLConvertorContext context, XMLData data, java.lang.Object object)
protected void buildAsAttribute(XMLConvertorContext context, XMLData data, java.lang.Object object)
public void expandXMLData(XMLConvertorContext context, XMLData data)
expandXMLData
in interface XMLConvertor
context
- the context for the outputdata
- the XMLData to add to
|
Joda System API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |