Class DataLayout
- java.lang.Object
-
- org.jivesoftware.smackx.xdatalayout.packet.DataLayout
-
- All Implemented Interfaces:
Element,ExtensionElement,FullyQualifiedElement,NamedElement,XmlLangElement
public class DataLayout extends java.lang.Object implements ExtensionElement
DataLayout Extension according to XEP-0141: Data Forms Layout. Defines a backwards-compatible extension to the XMPP Data Forms protocol that enables an application to specify form layouts, including the layout of form fields, sections within pages, and subsections within sections.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDataLayout.DataFormLayoutElementstatic classDataLayout.Fieldrefstatic classDataLayout.Reportedrefstatic classDataLayout.Sectionstatic classDataLayout.Text
-
Constructor Summary
Constructors Constructor Description DataLayout(java.lang.String label)Data layout constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetElementName()Returns the root element name.java.lang.StringgetLabel()Gets the value of the label property.java.lang.StringgetNamespace()Returns the root element XML namespace.java.util.List<DataLayout.DataFormLayoutElement>getPageLayout()Gets the value of the pageLayout property.XmlStringBuildertoXML(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
-
ELEMENT
public static final java.lang.String ELEMENT
- See Also:
- Constant Field Values
-
NAMESPACE
public static final java.lang.String NAMESPACE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DataLayout
public DataLayout(java.lang.String label)
Data layout constructor.- Parameters:
label- TODO javadoc me please
-
-
Method Detail
-
getPageLayout
public java.util.List<DataLayout.DataFormLayoutElement> getPageLayout()
Gets the value of the pageLayout property.Objects of the following type(s) are allowed in the list:
String,DataLayout.Section,DataLayout.FieldrefandDataLayout.Reportedref- Returns:
- list of DataFormLayoutElements.
-
getLabel
public java.lang.String getLabel()
Gets the value of the label property.- Returns:
- possible object is
String
-
getElementName
public java.lang.String getElementName()
Description copied from interface:NamedElementReturns the root element name.- Specified by:
getElementNamein interfaceNamedElement- Returns:
- the element name.
-
getNamespace
public java.lang.String getNamespace()
Description copied from interface:FullyQualifiedElementReturns the root element XML namespace.- Specified by:
getNamespacein interfaceFullyQualifiedElement- Returns:
- the namespace.
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
-
-