org.apache.lenya.cms.publication
Class Label

java.lang.Object
  extended by org.apache.lenya.cms.publication.Label

public class Label
extends java.lang.Object

The Label class encapsulates a string label of an associated language.


Constructor Summary
Label(java.lang.String label)
          Creates a new Label object without language.
Label(java.lang.String label, java.lang.String language)
          Creates a new Label object.
 
Method Summary
 boolean equals(java.lang.Object obj)
          (non-Javadoc)
 java.lang.String getHref()
          Get the href of this label.
 java.lang.String getLabel()
          Get the label.
 java.lang.String getLanguage()
          Get the label language
 int hashCode()
          (non-Javadoc)
 void setHref(java.lang.String href)
          Set the href of this label.
 void setLabel(java.lang.String label)
          Set the label.
 java.lang.String toString()
          (non-Javadoc)
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Label

public Label(java.lang.String label)
Creates a new Label object without language.

Parameters:
label - the actual label

Label

public Label(java.lang.String label,
             java.lang.String language)
Creates a new Label object.

Parameters:
label - the actual label
language - the label language
Method Detail

getLabel

public java.lang.String getLabel()
Get the label.

Returns:
the actual label as a String

setLabel

public void setLabel(java.lang.String label)
Set the label.

Parameters:
label - The label.

getLanguage

public java.lang.String getLanguage()
Get the label language

Returns:
the language

getHref

public java.lang.String getHref()
Get the href of this label.

Returns:
the href.

setHref

public void setHref(java.lang.String href)
Set the href of this label.


toString

public java.lang.String toString()
(non-Javadoc)

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

equals

public boolean equals(java.lang.Object obj)
(non-Javadoc)

Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
(non-Javadoc)

Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.