Joda System API

org.joda.property.xml.impl
Class AbstractPropertyXMLConvertor

java.lang.Object
  |
  +--org.joda.property.xml.impl.AbstractPropertyXMLConvertor
All Implemented Interfaces:
XMLConvertor
Direct Known Subclasses:
CollectionPropertyXMLConvertor, DataPropertyXMLConvertor, LinkPropertyXMLConvertor, MapPropertyXMLConvertor

public abstract class AbstractPropertyXMLConvertor
extends java.lang.Object
implements XMLConvertor

AbstractPropertyXMLConvertor contains the common code for adding a Property to XMLData.

Author:
Stephen Colebourne

Constructor Summary
protected AbstractPropertyXMLConvertor()
          Restrictive constructor
 
Method Summary
protected  void addAttribute(XMLData data, java.lang.String key, java.lang.String value)
          Add attribute to the child XML data object
protected  void addAttributes(XMLData data, java.util.Map map)
          Add attributes to the child XML data object
protected  void addAttributes(XMLData data, ModelElement el)
          Add attributes to the child XML data object
protected  void addAttributesToParentXMLData(XMLData data, java.lang.String childName, java.util.Map map)
          Add attributes to the parent XML data object using the prefix of the child name
protected  void addAttributesToParentXMLData(XMLData data, java.lang.String childName, ModelElement el)
          Add attributes to the parent XML data object using the prefix of the child name
protected  void addAttributeToParentXMLData(XMLData data, java.lang.String childName, java.lang.String value)
          Add attributes to the parent XML data object using the prefix of the child name
protected  void addAttributeToParentXMLData(XMLData data, java.lang.String childName, java.lang.String key, java.lang.String value)
          Add attributes to the parent XML data object using the prefix of the child name
protected  void addTypeAttribute(XMLConvertorContext context, XMLData data, java.lang.Object content, java.lang.Class expectedType)
          Add type attribute to the child XML data object
protected  void addTypeAttributeToParentXMLData(XMLConvertorContext context, XMLData data, java.lang.String childName, java.lang.Object content, java.lang.Class expectedType)
          Add type attribute to the parent XML data object using the prefix of the child name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.joda.property.xml.XMLConvertor
buildXMLData, expandXMLData, isConvertorFor
 

Constructor Detail

AbstractPropertyXMLConvertor

protected AbstractPropertyXMLConvertor()
Restrictive constructor

Method Detail

addAttributes

protected void addAttributes(XMLData data,
                             ModelElement el)
Add attributes to the child XML data object


addAttributes

protected void addAttributes(XMLData data,
                             java.util.Map map)
Add attributes to the child XML data object


addAttribute

protected void addAttribute(XMLData data,
                            java.lang.String key,
                            java.lang.String value)
Add attribute to the child XML data object


addTypeAttribute

protected void addTypeAttribute(XMLConvertorContext context,
                                XMLData data,
                                java.lang.Object content,
                                java.lang.Class expectedType)
Add type attribute to the child XML data object


addAttributesToParentXMLData

protected void addAttributesToParentXMLData(XMLData data,
                                            java.lang.String childName,
                                            ModelElement el)
Add attributes to the parent XML data object using the prefix of the child name


addAttributesToParentXMLData

protected void addAttributesToParentXMLData(XMLData data,
                                            java.lang.String childName,
                                            java.util.Map map)
Add attributes to the parent XML data object using the prefix of the child name


addAttributeToParentXMLData

protected void addAttributeToParentXMLData(XMLData data,
                                           java.lang.String childName,
                                           java.lang.String key,
                                           java.lang.String value)
Add attributes to the parent XML data object using the prefix of the child name


addAttributeToParentXMLData

protected void addAttributeToParentXMLData(XMLData data,
                                           java.lang.String childName,
                                           java.lang.String value)
Add attributes to the parent XML data object using the prefix of the child name


addTypeAttributeToParentXMLData

protected void addTypeAttributeToParentXMLData(XMLConvertorContext context,
                                               XMLData data,
                                               java.lang.String childName,
                                               java.lang.Object content,
                                               java.lang.Class expectedType)
Add type attribute to the parent XML data object using the prefix of the child name


Joda System API

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