Joda System API

org.joda.property.xml
Class XMLConvertorManager

java.lang.Object
  |
  +--org.joda.property.xml.XMLConvertorManager

public class XMLConvertorManager
extends java.lang.Object

XMLConvertorManager controls output of XML. The options to control the output are set on XMLMetaData.

Author:
Stephen Colebourne, Andy Lehane

Constructor Summary
protected XMLConvertorManager()
          Protected constructor
 
Method Summary
 void buildXMLData(XMLConvertorContext context, XMLData parent, java.lang.Object object)
          Build the XMLData for the object passed in.
 XMLData expandXMLData(XMLConvertorContext context, XMLData data)
          Build the XMLData for the object passed in.
 void filterInputXMLDataOnEndTag(XMLConvertorContext context, ModelElement modelElement, XMLData data)
          Filter the XMLData on input using end tags
 void filterInputXMLDataOnStartTag(XMLConvertorContext context, XMLData data)
          Filter the XMLData on input.
static XMLConvertorManager getInstance()
          Get the singleton instance of the convertor manager
 XMLData getXMLData(XMLConvertorContext context, java.lang.Object object, java.lang.String rootName)
          Build the XMLData for the object passed in.
 XMLData getXMLData(XMLConvertorContext context, java.lang.Object object, XMLName rootName)
          Build the XMLData for the object passed in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLConvertorManager

protected XMLConvertorManager()
Protected constructor

Method Detail

getInstance

public static XMLConvertorManager getInstance()
Get the singleton instance of the convertor manager


getXMLData

public XMLData getXMLData(XMLConvertorContext context,
                          java.lang.Object object,
                          java.lang.String rootName)
Build the XMLData for the object passed in.

Parameters:
context - the XML context
object - the property

getXMLData

public XMLData getXMLData(XMLConvertorContext context,
                          java.lang.Object object,
                          XMLName rootName)
Build the XMLData for the object passed in.

Parameters:
context - the XML context
object - the property

buildXMLData

public void buildXMLData(XMLConvertorContext context,
                         XMLData parent,
                         java.lang.Object object)
Build the XMLData for the object passed in.

Parameters:
context - the XML context
parent - the parent XMLData to add to
object - the object to get XMLData for

expandXMLData

public XMLData expandXMLData(XMLConvertorContext context,
                             XMLData data)
Build the XMLData for the object passed in.

Parameters:
context - the XML context
data - the bean's XMLData to add to

filterInputXMLDataOnStartTag

public void filterInputXMLDataOnStartTag(XMLConvertorContext context,
                                         XMLData data)
Filter the XMLData on input.

Parameters:
context - the XML context
data - the XMLData to filter

filterInputXMLDataOnEndTag

public void filterInputXMLDataOnEndTag(XMLConvertorContext context,
                                       ModelElement modelElement,
                                       XMLData data)
Filter the XMLData on input using end tags

Parameters:
context - the xml context
modelElement - the model element to update
data - the xml data to filter

Joda System API

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