org.openmobileis.modules.common.data
Class DefaultLabel

java.lang.Object
  extended byorg.openmobileis.modules.common.data.DefaultLabel
All Implemented Interfaces:
Label, Orderable, java.io.Serializable
Direct Known Subclasses:
FODBLabel

public class DefaultLabel
extends java.lang.Object
implements Orderable, Label

Title: OpenMobileIS project source
Description: USe to manage the pair identifier/label used by article, visite type and contact type.

Since:
JDK 1.1
Version:
1.0.
Author:
Philippe Delrieu
See Also:
Serialized Form

Constructor Summary
protected DefaultLabel()
           
  DefaultLabel(java.lang.String id, java.lang.String category, java.lang.String label)
           
  DefaultLabel(java.lang.String id, java.lang.String category, java.lang.String label, java.lang.String language)
           
 
Method Summary
 int compareTo(java.lang.Object parm2)
           
 int compareTo(java.lang.Object parm1, java.lang.Object parm2)
          Compare two objects and order them.
 boolean equals(java.lang.Object obj)
           
 java.lang.String getCategory()
           
 java.lang.String getLabel()
           
 java.lang.String getLabelId()
           
 java.lang.String getLabelLanguage()
           
 int getLabelSortOrder()
           
 int hashCode()
           
 void setLabelSortOrder(int o)
          Use to sort label in a specific order.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultLabel

protected DefaultLabel()

DefaultLabel

public DefaultLabel(java.lang.String id,
                    java.lang.String category,
                    java.lang.String label)

DefaultLabel

public DefaultLabel(java.lang.String id,
                    java.lang.String category,
                    java.lang.String label,
                    java.lang.String language)
Method Detail

compareTo

public int compareTo(java.lang.Object parm1,
                     java.lang.Object parm2)
Description copied from interface: Orderable
Compare two objects and order them.

Specified by:
compareTo in interface Orderable
Parameters:
parm1 - first object
parm2 - second object
Returns:
< 0 if p1 < p2, 0 if equal, > 0 if p1 > p2

getLabel

public java.lang.String getLabel()
Specified by:
getLabel in interface Label

getLabelLanguage

public java.lang.String getLabelLanguage()
Specified by:
getLabelLanguage in interface Label

getCategory

public java.lang.String getCategory()
Specified by:
getCategory in interface Label

getLabelId

public java.lang.String getLabelId()
Specified by:
getLabelId in interface Label

setLabelSortOrder

public void setLabelSortOrder(int o)
Use to sort label in a specific order. Sorting id made : sort with labelOrder if equals use label.

Specified by:
setLabelSortOrder in interface Label
Parameters:
o - label sort order

getLabelSortOrder

public int getLabelSortOrder()
Specified by:
getLabelSortOrder in interface Label

toString

public java.lang.String toString()

equals

public boolean equals(java.lang.Object obj)

hashCode

public int hashCode()

compareTo

public int compareTo(java.lang.Object parm2)


Copyright 2006 OpenMobileIS. All Rights Reserved.