filenet.vw.api
Class VWParameter
- java.lang.Object
-
- filenet.vw.api.VWParameter
-
- All Implemented Interfaces:
- IVWField
public final class VWParameter extends java.lang.Object implements IVWField
Use this class to access the parameter values for a step. Field types for these values are defined in the VWFieldType field summary.- Since:
- VWWS3.10
- See Also:
VWModeType,VWFieldType
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description VWAttributeInfogetAttributeInfo()Gets a VWAttribute object containing attributes for this object, as paired labels (keywords) and values in String format.java.lang.StringgetAuthoredName()Gets the authored, untranslated name of the parameter.java.lang.StringgetDescription()Gets the description of the parameter.intgetFieldType()Gets the field type for the parameter.intgetMode()Gets the integer value for the mode property of the parameter.java.lang.StringgetName()Gets the name of the parameter.java.lang.StringgetStringValue()Converts the value of this parameter to a string.java.lang.ObjectgetValue()Gets the value of the parameter.booleanisArray()Determines whether this parameter is of type array.booleanisSystemParameter()Indicates whether this parameter is of type "system parameter".voidsetValue(java.lang.Object theValue)Sets the value of this parameter, which is of one of the VWFieldType types.java.lang.StringtoString()Gets a string representation for the value of this parameter.voidtoXML(java.lang.StringBuffer theBuffer)Appends an XML string representing this instance to the buffer specified.
-
-
-
Method Detail
-
getFieldType
public int getFieldType()
Gets the field type for the parameter.- Specified by:
getFieldTypein interfaceIVWField- Returns:
- An integer value associated with the field type of the parameter.
- See Also:
VWFieldType
-
getName
public java.lang.String getName()
Gets the name of the parameter. If a translation source exists, the authored name of the parameter is translated.Note: The translation is done only at runtime, so will not appear in design-time applications (such as the Process Designer or Configuration Console).
- Returns:
- A String containing the translated name for this parameter, if a translation source exists; otherwise, the authored name is returned.
-
getAuthoredName
public java.lang.String getAuthoredName() throws VWExceptionGets the authored, untranslated name of the parameter.- Returns:
- A String containing the authored, untranslated parameter name.
- Throws:
VWException
-
getMode
public int getMode()
Gets the integer value for the mode property of the parameter.- Returns:
- An integer value that indicates the mode of the step parameter. Valid modes are MODE_TYPE_IN (1), MODE_TYPE_OUT (2), or MODE_TYPE_IN_OUT (3).
- See Also:
VWModeType
-
getDescription
public java.lang.String getDescription() throws VWExceptionGets the description of the parameter. The method makes a remote call (an RPC) to the server to retrieve the description. If a translation source exists, the authored description of the parameter is translated.Note: The translation is done only at runtime, so will not appear in design-time applications (such as the Process Designer or Configuration Console).
- Returns:
- A String containing the translated description for this parameter, if a translation source exists; otherwise, the authored description is returned.
- Throws:
VWException
-
getValue
public java.lang.Object getValue() throws VWExceptionGets the value of the parameter. The returned object is of one of the VWFieldType types. If its value is array then the returned object must be cast to the proper array type.- Specified by:
getValuein interfaceIVWField- Returns:
- A VWFieldType object representing the value of the parameter.
- Throws:
VWException- Thrown when the parameter is not one of the specific field types in VWFieldType.- See Also:
VWFieldType
-
isArray
public boolean isArray()
Determines whether this parameter is of type array.
-
isSystemParameter
public boolean isSystemParameter()
Indicates whether this parameter is of type "system parameter".- Returns:
- A boolean value. The method returns
trueif the parameter is a system parameter; otherwise, the method returnsfalse.
-
setValue
public void setValue(java.lang.Object theValue) throws VWExceptionSets the value of this parameter, which is of one of the VWFieldType types. If the parameter type is array, you must cast the array to an object when passing it to the method.- Specified by:
setValuein interfaceIVWField- Parameters:
theValue- An object containing the new value of the parameter.- Throws:
VWException- The method throws an exception if the parameter specified has mode type MODE_TYPE_IN (1) or if the parameter is invalid.- See Also:
VWFieldType
-
getStringValue
public java.lang.String getStringValue()
Converts the value of this parameter to a string.- Specified by:
getStringValuein interfaceIVWField- Returns:
- The value of this parameter.
- See Also:
VWFieldType
-
toString
public java.lang.String toString()
Gets a string representation for the value of this parameter.- Overrides:
toStringin classjava.lang.Object- Returns:
- The value of this parameter.
-
toXML
public void toXML(java.lang.StringBuffer theBuffer) throws VWExceptionAppends an XML string representing this instance to the buffer specified.Warning: This XML string is nonextensible, and cannot be modified in any way.
- Parameters:
theBuffer- A StringBuffer that will be appended with the XML content.- Throws:
VWException- Thrown if the specified buffer is null.- See Also:
VWXMLUtil
-
getAttributeInfo
public VWAttributeInfo getAttributeInfo() throws VWException
Gets a VWAttribute object containing attributes for this object, as paired labels (keywords) and values in String format.- Returns:
- A VWAttribute object containing attributes for this object, as paired labels (keywords) and values in String format.
- Throws:
VWException- Since:
- CPE 5.2.0.3 IF003
-
-