Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.tag
Class Tag

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

public class Tag
extends Object
implements Serializable

Aggregates a tag with its weight.

See Also:
Serialized Form

Field Summary
 String label
          The tag label.
static Comparator<Tag> LABEL_COMPARATOR
          Compare tags by label, case insensitive.
 long weight
          The weight of the tag.
static Comparator<Tag> WEIGHT_COMPARATOR
          Compare tags by weight, decreasing.
 
Constructor Summary
Tag(String label, int weight)
           
 
Method Summary
 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 String label
The tag label.


weight

public long weight
The weight of the tag.


LABEL_COMPARATOR

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


WEIGHT_COMPARATOR

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

Constructor Detail

Tag

public Tag(String label,
           int weight)
Method Detail

getLabel

public String getLabel()

getWeight

public long getWeight()

setWeight

public void setWeight(long weight)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.