|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.workflow.definer.EventActionTable
Encapsulates event-action mapping of workflow links. Stores the map
internally as a comma separated list of event, action pairs. Assumes
that both event and actions are represented as Strings.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private boolean |
dirty
|
private Hashtable |
eventActionMap
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private boolean |
oldVersion
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
static long |
SMALL_BLOB_VERSION_UID
|
private String |
value
|
Constructor Summary | |
EventActionTable()
Default constructor. |
|
EventActionTable(String value)
Constructor that takes as parameter the internal representation of the mapping. |
Method Summary | |
private void |
checkOldVersion(String value)
|
private void |
decodeValue()
|
Object |
getAction(Object event)
Returns action associated with event passed as argument. |
private Object |
getActionObject(String action_str)
|
private String |
getActionString(Object action)
|
private Object |
getEventObject(String event_str)
|
Enumeration |
getEvents()
Returns enumeration with all events. |
private String |
getEventString(Object event)
|
protected String |
getValue()
Gets the value of the attribute: value; Internal representation of the mapping: comma separated list of event-action pairs. |
void |
putEventAction(Object event,
Object action)
Adds event-action pair to the mapping.. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(EventActionTable thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
removeEvent(Object event)
Removes event-action pair for the event passed as argument. |
private void |
setMap()
|
private void |
setStringValue()
|
protected void |
setValue(String a_Value)
Sets the value of the attribute: value; Internal representation of the mapping: comma separated list of event-action pairs. |
String |
toString()
Retunrs internal representation of mapping. |
private void |
valueValidate(String a_Value)
|
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private String value
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
public static final long SMALL_BLOB_VERSION_UID
private Hashtable eventActionMap
private boolean dirty
private boolean oldVersion
Constructor Detail |
public EventActionTable()
public EventActionTable(String value) throws DatastoreException
value
-
DatastoreException
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(EventActionTable thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
protected String getValue()
protected void setValue(String a_Value) throws WTPropertyVetoException
a_Value
-
WTPropertyVetoException
private void valueValidate(String a_Value) throws WTPropertyVetoException
a_Value
-
WTPropertyVetoException
public String toString()
public Object getAction(Object event)
event
-
public void putEventAction(Object event, Object action)
event
- action
- public Enumeration getEvents()
public void removeEvent(Object event)
event
- private void setMap()
private void setStringValue()
private void checkOldVersion(String value)
private void decodeValue()
private Object getEventObject(String event_str)
private Object getActionObject(String action_str)
private String getEventString(Object event)
private String getActionString(Object action)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |