|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.workflow.engine.WfVariable
Name-value pair. The name is a string and the value must be serializable so it can be stored in the database. Some additional attributes are the type name and whether the variable is required.
Use the newWfVariable
static factory method(s), not the
WfVariable
constructor, to construct instances of this class.
Instances must be constructed using the static factory(s), in order
to ensure proper initialization of the instance.
Supported API: false
Extendable: false
Field Summary | |
private static String |
BOOLEAN
|
private static String |
BYTE
|
private static String |
CHAR
|
private static String |
CLASSNAME
|
private HashMap |
displayNameMap
|
private static String |
DOUBLE
|
private static ClassInfo |
ENUMERATEDTYPE
|
static long |
EXTERNALIZATION_VERSION_UID
|
private static String |
FLOAT
|
private static String |
INT
|
private static String |
LONG
|
private String |
name
|
private static String |
OBJECT_REFERENCE
|
protected static long |
OLD_FORMAT_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID_1
|
protected static long |
OLD_FORMAT_VERSION_UID_2
|
protected static long |
OLD_FORMAT_VERSION_UID_3
|
private PermissionSet |
permissionList
|
private static ClassInfo |
PERSISTABLE
|
private static String |
PROXY_GROUP
|
private static String |
PROXY_USER
|
private boolean |
readOnly
|
private boolean |
required
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private static String |
SHORT
|
private String |
typeName
|
private Object |
value
|
private static String |
VECTOR_CLASS_NAME
|
private static boolean |
VERBOSE
|
private static ClassInfo |
WTREFERENCE
|
Constructor Summary | |
WfVariable()
|
Method Summary | |
WfVariable |
copy()
Supported API: false |
boolean |
equals(Object obj)
Returns true is the object passed as argument is equal to the current object. |
ClassInfo |
getClassInfo()
Returns the ClassInfo object for this class. |
String |
getConceptualClassname()
Deprecated. |
String |
getDisplayName()
Returns the default displayNameMap entry. |
String |
getDisplayName(Locale locale)
Returns the displayNameMap entry for the specified Locale if it exists. |
HashMap |
getDisplayNameMap()
Gets the value of the attribute: displayNameMap; Map of locale String representations to displayName for that locale. |
String |
getName()
Gets the value of the attribute: name; Name of the variable. |
PermissionSet |
getPermissionList()
Gets the value of the attribute: permissionList; permissionList
stores the set of perrmissions granted to the task participant over
the object referenced by the variable. |
String |
getTypeName()
Gets the value of the attribute: typeName; String representing the variable value's type. |
Object |
getValue()
Gets the value of the attribute: value; Variable's value. |
Object |
getValueObject()
Returns the value of the variable without any conversion. |
Class |
getVariableClass()
Returns the class of the variable. |
protected Vector |
getVector()
Returns the default value as a Vector object. |
int |
hashCode()
Returns the hash code of the object. |
protected void |
initialize()
Supports initialization, following construction of an instance. |
private boolean |
isPrimitive()
Returns true if variable holds a prmitive Java type; false otherwise. |
boolean |
isReadOnly()
Gets the value of the attribute: readOnly; Determines whether the variable can be modified by the assignee of a task. |
boolean |
isRequired()
Gets the value of the attribute: required; Tells whether the variable is ('true') or not required ('false'). |
protected boolean |
isValidValue(Object value)
Returns whether the value passed as argument can be set, given the variables type. |
static WfVariable |
newWfVariable()
Default factory for the class. |
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(WfVariable thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
private Object |
replaceProxyUser(String pRef)
|
void |
setDisplayNameMap(HashMap a_DisplayNameMap)
Sets the value of the attribute: displayNameMap; Map of locale String representations to displayName for that locale. |
void |
setName(String a_Name)
Sets the value of the attribute: name; Name of the variable. |
void |
setPermissionList(PermissionSet a_PermissionList)
Sets the value of the attribute: permissionList; permissionList
stores the set of perrmissions granted to the task participant over
the object referenced by the variable. |
void |
setReadOnly(boolean a_ReadOnly)
Sets the value of the attribute: readOnly; Determines whether the variable can be modified by the assignee of a task. |
void |
setRequired(boolean a_Required)
Sets the value of the attribute: required; Tells whether the variable is ('true') or not required ('false'). |
void |
setTypeName(String a_TypeName)
Sets the value of the attribute: typeName; String representing the variable value's type. |
void |
setValue(Object a_Value)
Sets the value of the attribute: value; Variable's value. |
void |
setValueObject(Object a_value)
Sets the value of the variable to the value passed as argument. |
protected void |
setVector(Vector vect_obj)
Sets the default value to be the vector passed as argument. |
String |
toString()
Returns the conceptual (modeled) name for the class. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private String name
private Object value
private String typeName
private boolean required
private PermissionSet permissionList
private boolean readOnly
private HashMap displayNameMap
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID_1
protected static final long OLD_FORMAT_VERSION_UID_2
protected static final long OLD_FORMAT_VERSION_UID_3
private static final String VECTOR_CLASS_NAME
private static final String BOOLEAN
private static final String BYTE
private static final String CHAR
private static final String DOUBLE
private static final String FLOAT
private static final String INT
private static final String LONG
private static final String SHORT
private static final boolean VERBOSE
private static ClassInfo PERSISTABLE
private static ClassInfo WTREFERENCE
private static ClassInfo ENUMERATEDTYPE
private static final String PROXY_USER
private static final String PROXY_GROUP
private static final String OBJECT_REFERENCE
Constructor Detail |
public WfVariable()
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(WfVariable 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 String getConceptualClassname()
getConceptualClassname
in interface NetFactor
public String toString()
public ClassInfo getClassInfo() throws WTIntrospectionException
getClassInfo
in interface NetFactor
WTIntrospectionException
public String getName()
public void setName(String a_Name)
a_Name
- public Object getValue()
public void setValue(Object a_Value)
a_Value
- public String getTypeName()
public void setTypeName(String a_TypeName)
a_TypeName
- public boolean isRequired()
public void setRequired(boolean a_Required)
a_Required
- public PermissionSet getPermissionList()
permissionList
stores the set of perrmissions granted to the task participant over
the object referenced by the variable.
public void setPermissionList(PermissionSet a_PermissionList)
permissionList
stores the set of perrmissions granted to the task participant over
the object referenced by the variable.
a_PermissionList
- public boolean isReadOnly()
public void setReadOnly(boolean a_ReadOnly)
a_ReadOnly
- public HashMap getDisplayNameMap()
public void setDisplayNameMap(HashMap a_DisplayNameMap)
a_DisplayNameMap
- public boolean equals(Object obj)
obj
-
public int hashCode()
public Class getVariableClass()
public WfVariable copy() throws WTException
WTException
public String getDisplayName(Locale locale)
locale
-
public String getDisplayName()
public static WfVariable newWfVariable() throws WTException
WTException
protected void initialize() throws WTException
WTException
protected boolean isValidValue(Object value)
value
- object to be set
private boolean isPrimitive()
Assumes getTypeName () != null
protected void setVector(Vector vect_obj) throws ClassNotFoundException, IOException, WTException
vect_obj
-
ClassNotFoundException
IOException
WTException
protected Vector getVector() throws ClassNotFoundException, IOException, WTException
ClassNotFoundException
IOException
WTException
public void setValueObject(Object a_value)
public Object getValueObject()
private Object replaceProxyUser(String pRef)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |