Class ExternalElement
java.lang.Object
org.jivesoftware.smackx.message_fastening.element.ExternalElement
- All Implemented Interfaces:
Element
,NamedElement
Child element of
FasteningElement
.
Reference to a top level element in the stanza that contains the FasteningElement
.-
Field Summary
-
Constructor Summary
ConstructorDescriptionExternalElement
(String name) Create a newExternalElement
that references a top level element with the given name.ExternalElement
(String name, String elementNamespace) Create a newExternalElement
that references a top level element with the given name and namespace. -
Method Summary
Modifier and TypeMethodDescriptionReturns the root element name.Namespace of the referenced top level element, eg.getName()
Name of the referenced top level element, eg.toXML
(XmlEnvironment xmlEnvironment)
-
Field Details
-
ELEMENT
- See Also:
-
ATTR_NAME
- See Also:
-
ATTR_ELEMENT_NAMESPACE
- See Also:
-
-
Constructor Details
-
ExternalElement
Create a newExternalElement
that references a top level element with the given name.- Parameters:
name
- name of the top level element
-
ExternalElement
Create a newExternalElement
that references a top level element with the given name and namespace.- Parameters:
name
- name of the top level elementelementNamespace
- namespace of the top level element
-
-
Method Details
-
getElementName
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
toXML
-
getName
Name of the referenced top level element, eg. 'body'.- Returns:
- element name
-
getElementNamespace
Namespace of the referenced top level element, eg. 'urn:example:lik'.- Returns:
- element namespace
-