|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary
java.util.Hashtable
wt.workflow.work.WfTallyPolicy
Tally policies
Supported API: false
Extendable: false
Nested Class Summary |
Nested classes inherited from class java.util.Hashtable |
|
Field Summary | |
private Vector |
ballotList
|
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
private WfTallyType |
name
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private static boolean |
TALLY_NON_REQUIREDS
|
Fields inherited from class java.util.Hashtable |
|
Constructor Summary | |
WfTallyPolicy()
|
Method Summary | |
Vector |
getBallotList()
Gets the value of the attribute: ballotList; This is the EventList to tally against. |
WfTallyType |
getName()
Gets the value of the attribute: name; The type of tally to perform. |
static WfTallyPolicy |
newWfTallyPolicy()
Supported API: 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(WfTallyPolicy thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setBallotList(Vector a_BallotList)
Sets the value of the attribute: ballotList; This is the EventList to tally against. |
void |
setName(WfTallyType a_Name)
Sets the value of the attribute: name; The type of tally to perform. |
boolean |
tallyAll(String event)
The ALL policy will check each ballot's event list for the presence of the event passed. |
boolean |
tallyAny(String event)
The ANY policy will check each ballot's event list for the presence of the event passed in. |
boolean |
tallyNotPlurality(String event)
The notPLURALITY policy will check each ballot's event list for the presence of the event passed in. |
boolean |
tallyNumber(String operator,
int value,
String event)
The Number policy will check each ballot's event list for the presence of the event passed in. |
boolean |
tallyPercent(String operator,
int value,
String event)
The Percent policy will check each ballot's event list for the presence of the event passed in. |
boolean |
tallyPlurality(String event)
The PLURALITY policy will check each ballot's event list for the presence of the event passed in. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private WfTallyType name
private Vector ballotList
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static boolean TALLY_NON_REQUIREDS
Constructor Detail |
public WfTallyPolicy()
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(WfTallyPolicy 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
public WfTallyType getName()
public void setName(WfTallyType a_Name) throws WTPropertyVetoException
a_Name
-
WTPropertyVetoException
public Vector getBallotList()
public void setBallotList(Vector a_BallotList) throws WTPropertyVetoException
a_BallotList
-
WTPropertyVetoException
public static WfTallyPolicy newWfTallyPolicy()
public boolean tallyAny(String event) throws WfException
event
-
WfException
public boolean tallyAll(String event) throws WfException
event
-
WfException
public boolean tallyPlurality(String event) throws WfException
event
-
WfException
public boolean tallyNotPlurality(String event) throws WfException
event
-
WfException
public boolean tallyPercent(String operator, int value, String event) throws WfException
operator
- value
- event
-
WfException
public boolean tallyNumber(String operator, int value, String event) throws WfException
operator
- value
- event
-
WfException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |