com.ibm.tws.objects.types
Class OrdinalType

java.lang.Object
  extended bycom.ibm.tws.objects.types.OrdinalType
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AddingFunctions, BooleanValue, CatalogManagementStatus, CatManagementOption, CleanUpOption, CleanUpStatus, CriticalJobType, CriticalPathStatus, DependenciesResolutionOption, DependencyStatusType, EngineStatusType, FileStatusType, FilterMatchingCriteria, FlowNodeInternalStatusType, FlowNodeStatusType, FreeDaysRule, HostJobStatus, InstanceStatus, JCLLastUpdatingFunction, JCLStatus, JobExtendedStatus, JobInternalStatusType, JobRunStatus, JobStatusType, LastModifyType, LateAction, LinkStatus, OffsetType, OnErrorOption, OperatingSystem, PeriodType, PrintOption, PromptStatusType, PromptType, RecoveryOption, ResolutionRule, ResourceActionOnComplete, ResourceActionOnError, ResourceAllocationType, ResourceStatusType, ResourceUsage, RestartCleanupType, RunCycleType, SecurityLevel, SymphonyType, WLMPolicy, WorkstationInPlanExtendedStatus, WorkstationOperationOption, WorkstationReportingAttribute, WorkstationStatus, WorkstationType, YesNoDefaultOption, YesNoResetOption, ZOSRODMStatus

public abstract class OrdinalType
extends java.lang.Object
implements java.io.Serializable

This is the base class of all TWS ordinal types, and wraps a character value, which has been chosen to convert ordinal types to values that can be easily serialized into a database or file system. Each subclass of OrdinalType exposes its own instances as public static constants that can be used to handle allowed values for that class.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          Copyright.
 
Constructor Summary
protected OrdinalType(java.lang.String className, char charValue)
          Creates an instance of OrdinalType that wraps the specified character.
 
Method Summary
 char getCharValue()
          Returns the character representation of the ordinal value associated to this object.
static OrdinalType getInstance(java.lang.String className, char charValue)
          Returns a reference to the instance of OrdinalType that is associated to the specified character.
protected  java.lang.String toString(java.lang.String className)
          Returns a string representation of this OrdinalType object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright.

Constructor Detail

OrdinalType

protected OrdinalType(java.lang.String className,
                      char charValue)
Creates an instance of OrdinalType that wraps the specified character.

Parameters:
className - The name of the subclass that is calling this constructor.
charValue - The character representation of one of the values exposed by the subclass.
See Also:
getCharValue()
Method Detail

getInstance

public static OrdinalType getInstance(java.lang.String className,
                                      char charValue)
Returns a reference to the instance of OrdinalType that is associated to the specified character.

Parameters:
className - The name of the subclass that is calling this method.
charValue - The character representation of one of the values exposed by the subclass.
Returns:
A reference to the corresponding instance for the specified character.
See Also:
getCharValue()

getCharValue

public char getCharValue()
Returns the character representation of the ordinal value associated to this object.

Returns:
The character representation of the ordinal value associated to this object.

toString

protected java.lang.String toString(java.lang.String className)
Returns a string representation of this OrdinalType object.

Parameters:
className - The name of the subclass that is calling this method.
Returns:
A text string including the character wrapped by this OrdinalType object.


Copyright © 2005 IBM All Rights Reserved.