public class SimplePayload extends Object implements ExtensionElement
PayloadItem.getPayload(). It simply
stores the XML payload as a string.| Constructor and Description |
|---|
SimplePayload(String elementName,
String namespace,
CharSequence xmlPayload)
Construct a SimplePayload object with the specified element name,
namespace and content.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getElementName()
Returns the root element name.
|
String |
getNamespace()
Returns the root element XML namespace.
|
String |
toString() |
CharSequence |
toXML()
Returns the XML representation of this Element.
|
public SimplePayload(String elementName, String namespace, CharSequence xmlPayload)
elementName - The root element name (of the payload)namespace - The namespace of the payload, null if there is nonexmlPayload - The payload datapublic String getElementName()
NamedElementgetElementName in interface NamedElementpublic String getNamespace()
ExtensionElementgetNamespace in interface ExtensionElementpublic CharSequence toXML()
Element