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