org.jbind.xml.base
Interface ILanguage

All Known Implementing Classes:
Language

public interface ILanguage

Represents a language according to http://www.ietf.org/rfc/rfc1766.txt. The primary language, the countryCode, and all additional substrings are string with length from 1 to 8 characters.


Method Summary
 java.lang.String getCountryCode()
          Gets the country code.
 java.lang.String getPrimaryLanguage()
          Gets the primary language tag.
 java.util.Iterator iterSubTags()
          Iterates additional tags following the country code.
 java.lang.String toString()
          Gets the string representation.
 

Method Detail

getPrimaryLanguage

public java.lang.String getPrimaryLanguage()
Gets the primary language tag.

Returns:
(required).

getCountryCode

public java.lang.String getCountryCode()
Gets the country code.

Returns:
(optional).

iterSubTags

public java.util.Iterator iterSubTags()
Iterates additional tags following the country code.

Returns:
(required). An iterator of Strings.

toString

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

Returns:
(required).