Constructor and Description |
---|
IltStateInfo(Class clazz,
String description)
Creates the descriptor of an
IltState subclass. |
Modifier and Type | Method and Description |
---|---|
void |
addState(IltState state)
Registers a new state.
|
static Enumeration |
AllStateInfos()
Returns an enumeration of all existing states infos.
|
static IltStateInfo |
FromClass(Class clazz)
Returns the class information for a state, given its class.
|
Class |
getDefiningClass()
Returns the state, a subclass of
IltState . |
String |
getDescription()
Returns a description of the state.
|
IltStateInfo |
getParent()
Returns the parent class descriptor.
|
IltState |
getState(String name)
Returns the state that corresponds to the given name.
|
boolean |
hasState(IltState state)
Tests whether a given state is registered.
|
IltState |
intern(IltState state)
Returns a canonical representation for an
IltState
instance. |
boolean |
isInside(IltStateInfo superclass)
Tests whether this IltStateInfo describes a class that inherits
(directly or indirectly) from the class described by a given IltStateInfo.
|
void |
removeState(IltState state)
Deregisters a state.
|
Enumeration |
states() |
String |
toString()
Returns the String representation of this IltStateInfo's values.
|
public IltStateInfo(Class clazz, String description)
IltState
subclass.
By convention, this descriptor is stored in a static class variable called
metainfo
.clazz
- The IltState
subclass that this
IltStateInfo
describes.description
- Description of the state class.public Class getDefiningClass()
IltState
.public String getDescription()
public static Enumeration AllStateInfos()
IltStateInfo
public static IltStateInfo FromClass(Class clazz)
public IltStateInfo getParent()
public boolean isInside(IltStateInfo superclass)
public boolean hasState(IltState state)
public IltState getState(String name)
name
- State namenull
otherwise.public void addState(IltState state)
public Enumeration states()
public void removeState(IltState state)
public IltState intern(IltState state)
IltState
instance.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.