Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.greenstone.gatherer.cdm
Class Language  view Language download Language.java

java.lang.Object
  extended byorg.greenstone.gatherer.cdm.Language
All Implemented Interfaces:
java.lang.Comparable, DOMProxyListEntry

public class Language
extends java.lang.Object
implements java.lang.Comparable, DOMProxyListEntry

A pretty unexciting extension of a two character string, in that it has a field which details if its the default language.

Version:
2.1

Field Summary
private  java.lang.String code
          The two character code for this language.
private  org.w3c.dom.Element element
          The Element this language entry is based upon.
private  java.lang.String name
          The name of this language.
 
Constructor Summary
Language()
           
Language(org.w3c.dom.Element element)
           
Language(java.lang.String code)
          Constructor for a brand new language.
 
Method Summary
 int compareTo(java.lang.Object object)
          Method to compare two languages for ordering purposes.
 DOMProxyListEntry create(org.w3c.dom.Element element)
           
 boolean equals(java.lang.Object object)
          Method to test for the equality of two languages.
 java.lang.String getCode()
          Method to retrieve the code of this language.
 org.w3c.dom.Element getElement()
           
 java.lang.String getName()
           
 boolean isAssigned()
           
 void setAssigned(boolean value)
           
 void setCode(java.lang.String new_code)
           
 void setElement(org.w3c.dom.Element new_element)
           
 java.lang.String toString()
          Method to display the language code.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

element

private org.w3c.dom.Element element
The Element this language entry is based upon.


code

private java.lang.String code
The two character code for this language.


name

private java.lang.String name
The name of this language.

Constructor Detail

Language

public Language()

Language

public Language(org.w3c.dom.Element element)

Language

public Language(java.lang.String code)
Constructor for a brand new language.

Method Detail

compareTo

public int compareTo(java.lang.Object object)
Method to compare two languages for ordering purposes.

Specified by:
compareTo in interface java.lang.Comparable

create

public DOMProxyListEntry create(org.w3c.dom.Element element)
Specified by:
create in interface DOMProxyListEntry

equals

public boolean equals(java.lang.Object object)
Method to test for the equality of two languages.


getCode

public java.lang.String getCode()
Method to retrieve the code of this language.


getElement

public org.w3c.dom.Element getElement()
Specified by:
getElement in interface DOMProxyListEntry

getName

public java.lang.String getName()

isAssigned

public boolean isAssigned()
Specified by:
isAssigned in interface DOMProxyListEntry

setAssigned

public void setAssigned(boolean value)
Specified by:
setAssigned in interface DOMProxyListEntry

setCode

public void setCode(java.lang.String new_code)

setElement

public void setElement(org.w3c.dom.Element new_element)
Specified by:
setElement in interface DOMProxyListEntry

toString

public java.lang.String toString()
Method to display the language code.