com.webify.fabric.event
Class LangString
java.lang.Object
com.webify.fabric.event.LangString
public final class LangString
- extends java.lang.Object
- Version:
- $Revision: $
- Author:
- msanchez
Constructor Summary |
LangString(java.util.Locale locale,
java.lang.String value)
|
LangString(java.lang.String value)
|
LangString(java.lang.String lang,
java.lang.String value)
Construct a new instance using a locale value in the format specified by the
xml:lang special attribute. |
Method Summary |
java.util.Locale |
getLocale()
|
java.lang.String |
getValue()
|
java.lang.String |
getXmlLang()
Return the locale in a format compatible with the xml:lang attribute. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LangString
public LangString(java.lang.String value)
LangString
public LangString(java.lang.String lang,
java.lang.String value)
- Construct a new instance using a locale value in the format specified by the
xml:lang special attribute. See http://www.w3.org/TR/REC-xml/#sec-lang-tag for
details.
- Parameters:
lang
- a valid xml:lang valuevalue
- the value string
LangString
public LangString(java.util.Locale locale,
java.lang.String value)
getLocale
public java.util.Locale getLocale()
getXmlLang
public java.lang.String getXmlLang()
- Return the locale in a format compatible with the xml:lang attribute.
- Returns:
- the locale in a format required by XML specification
getValue
public java.lang.String getValue()
Copyright © 2002-2009 IBM. All Rights Reserved.