|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.workflow.definer.WfVariableMap
Class that represents the mapping between process and step variables.
Only the names of the variables are actually stored. The class guarantees
(class invariant) that each destination occurs only once. In other words,
a variable can't receive data from two different sources.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private boolean |
dirty
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private boolean |
oldVersion
|
private Vector |
pairs
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
static long |
SMALL_BLOB_VERSION_UID
|
private String |
value
|
Constructor Summary | |
WfVariableMap()
Default constructor Supported API: false |
|
WfVariableMap(String value)
Cosntructor that takes as input an internal representation of a variable mapping. |
Method Summary | |
boolean |
addPair(WfVariableInfo src,
WfVariableInfo dest)
Adds a pair to the mapping. |
private void |
checkOldVersion(String value)
|
WfVariableMap |
copy()
Procudes a copy of the variable map. |
private void |
decodeValue()
|
String[] |
getDestinations()
Returns an array of Strings with all destination names defined in the mapping. |
String[] |
getDestinations(String src)
Gets the destination name given a source name. |
String |
getSource(String dest)
Gets the source names given the destination name. |
String[] |
getSources()
Returns an array of Strings with all source names defined in the mapping. |
protected String |
getValue()
Gets the value of the attribute: value; Holds internal representation of the mapping, namely, a comma separated string of pairs of variable names. |
VariableNamePair[] |
getVariablePairs()
Returns an array with the variable name pairs of the variable map. |
boolean |
isMapped(String destination)
Returns true if the destination is mapped by some source; otherwise it returns false. |
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(WfVariableMap thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
boolean |
removePair(String src,
String dest)
Removes a pair from the mapping. |
void |
reset()
Empties map. |
private void |
setPairs()
|
private void |
setStringValue()
|
protected void |
setValue(String a_Value)
Sets the value of the attribute: value; Holds internal representation of the mapping, namely, a comma separated string of pairs of variable names. |
String |
toString()
Returns internal string representation of the object. |
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 Vector pairs
private boolean dirty
private boolean oldVersion
Constructor Detail |
public WfVariableMap()
public WfVariableMap(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(WfVariableMap 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 boolean addPair(WfVariableInfo src, WfVariableInfo dest) throws WTException
src
- dest
-
WTException
public boolean removePair(String src, String dest)
src
- dest
-
public String getSource(String dest)
dest
-
public String[] getDestinations(String src)
src
-
public String[] getSources()
public String[] getDestinations()
public String toString()
public WfVariableMap copy() throws WTException
WTException
public VariableNamePair[] getVariablePairs() throws WTException
WTException
public boolean isMapped(String destination)
destination
-
public void reset()
private void setPairs()
private void setStringValue()
private void checkOldVersion(String value)
private void decodeValue()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |