org.apache.wookie.w3c
Interface ILocalizedEntity

All Superinterfaces:
IElement, ILocalizedElement
All Known Subinterfaces:
IAuthorEntity, IContentEntity, IDescriptionEntity, IIconEntity, ILicenseEntity, INameEntity, W3CWidget
All Known Implementing Classes:
AbstractLocalizedEntity, AuthorEntity, ContentEntity, DescriptionEntity, IconEntity, LicenseEntity, NameEntity, WidgetManifestModel

public interface ILocalizedEntity
extends IElement, ILocalizedElement

An element that supports localization with both a language tag and text direction


Method Summary
 java.lang.String getDir()
          Get the direction of text, which can be one of "ltr", "rtl", "lro", or "rlo".
 boolean isValid()
          Checks whether this object has valid localization settings; specifically that the lang property of this object is a valid language-tag according to BCP-47
 
Methods inherited from interface org.apache.wookie.w3c.IElement
fromXML, toXml
 
Methods inherited from interface org.apache.wookie.w3c.ILocalizedElement
getLang, setLang
 

Method Detail

getDir

java.lang.String getDir()
Get the direction of text, which can be one of "ltr", "rtl", "lro", or "rlo". The default value is "ltr".

Returns:
the direction of the text

isValid

boolean isValid()
Checks whether this object has valid localization settings; specifically that the lang property of this object is a valid language-tag according to BCP-47

Returns:
true if the locale for this object is aeither valid language tag or null, otherwise false.


2012 Apache Software Foundation.