Skip navigation links

Oracle® Database Globalization Development Kit Java API Reference
11g Release 2 (11.2)

E10730-01


oracle.i18n.servlet.localesource
Class LocaleSource.WritingDirection

java.lang.Object
  extended by oracle.i18n.servlet.localesource.LocaleSource.WritingDirection

All Implemented Interfaces:
Serializable
Enclosing class:
LocaleSource

public static class LocaleSource.WritingDirection
extends Object
implements Serializable

The LocaleSource.WritingDirection class represents the writing direction of the locale.

See Also:
Serialized Form

Field Summary
static LocaleSource.WritingDirection LTR
          LocaleSource.WritingDirection object that represents left-to-right display writing direction.
static LocaleSource.WritingDirection RTL
          LocaleSource.WritingDirection object that represents right-to-left display writing direction.

 

Method Summary
 boolean equals(Object o)
          Returns true if the input object is equal to this object.
static LocaleSource.WritingDirection getWritingDirection(String name)
          Returns LocaleSource.WritingDirection object from the input string that is either LTR or RTL.
 int hashCode()
          Returns the hash value.
 String toString()
          Returns LTR or RTL representing a display writing direction.

 

Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait

 

Field Detail

LTR

public static final LocaleSource.WritingDirection LTR
LocaleSource.WritingDirection object that represents left-to-right display writing direction.

RTL

public static final LocaleSource.WritingDirection RTL
LocaleSource.WritingDirection object that represents right-to-left display writing direction.

Method Detail

getWritingDirection

public static LocaleSource.WritingDirection getWritingDirection(String name)
Returns LocaleSource.WritingDirection object from the input string that is either LTR or RTL.
Parameters:
name - a String object representing the display writing direction
Returns:
a LocaleSource.WritingDirection object representing the display writing direction

toString

public final String toString()
Returns LTR or RTL representing a display writing direction.
Overrides:
toString in class Object
Returns:
LTR for left-to-right writing direction or RTL for right-to-left writing direction

equals

public boolean equals(Object o)
Returns true if the input object is equal to this object.
Overrides:
equals in class Object
Parameters:
o - an object to be compared
Returns:
boolean true if the input object is equal to this

hashCode

public int hashCode()
Returns the hash value.
Overrides:
hashCode in class Object
Returns:
hash value

Skip navigation links

Oracle® Database Globalization Development Kit Java API Reference
11g Release 2 (11.2)

E10730-01


Copyright © 2003, 2009, Oracle. All rights reserved.