|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.workflow.definer.WfVariableInfo
Simple structure containing information pertaining to a execution object variable.
Use the newWfVariableInfo
static factory method(s), not
the WfVariableInfo
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: true
Extendable: false
Field Summary | |
private static String |
BOOLEAN
|
private static String |
BYTE
|
private static String |
CHAR
|
private static String |
CLASSNAME
|
static String |
DEFAULT_VALUE
Label for the attribute; Initial value of the variable. |
private Object |
defaultValue
|
private WfDestination |
destination
|
static String |
DESTINATION
Label for the attribute; Indicates whether the variable can be used in input, output, or both variable maps Supported API: false |
static String |
DISPLAY_NAME_MAP
Label for the attribute; Map of locale String representations to displayName for that locale. |
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 boolean |
mutable
|
static String |
MUTABLE
Label for the attribute; Indicates whether WfVariableInfo can be changed by the user in definer GUI. |
private String |
name
|
static String |
NAME
Label for the attribute; Variable name. |
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
|
static String |
PERMISSION_LIST
Label for the attribute; permissionList stores the set of
perrmissions granted to the task participant over the object referenced
by the variable. |
private PermissionSet |
permissionList
|
private static ClassInfo |
PERSISTABLE
|
static String |
READ_ONLY
Label for the attribute; Determines whether the variable can be modified by the assignee of a task. |
private boolean |
readOnly
|
private boolean |
required
|
static String |
REQUIRED
Label for the attribute; Indicates whether the variable is mandatory (a value must be supplied). |
private boolean |
resetable
|
static String |
RESETABLE
Label for the attribute; Indicates whether value is reset after RESET transition. |
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private static String |
SHORT
|
private static Class |
TARGET_CLASS
|
private static String |
TARGET_CLASS_NAME
|
static String |
TYPE_NAME
Label for the attribute; Internal String representing the name of the class. |
private String |
typeName
|
static String |
VECTOR_CLASS_NAME
|
private static boolean |
VERBOSE
|
private boolean |
visible
|
static String |
VISIBLE
Label for the attribute; Indicates whether variable should be shown to user. |
private static ClassInfo |
WTREFERENCE
|
Constructor Summary | |
WfVariableInfo()
|
Method Summary | |
protected WfVariableInfo |
copy()
Creates a copy of the current variable info. |
WfVariable |
createWfVariable()
Creates a WfVariable object with the same name, type, default value and requiredness. |
boolean |
equals(Object obj)
Determines if the current object is equal to the one passed as argument. |
ClassInfo |
getClassInfo()
Returns the ClassInfo object for this class. |
String |
getConceptualClassname()
Deprecated. |
Object |
getDefaultValue()
Gets the value of the attribute: DEFAULT_VALUE. |
Object |
getDefaultValueObject()
Returns the value of the variable without any conversion. |
WfDestination |
getDestination()
Gets the value of the attribute: DESTINATION. |
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: DISPLAY_NAME_MAP. |
String |
getName()
Gets the value of the attribute: NAME. |
PermissionSet |
getPermissionList()
Gets the value of the attribute: PERMISSION_LIST. |
String |
getTypeName()
Gets the value of the attribute: TYPE_NAME. |
Class |
getVariableClass()
Returns variable class. |
protected Vector |
getVector()
Returns the default value as a Vector object. |
int |
hashCode()
Returns an int to serve as hash code of the object. |
protected void |
initialize()
Supports initialization, following construction of an instance. |
boolean |
isMutable()
Gets the value of the attribute: MUTABLE. |
private boolean |
isPrimitive()
Returns true if variable holds a prmitive Java type; false otherwise. |
boolean |
isReadOnly()
Gets the value of the attribute: READ_ONLY. |
boolean |
isRequired()
Gets the value of the attribute: REQUIRED. |
boolean |
isResetable()
Gets the value of the attribute: RESETABLE. |
boolean |
isTypeCompatibleWith(WfVariableInfo src_var)
Returns whether the current variable as a destination is "type compatible" with the passed as argument. |
boolean |
isValid()
Returns whether the variable info is valid. |
protected boolean |
isValidValue(Object value)
Returns whether the value passed as argument can be set, given the variables type. |
boolean |
isVisible()
Gets the value of the attribute: VISIBLE. |
static WfVariableInfo |
newWfVariableInfo()
No-arg constructor. |
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(WfVariableInfo thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setDefaultValue(Object a_DefaultValue)
Sets the value of the attribute: DEFAULT_VALUE. |
void |
setDefaultValueObject(Object a_value)
Sets the value of the variable to the value passed as argument. |
void |
setDestination(WfDestination a_Destination)
Sets the value of the attribute: DESTINATION. |
void |
setDisplayNameMap(HashMap a_DisplayNameMap)
Sets the value of the attribute: DISPLAY_NAME_MAP. |
void |
setMutable(boolean a_Mutable)
Sets the value of the attribute: MUTABLE. |
void |
setName(String a_Name)
Sets the value of the attribute: NAME. |
void |
setPermissionList(PermissionSet a_PermissionList)
Sets the value of the attribute: PERMISSION_LIST. |
void |
setReadOnly(boolean a_ReadOnly)
Sets the value of the attribute: READ_ONLY. |
void |
setRequired(boolean a_Required)
Sets the value of the attribute: REQUIRED. |
void |
setResetable(boolean a_Resetable)
Sets the value of the attribute: RESETABLE. |
void |
setTypeName(String a_TypeName)
Sets the value of the attribute: TYPE_NAME. |
void |
setVariableClass(Class var_class)
Sets variable class. |
protected void |
setVector(Vector vect_obj)
Sets the default value to be the vector passed as argument. |
void |
setVisible(boolean a_Visible)
Sets the value of the attribute: VISIBLE. |
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
public static final String NAME
private String name
public static final String TYPE_NAME
getName
method of the Class
class.
int -> "int" boolean -> "boolean" char -> "char" byte -> "byte" short ->"short" long -> "long" float -> "float" double -> "double"
private String typeName
public static final String REQUIRED
private boolean required
public static final String VISIBLE
private boolean visible
public static final String DEFAULT_VALUE
Important Note: all primitive variables must be assigned a default
value.
Supported API: true
private Object defaultValue
public static final String RESETABLE
private boolean resetable
public static final String MUTABLE
private boolean mutable
public static final String DESTINATION
private WfDestination destination
public static final String PERMISSION_LIST
permissionList
stores the set of
perrmissions granted to the task participant over the object referenced
by the variable.
private PermissionSet permissionList
public static final String READ_ONLY
private boolean readOnly
public static final String DISPLAY_NAME_MAP
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
public 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 final String TARGET_CLASS_NAME
private static final Class TARGET_CLASS
private static ClassInfo PERSISTABLE
private static ClassInfo WTREFERENCE
private static ClassInfo ENUMERATEDTYPE
Constructor Detail |
public WfVariableInfo()
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(WfVariableInfo 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 String getTypeName()
getName
method of
the Class
class.
int -> "int" boolean -> "boolean" char -> "char" byte -> "byte" short ->"short" long -> "long" float -> "float" double -> "double"
public void setTypeName(String a_TypeName)
getName
method of
the Class
class.
int -> "int" boolean -> "boolean" char -> "char" byte -> "byte" short ->"short" long -> "long" float -> "float" double -> "double"
a_TypeName
- public boolean isRequired()
public void setRequired(boolean a_Required)
a_Required
- public boolean isVisible()
public void setVisible(boolean a_Visible)
a_Visible
- public Object getDefaultValue()
Important Note: all primitive variables must be assigned a default
value.
Supported API: true
public void setDefaultValue(Object a_DefaultValue)
Important Note: all primitive variables must be assigned a default
value.
Supported API: true
a_DefaultValue
- public boolean isResetable()
public void setResetable(boolean a_Resetable)
a_Resetable
- public boolean isMutable()
public void setMutable(boolean a_Mutable)
a_Mutable
- public WfDestination getDestination()
public void setDestination(WfDestination a_Destination)
a_Destination
- 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 isValid()
public static WfVariableInfo newWfVariableInfo() throws WTException
WTException
protected void initialize() throws WTException
WTException
public Class getVariableClass()
public void setVariableClass(Class var_class)
var_class
- public boolean equals(Object obj)
obj
-
public int hashCode()
public boolean isTypeCompatibleWith(WfVariableInfo src_var)
src_var
-
public WfVariable createWfVariable() throws WTException
WTException
public String getDisplayName(Locale locale)
locale
-
public String getDisplayName()
protected boolean isValidValue(Object value)
value
- object to be set
protected WfVariableInfo copy()
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 setDefaultValueObject(Object a_value)
public Object getDefaultValueObject()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |