public class MarkupElement extends Object implements ExtensionElement
| Modifier and Type | Class and Description |
|---|---|
static interface |
MarkupElement.BlockLevelMarkupElement
Interface for block level child elements.
|
static class |
MarkupElement.Builder |
static interface |
MarkupElement.MarkupChildElement
Interface for child elements.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
ELEMENT |
static String |
NAMESPACE |
| Constructor and Description |
|---|
MarkupElement(List<MarkupElement.MarkupChildElement> childElements)
Create a new MarkupElement.
|
| Modifier and Type | Method and Description |
|---|---|
static MarkupElement.Builder |
getBuilder()
Return a new Builder for Message Markup elements.
|
List<MarkupElement.MarkupChildElement> |
getChildElements()
Return a list of all child elements.
|
String |
getElementName()
Returns the root element name.
|
String |
getNamespace()
Returns the root element XML namespace.
|
XmlStringBuilder |
toXML(String enclosingNamespace)
Returns the XML representation of this Element.
|
public static final String NAMESPACE
public static final String ELEMENT
public MarkupElement(List<MarkupElement.MarkupChildElement> childElements)
childElements - child elements.public static MarkupElement.Builder getBuilder()
public List<MarkupElement.MarkupChildElement> getChildElements()
public String getNamespace()
ExtensionElementgetNamespace in interface ExtensionElementpublic String getElementName()
NamedElementgetElementName in interface NamedElementpublic XmlStringBuilder toXML(String enclosingNamespace)
Element