public class Group
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
cf:group
element is intended to inform the client that the property to
which it
refers is one that is “groupable” – that is, that the client should provide a user interface that
allows the user to group or filter on the values of that property. Groupable properties
should contain
a small set of discrete values (e.g. book genres are perfect for groups).
The cf:group
element contains the following attributes:
cf:group
element
refers to the default sort order.cf:group
element refers. If it is omitted, the client should use the value of the
"element" attribute as the human-readable name. The "label" attribute is required if the
"element" attribute is omitted. Modifier and Type | Field and Description |
---|---|
private java.lang.String |
element |
private java.lang.String |
label |
private org.jdom2.Namespace |
namespace |
private ObjectBean |
obj |
private static long |
serialVersionUID |
Constructor and Description |
---|
Group(org.jdom2.Namespace namespace,
java.lang.String element,
java.lang.String label) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getElement()
Returns the name of the element.
|
java.lang.String |
getLabel()
Returns the label of the element.
|
org.jdom2.Namespace |
getNamespace()
Returns the namespace of the element.
|
int |
hashCode() |
java.lang.String |
toString() |
private static final long serialVersionUID
private org.jdom2.Namespace namespace
private final ObjectBean obj
private final java.lang.String element
private final java.lang.String label
public Group(org.jdom2.Namespace namespace, java.lang.String element, java.lang.String label)
namespace
- Namespace of the elementelement
- Name of the elementlabel
- Label for the grouping.public java.lang.String getElement()
public java.lang.String getLabel()
public org.jdom2.Namespace getNamespace()
public java.lang.Object clone()
clone
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object