wt.workflow.engine
Class FiredLinkVector

java.lang.Object
  extended bywt.workflow.engine.FiredLinkVector
All Implemented Interfaces:
Externalizable, Serializable

public class FiredLinkVector
extends Object
implements Externalizable

FiredLinkVector holds links that fired a connector so consecutive firings of a same link are not counted twice The links are stored as ids.

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private  boolean dirty
           
static long EXTERNALIZATION_VERSION_UID
           
private  Vector linkList
           
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
FiredLinkVector()
          Constructs an empty lsit of fired links.
FiredLinkVector(String value)
          Constructor that takes as argument the internal string representation object.
 
Method Summary
 void addLink(ObjectReference ref)
          Add link whose reference is passed as argument to the list of fired links.
private  void checkOldVersion(String value)
           
private  void decodeValue()
           
protected  String getValue()
          Gets the value of the attribute: value.
 boolean hasFired(ObjectReference ref)
          Determines whether link whose reference is passed as argument has already fired.
 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(FiredLinkVector thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
 void reset()
          Empties list of fired links.
private  void setList()
           
private  void setStringValue()
           
protected  void setValue(String a_Value)
          Sets the value of the attribute: value.
 int size()
           
 String toString()
          Returns internal 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

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

value

private String value

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values

SMALL_BLOB_VERSION_UID

public static final long SMALL_BLOB_VERSION_UID
See Also:
Constant Field Values

linkList

private Vector linkList

dirty

private boolean dirty

oldVersion

private boolean oldVersion
Constructor Detail

FiredLinkVector

public FiredLinkVector()
Constructs an empty lsit of fired links.

Supported API: false


FiredLinkVector

public FiredLinkVector(String value)
                throws DatastoreException
Constructor that takes as argument the internal string representation object. The internal string representation is a comma separated list of ids.

Supported API: false

Parameters:
value -
Throws:
DatastoreException
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(FiredLinkVector thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

getValue

protected String getValue()
Gets the value of the attribute: value.

Supported API: false

Returns:
String

setValue

protected void setValue(String a_Value)
                 throws WTPropertyVetoException
Sets the value of the attribute: value.

Supported API: false

Parameters:
a_Value -
Throws:
WTPropertyVetoException

valueValidate

private void valueValidate(String a_Value)
                    throws WTPropertyVetoException
Parameters:
a_Value -
Throws:
WTPropertyVetoException

toString

public String toString()
Returns internal representation of the object.

Supported API: false

Returns:
String

hasFired

public boolean hasFired(ObjectReference ref)
Determines whether link whose reference is passed as argument has already fired. Returns 'true' if this is the case; 'false' otherwise.

Supported API: false

Parameters:
ref -
Returns:
boolean

addLink

public void addLink(ObjectReference ref)
Add link whose reference is passed as argument to the list of fired links.

Supported API: false

Parameters:
ref -

reset

public void reset()
Empties list of fired links.

Supported API: false


setList

private void setList()

setStringValue

private void setStringValue()

checkOldVersion

private void checkOldVersion(String value)

decodeValue

private void decodeValue()

size

public int size()