org.apache.muse.util.xml
Interface XmlSerializable


public interface XmlSerializable

XmlSerializable is an interface for types that can be converted into an XML representation.

Author:
Dan Jemiolo (danj)

Method Summary
 Element toXML()
          Converts this object into an XML representation, as defined by its related schema or specification.
 Element toXML(Document factory)
          Converts this object into an XML representation, as defined by its related schema or specification.
 

Method Detail

toXML

Element toXML()
Converts this object into an XML representation, as defined by its related schema or specification. The format of the XML is dependent on the concrete type.

Returns:
An XML representation of this object.

toXML

Element toXML(Document factory)
Converts this object into an XML representation, as defined by its related schema or specification. The format of the XML is dependent on the concrete type.

Parameters:
factory - The DOM Document that will be used to create all of the nodes in the resulting XML fragment.
Returns:
An XML representation of this object.


Copyright © 2013 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.