public final class Section
extends java.lang.Object
The implementation of the <section/>
element in the http://jabber.org/protocol/xdata-layout
namespace.
A section is used to partition a page.
This class is immutable.Constructor and Description |
---|
Section(java.lang.String label,
java.util.Collection<FieldReference> fieldReferences)
Creates a section.
|
Section(java.lang.String label,
java.util.Collection<FieldReference> fieldReferences,
java.util.Collection<java.lang.String> text)
Creates a section.
|
Section(java.lang.String label,
java.util.Collection<FieldReference> fieldReferences,
java.util.Collection<java.lang.String> text,
FieldReference reportedReference)
Creates a section.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<FieldReference> |
getFieldReferences()
Gets the field references.
|
java.lang.String |
getLabel()
Gets the label of the section.
|
FieldReference |
getReportedReference()
Gets the reported field reference.
|
java.util.List<Section> |
getSections()
Gets nested sub-sections.
|
java.util.List<java.lang.String> |
getText()
Gets additional information for the section.
|
public Section(java.lang.String label, java.util.Collection<FieldReference> fieldReferences)
Creates a section.
label
- The label.fieldReferences
- The field references.public Section(java.lang.String label, java.util.Collection<FieldReference> fieldReferences, java.util.Collection<java.lang.String> text)
Creates a section.
label
- The label.fieldReferences
- The field references.text
- The text.public Section(java.lang.String label, java.util.Collection<FieldReference> fieldReferences, java.util.Collection<java.lang.String> text, FieldReference reportedReference)
Creates a section.
label
- The label.fieldReferences
- The field references.text
- The text.reportedReference
- The reference to a reported field.public java.lang.String getLabel()
Gets the label of the section.
public java.util.List<java.lang.String> getText()
Gets additional information for the section.
public java.util.List<FieldReference> getFieldReferences()
Gets the field references. These are the fields, which appear in this section.
public java.util.List<Section> getSections()
Gets nested sub-sections.
public FieldReference getReportedReference()
Gets the reported field reference.
Copyright © 2014–2019 XMPP.rocks. All rights reserved.