org.apache.wookie.w3c
Interface IDirectional

All Known Subinterfaces:
IAuthor, IContent, IContentEntity, IDescription, ILicense, IName, W3CWidget
All Known Implementing Classes:
AbstractLocalizedEntity, AuthorEntity, ContentEntity, DescriptionEntity, IconEntity, LicenseEntity, NameEntity, WidgetManifestModel

public interface IDirectional

An object that uses 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
 void setDir(java.lang.String dir)
          Set the direction of text, which can be one of "ltr", "rtl", "lro", or "rlo".
 

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

setDir

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

Parameters:
dir - the direction to set

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.