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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExternalElement(String name) Create a newExternalElementthat references a top level element with the given name.ExternalElement(String name, String elementNamespace) Create a newExternalElementthat 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 newExternalElementthat references a top level element with the given name.- Parameters:
name- name of the top level element
-
ExternalElement
Create a newExternalElementthat 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:NamedElementReturns the root element name.- Specified by:
getElementNamein 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
-