Class MarkupElement
- java.lang.Object
-
- org.jivesoftware.smackx.message_markup.element.MarkupElement
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
public class MarkupElement extends java.lang.Object implements ExtensionElement
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MarkupElement.BlockLevelMarkupElement
Interface for block level child elements.static class
MarkupElement.Builder
static class
MarkupElement.MarkupChildElement
Interface for child elements.static class
MarkupElement.NonEmptyChildElement
-
Constructor Summary
Constructors Constructor Description MarkupElement(java.util.List<MarkupElement.MarkupChildElement> childElements)
Create a new MarkupElement.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MarkupElement.Builder
getBuilder()
Return a new Builder for Message Markup elements.java.util.List<MarkupElement.MarkupChildElement>
getChildElements()
Return a list of all child elements.java.lang.String
getElementName()
Returns the root element name.java.lang.String
getNamespace()
Returns the root element XML namespace.XmlStringBuilder
toXML(XmlEnvironment enclosingNamespace)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.packet.FullyQualifiedElement
getLanguage, getQName
-
-
-
-
Field Detail
-
NAMESPACE
public static final java.lang.String NAMESPACE
- See Also:
- Constant Field Values
-
ELEMENT
public static final java.lang.String ELEMENT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MarkupElement
public MarkupElement(java.util.List<MarkupElement.MarkupChildElement> childElements)
Create a new MarkupElement.- Parameters:
childElements
- child elements.
-
-
Method Detail
-
getBuilder
public static MarkupElement.Builder getBuilder()
Return a new Builder for Message Markup elements.- Returns:
- builder.
-
getChildElements
public java.util.List<MarkupElement.MarkupChildElement> getChildElements()
Return a list of all child elements.- Returns:
- children TODO javadoc me please
-
getNamespace
public java.lang.String getNamespace()
Description copied from interface:FullyQualifiedElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceFullyQualifiedElement
- Returns:
- the namespace.
-
getElementName
public java.lang.String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
-
-