org.jbind.xml.instance.data
Class Language

java.lang.Object
  extended byorg.jbind.xml.instance.data.Language
All Implemented Interfaces:
ILanguage

public class Language
extends java.lang.Object
implements ILanguage


Method Summary
static Language createLanguage(java.lang.String aString)
           
 boolean equals(java.lang.Object anObject)
           
 java.lang.String getCountryCode()
          Gets the country code.
 java.lang.String getPrimaryLanguage()
          Gets the primary language tag.
 int hashCode()
           
 java.util.Iterator iterSubTags()
          Iterates additional tags following the country code.
 java.lang.String toString()
          Gets the string representation.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

createLanguage

public static Language createLanguage(java.lang.String aString)

getCountryCode

public java.lang.String getCountryCode()
Description copied from interface: ILanguage
Gets the country code.

Specified by:
getCountryCode in interface ILanguage
Returns:
(optional).

getPrimaryLanguage

public java.lang.String getPrimaryLanguage()
Description copied from interface: ILanguage
Gets the primary language tag.

Specified by:
getPrimaryLanguage in interface ILanguage
Returns:
(required).

iterSubTags

public java.util.Iterator iterSubTags()
Description copied from interface: ILanguage
Iterates additional tags following the country code.

Specified by:
iterSubTags in interface ILanguage
Returns:
(required). An iterator of Strings.

toString

public java.lang.String toString()
Description copied from interface: ILanguage
Gets the string representation. The string representation is of the form: primaryLanguage("-"countryCode("-"subTag)*)?

Specified by:
toString in interface ILanguage

equals

public boolean equals(java.lang.Object anObject)

hashCode

public int hashCode()