Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.tag
Class Tag

java.lang.Object
  extended by org.nuxeo.ecm.platform.tag.Tag
All Implemented Interfaces:
java.io.Serializable

public class Tag
extends java.lang.Object
implements java.io.Serializable

Aggregates a tag with its weight.

See Also:
Serialized Form

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

label

public final java.lang.String label
The tag label.


weight

public long weight
The weight of the tag.


LABEL_COMPARATOR

public static final java.util.Comparator<Tag> LABEL_COMPARATOR
Compare tags by label, case insensitive.


WEIGHT_COMPARATOR

public static final java.util.Comparator<Tag> WEIGHT_COMPARATOR
Compare tags by weight, decreasing.

Constructor Detail

Tag

public Tag(java.lang.String label,
           int weight)
Method Detail

getLabel

public java.lang.String getLabel()

getWeight

public long getWeight()

setWeight

public void setWeight(long weight)

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.