org.deegree.commons.tom.ows
Class LanguageString

java.lang.Object
  extended by org.deegree.commons.tom.ows.LanguageString

public class LanguageString
extends Object

Text string with the language of the string identified as recommended in the XML 1.0 W3C Recommendation, section 2.12 (RFC 4646 language code).

Version:
$Revision: $, $Date: $
Author:
Markus Schneider, last edited by: $Author: schneider $

Constructor Summary
LanguageString(String value, String lang)
          Creates a new LanguageString instance with the given string value and optional language information.
 
Method Summary
 String getLanguage()
          Returns the RFC 4646 language code.
 String getString()
          Returns the string value.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LanguageString

public LanguageString(String value,
                      String lang)
Creates a new LanguageString instance with the given string value and optional language information.

Parameters:
value - string value
lang - RFC 4646 language code of the human-readable text, may be null
Method Detail

getString

public String getString()
Returns the string value.

Returns:
the string value

getLanguage

public String getLanguage()
Returns the RFC 4646 language code.

Returns:
the RFC 4646 language code, or null if not specified

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.