|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.platform.tag.Tag
public class Tag
Aggregates a tag with its weight.
Field Summary | |
---|---|
java.lang.String |
label
The tag label. |
static java.util.Comparator<Tag> |
LABEL_COMPARATOR
Compare tags by label, case insensitive. |
long |
weight
The weight of the tag. |
static java.util.Comparator<Tag> |
WEIGHT_COMPARATOR
Compare tags by weight, decreasing. |
Constructor Summary | |
---|---|
Tag(java.lang.String label,
int weight)
|
Method Summary | |
---|---|
java.lang.String |
getLabel()
|
long |
getWeight()
|
void |
setWeight(long weight)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final java.lang.String label
public long weight
public static final java.util.Comparator<Tag> LABEL_COMPARATOR
public static final java.util.Comparator<Tag> WEIGHT_COMPARATOR
Constructor Detail |
---|
public Tag(java.lang.String label, int weight)
Method Detail |
---|
public java.lang.String getLabel()
public long getWeight()
public void setWeight(long weight)
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |