org.speakright.sro
Class SROOrdinalItem

java.lang.Object
  extended by org.speakright.core.ModelItemBase
      extended by org.speakright.sro.SROOrdinalItem
All Implemented Interfaces:
java.io.Serializable, IModelItem

public class SROOrdinalItem
extends ModelItemBase
implements java.io.Serializable

Item for saying an ordinal number (eg. "seventh"). Implemented as a model item simply because it has the API we need.

Author:
IanRaeLaptop
See Also:
Serialized Form

Nested Class Summary
 class SROOrdinalItem.OrdinalItemFormatter
           
 
Field Summary
 
Fields inherited from class org.speakright.core.ModelItemBase
m_formatter, m_isSet, m_name
 
Method Summary
 void clear()
          clear the value back to its default, and clear the 'set' flag.
 int get()
           
 java.lang.Object rawValue()
          get raw value as object.
 void set(int val)
           
 
Methods inherited from class org.speakright.core.ModelItemBase
getFormattedItem, getFormatter, isSet, log, setFormatter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

rawValue

public java.lang.Object rawValue()
Description copied from interface: IModelItem
get raw value as object. (for internal use)

Specified by:
rawValue in interface IModelItem
Returns:

clear

public void clear()
Description copied from interface: IModelItem
clear the value back to its default, and clear the 'set' flag.

Specified by:
clear in interface IModelItem

get

public int get()

set

public void set(int val)