org.openspml.v2.util.xml
Class ReflectiveXMLMarshaller
java.lang.Object
org.openspml.v2.util.xml.ReflectiveXMLMarshaller
- All Implemented Interfaces:
- XMLMarshaller
- public class ReflectiveXMLMarshaller
- extends java.lang.Object
- implements XMLMarshaller
This class works in concert with the implementations of
in the msg.subpackages to marshall the values there into
XML. We use a protocol for field names that make this possible.
This was more expedient than hand coding the marshalling,
but may not be as performant as one would like.
- Author:
- kent.spaulding@sun.com
Date: Feb 9, 2006
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReflectiveXMLMarshaller
public ReflectiveXMLMarshaller()
marshall
protected java.lang.String marshall(java.lang.String elementName,
Marshallable obj)
throws Spml2Exception
- Throws:
Spml2Exception
marshall
protected java.lang.String marshall(java.lang.String elementName,
Marshallable m,
int indent)
throws Spml2Exception
- Throws:
Spml2Exception
default_marshall
protected void default_marshall(MarshallableElement e,
java.lang.String elName)
throws Spml2Exception
- Throws:
Spml2Exception
marshall
protected java.lang.String marshall(Selection s,
java.lang.String element)
throws Spml2Exception
- Throws:
Spml2Exception
setIndent
public void setIndent(int indent)
throws Spml2Exception
- Description copied from interface:
XMLMarshaller
- Indent the XML by this amount.
- Specified by:
setIndent
in interface XMLMarshaller
- Parameters:
indent
-
- Throws:
Spml2Exception
marshall
public java.lang.String marshall(Marshallable m)
throws Spml2Exception
- Description copied from interface:
XMLMarshaller
- Marshall with a 0 indent.
- Specified by:
marshall
in interface XMLMarshaller
- Parameters:
m
-
- Returns:
- xml fragment
- Throws:
Spml2Exception
Copyright © Sun Microsystems, Inc. All Rights Reserved.