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 class
DataLayout.DataFormLayoutElement
static class
DataLayout.Fieldref
static class
DataLayout.Reportedref
static class
DataLayout.Section
static class
DataLayout.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.String
getElementName()
Returns the root element name.java.lang.String
getLabel()
Gets the value of the label property.java.lang.String
getNamespace()
Returns the root element XML namespace.java.util.List<DataLayout.DataFormLayoutElement>
getPageLayout()
Gets the value of the pageLayout property.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
-
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.Fieldref
andDataLayout.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:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
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.
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
-
-