org.joda.property.xml.impl
Class MapPropertyXMLConvertor
java.lang.Object
|
+--org.joda.property.xml.impl.AbstractPropertyXMLConvertor
|
+--org.joda.property.xml.impl.MapPropertyXMLConvertor
- All Implemented Interfaces:
- XMLConvertor
- public class MapPropertyXMLConvertor
- extends AbstractPropertyXMLConvertor
- implements XMLConvertor
MapPropertyXMLConvertor converts a map property to and from XMLData.
The iterator method is used to determine the order of the elements.
- Author:
- Stephen Colebourne
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final XMLConvertor INSTANCE
MapPropertyXMLConvertor
protected MapPropertyXMLConvertor()
- Restrictive constructor
isConvertorFor
public boolean isConvertorFor(java.lang.Object object)
- Description copied from interface:
XMLConvertor
- Check to see if this convertor handles the object.
- Specified by:
isConvertorFor
in interface XMLConvertor
- Parameters:
object
- the object to check
- Returns:
- true if convertor handles object
- See Also:
XMLConvertor.isConvertorFor(Object)
buildXMLData
public void buildXMLData(XMLConvertorContext context,
XMLData data,
java.lang.Object object)
- Add the Property's data to the bean's XMLData passed in
- Specified by:
buildXMLData
in interface XMLConvertor
- Parameters:
context
- the XML contextdata
- the bean's XMLData to add toobject
- the property
expandXMLData
public void expandXMLData(XMLConvertorContext context,
XMLData data)
- Expand the XMLData when a MapProperty is stored as the
content.
- Specified by:
expandXMLData
in interface XMLConvertor
- Parameters:
context
- the context for the outputdata
- the XMLData to add to
Copyright © 2001-2003 Stephen Colebourne. All Rights Reserved.