Joda System API

org.joda.property.xml.impl
Class LinkPropertyXMLConvertor

java.lang.Object
  |
  +--org.joda.property.xml.impl.AbstractPropertyXMLConvertor
        |
        +--org.joda.property.xml.impl.LinkPropertyXMLConvertor
All Implemented Interfaces:
XMLConvertor

public class LinkPropertyXMLConvertor
extends AbstractPropertyXMLConvertor
implements XMLConvertor

LinkPropertyXMLConvertor converts a link property to and from XMLData.

Author:
Stephen Colebourne

Field Summary
static XMLConvertor INSTANCE
           
 
Constructor Summary
protected LinkPropertyXMLConvertor()
          Restrictive constructor
 
Method Summary
 void buildXMLData(XMLConvertorContext context, XMLData data, java.lang.Object object)
          Add the Property's data to the bean's XMLData passed in
 void expandXMLData(XMLConvertorContext context, XMLData data)
          Expand the XMLData when a LinkProperty 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

INSTANCE

public static final XMLConvertor INSTANCE
Constructor Detail

LinkPropertyXMLConvertor

protected LinkPropertyXMLConvertor()
Restrictive constructor

Method Detail

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 context
data - the bean's XMLData to add to
object - the property

expandXMLData

public void expandXMLData(XMLConvertorContext context,
                          XMLData data)
Expand the XMLData when a LinkProperty is stored as the content.

Specified by:
expandXMLData in interface XMLConvertor
Parameters:
context - the context for the output
data - the XMLData to add to

Joda System API

Copyright © 2001-2003 Stephen Colebourne. All Rights Reserved.