Class VWWebServiceParameterDefinition
- java.lang.Object
-
- filenet.vw.api.VWWebServiceParameterDefinition
-
- All Implemented Interfaces:
- java.io.Serializable
public final class VWWebServiceParameterDefinition extends java.lang.Object implements java.io.SerializableUse this class to access the definition object for a web service parameter.The functions of the methods for this class can be conceptualized as modifiers to XML code for a parameter. The following XML example code snippets represent a set of parameters. The parameter representations are commented with notes in square brackets ([]), which describe various functions of the major methods in this class.
<addProjectField xmlns="http://www.filenet.com/ns/fnpe/2004/06/po/wsdl/<workclassName>">
[
[parameter name | parameter value | closing tag]addProjectFieldis not contained within any other parameters; therefore it has a lexical level of 0. As the first parameter of the set,addProjectFieldhas a sequence number of 0.]<ProjectName>Process Orchestration</ProjectName>
[as the second parameter occurring in the set,
ProjectNamehas a sequence number of 1. For more information on sequence numbering, see getSequenceNumber].
ProjectNameis contained within the preceding parameter, so it has a lexical level one greater, which would be level 1.]<MileStoneDates> <StartDate>3-14-2004</StartDate> <EndDate>4-14-2004</EndDate> </MileStoneDates>[For additional information on lexical level values, see setLexicalLevel.
The following parameter, members, is an array, so getIsArray() would return true for the members parameter. The array below has four values.]<Members> <value xmlns="http://www.filenet.com/ns/fnpe/2004/06/po/schema/basic">Filenet</value> ["value" is the array tag for the members array parameter, which could be retrieved with getArrayTag(). Note that all the parameter array members of one array are associated with the same namespace, which is displayed by getArrayNameSpace().] <value xmlns="http://www.filenet.com/ns/fnpe/2004/06/po/schema/basic">Engineering</value> <value xmlns="http://www.filenet.com/ns/fnpe/2004/06/po/schema/basic">TH-A</value> <value xmlns="http://www.filenet.com/ns/fnpe/2004/06/po/schema/basic">VW</value> </Members> </addProjectField>Note: Any of the elements in a parameter set may also contain XML attributes, according to XML conventions.- See Also:
VWModeType,VWFieldType, Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description java.lang.StringgetArrayAttributes()Returns the attributes for an array specified by an array tag and array namespace, for this parameter.java.lang.StringgetArrayNameSpace()Returns the namespace for the array tag associated with this parameter.java.lang.StringgetArrayTag()Returns the array tag name for this parameter; may benull.java.lang.StringgetAttributes()Returns the attributes for this parameter, as they are applied to this combination of namespace and parameter name.intgetDataType()Returns the integer value associated with thefield data typeof the parameter.booleangetIsArray()Indicates whether the parameter is an array.intgetLexicalLevel()Returns the level of nesting (containment) for this parameter. A parameter that is not contained by any other parameter has lexical level 0.intgetMode()Returns an integer associated with themode propertyfor this parameter.java.lang.StringgetName()Returns the parameter name.java.lang.StringgetNameSpace()Returns the namespace for this parameter.intgetSchemaSubType()Returns the schema sub type for this parameter.intgetSequenceNumber()Returns the unique sequence number for this parameter.VWSessiongetSession()Get the session associated with this event definition.java.lang.StringgetValue()Returns the value of the value property; is notnull.booleanisAttachmentByValue()Indicates whether the Process Engine will send the attachment data by value.voidsetArrayAttributes(java.lang.String arrayAttributes)Sets the attributes for an array specified by array tag and array namespace, for this parameter.voidsetArrayNameSpace(java.lang.String arrayNameSpace)Sets the namespace for an array tag for this parameter; may benull. All array members of an array parameter are assumed to use the same namespace.voidsetArrayTag(java.lang.String arrayTag)Sets the array tag name for this parametervoidsetAttachmentByValue(boolean setting)Specifies whether the Process Engine will send the attachment data by value.voidsetAttributes(java.lang.String attributes)Sets the attributes for this parameter, as they are applied to this combination of namespace and parameter name.voidsetDataType(int theDataType)Sets thefield data type.voidsetIsArray(boolean theIsArray)Sets the isArray flag on the parameter, specifying whether the parameter is an array.voidsetLexicalLevel(int level)Sets the level of nesting (containment) for this parameter. A parameter that is not contained by any other parameter has lexical level 0.voidsetName(java.lang.String theName)Renames this parameter.voidsetNameSpace(java.lang.String nameSpace)Sets the namespace for this parameter.voidsetSchemaSubType(int schemaSubType)Sets the schema sub type for this parameter.voidsetSequenceNumber(int seq)Sets the unique sequence number for this parameter.voidsetValue(java.lang.String theValue)Modifies the parameter value.java.lang.StringtoString()Returns a string representation of this objectvoidtoXML(java.lang.StringBuffer theBuffer)voidtoXPDL(java.lang.String indentA, java.lang.StringBuffer theBuffer)voidvalidate(java.util.Vector EDefVector, VWCompoundStepDefinition myStep)
-
-
-
Method Detail
-
setIsArray
public void setIsArray(boolean theIsArray) throws VWExceptionSets the isArray flag on the parameter, specifying whether the parameter is an array.- Parameters:
theIsArray-truespecifies the parameter is an array;falsespecifies otherwise.- Throws:
VWException- Thrown for various causes.
-
getIsArray
public boolean getIsArray()
Indicates whether the parameter is an array.- Returns:
- A value of
trueindicates the parameter is an array;falseindicates otherwise.
-
setName
public void setName(java.lang.String theName) throws VWExceptionRenames this parameter.- Parameters:
theName- A String containing the new name for the parameter. The name must conform to the following:- The name cannot be null or an empty string.
- The name cannot contain spaces (' '), or tabs ('\t'), or colons (':')
- Throws:
VWException- Thrown for various reasons, including invalid name format or duplication of another parameter name.
-
getName
public java.lang.String getName()
Returns the parameter name. If a translation source exists, the authored name 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 parameter name, if a translation source exists; otherwise the authored name is returned.
- See Also:
setName
-
setValue
public void setValue(java.lang.String theValue) throws VWExceptionModifies the parameter value.- Parameters:
theValue- New parameter value; may not be null.- Throws:
VWException- Causes include inputting a null value.
-
getValue
public java.lang.String getValue()
Returns the value of the value property; is notnull.- Returns:
- The value of the value property
-
setDataType
public void setDataType(int theDataType) throws VWExceptionSets thefield data type.- Parameters:
theDataType- Integer value associated with the data type for the parameter.- Throws:
VWException- Causes include specifying an invalid type.- See Also:
VWFieldType
-
getDataType
public int getDataType()
Returns the integer value associated with thefield data typeof the parameter.- Returns:
- Integer value associated with the data type of the parameter
- See Also:
VWFieldType
-
getMode
public int getMode()
Returns an integer associated with themode propertyfor this parameter.- Returns:
- Integer value associated with the mode of the parameter
- See Also:
VWModeType
-
setAttachmentByValue
public void setAttachmentByValue(boolean setting) throws VWExceptionSpecifies whether the Process Engine will send the attachment data by value.- Parameters:
setting-truespecifies the Process Engine will send the attachment by value.- Throws:
VWException
-
isAttachmentByValue
public boolean isAttachmentByValue() throws VWExceptionIndicates whether the Process Engine will send the attachment data by value.- Returns:
trueindicates the Process Engine will send the attachment by value.- Throws:
VWException
-
setNameSpace
public void setNameSpace(java.lang.String nameSpace) throws VWExceptionSets the namespace for this parameter.- Parameters:
nameSpace- Namespace for this parameter; may benull.- Throws:
VWException
-
getNameSpace
public java.lang.String getNameSpace() throws VWExceptionReturns the namespace for this parameter.- Returns:
- Namespace for this parameter; may be
null - Throws:
VWException
-
setAttributes
public void setAttributes(java.lang.String attributes) throws VWExceptionSets the attributes for this parameter, as they are applied to this combination of namespace and parameter name.- Parameters:
attributes- Attributes for this parameter; may benull.- Throws:
VWException
-
getAttributes
public java.lang.String getAttributes() throws VWExceptionReturns the attributes for this parameter, as they are applied to this combination of namespace and parameter name.- Returns:
- Attributes for this parameter, as they are applied to
this combination of namespace and parameter name. May be
null. - Throws:
VWException
-
setArrayTag
public void setArrayTag(java.lang.String arrayTag) throws VWExceptionSets the array tag name for this parameter- Parameters:
arrayTag- Array tag name; may benull.- Throws:
VWException
-
getArrayTag
public java.lang.String getArrayTag() throws VWExceptionReturns the array tag name for this parameter; may benull.- Returns:
- Array tag name for this parameter; may be
null. - Throws:
VWException
-
setArrayNameSpace
public void setArrayNameSpace(java.lang.String arrayNameSpace) throws VWExceptionSets the namespace for an array tag for this parameter; may benull. All array members of an array parameter are assumed to use the same namespace.- Parameters:
arrayNameSpace- Namespace for an array member- Throws:
VWException
-
getArrayNameSpace
public java.lang.String getArrayNameSpace() throws VWExceptionReturns the namespace for the array tag associated with this parameter.- Returns:
- Namespace for the array tag associated with this
parameter; may be
null. - Throws:
VWException
-
setArrayAttributes
public void setArrayAttributes(java.lang.String arrayAttributes) throws VWExceptionSets the attributes for an array specified by array tag and array namespace, for this parameter.- Parameters:
arrayAttributes- Attributes for an array specified by an array tag and array namespace, for this parameter. May benull.- Throws:
VWException
-
getArrayAttributes
public java.lang.String getArrayAttributes() throws VWExceptionReturns the attributes for an array specified by an array tag and array namespace, for this parameter.- Returns:
- Attributes for an array specified by array tag
and array namespace, for this parameter. May be
null. - Throws:
VWException
-
setSequenceNumber
public void setSequenceNumber(int seq) throws VWExceptionSets the unique sequence number for this parameter.- Parameters:
seq- Sequence number for the parameter. The sequence number (count) begins with zero (0), and increases monotonically to the total number of parameters, minus one (1).- Throws:
VWException- See Also:
- Sequence example
-
getSequenceNumber
public int getSequenceNumber() throws VWExceptionReturns the unique sequence number for this parameter. The sequence number (count) begins with zero (0), and increases monotonically to the total number of parameters, minus one (1).- Returns:
- Unique sequence number for this parameter.
- Throws:
VWException
-
setLexicalLevel
public void setLexicalLevel(int level) throws VWExceptionSets the level of nesting (containment) for this parameter. A parameter that is not contained by any other parameter has lexical level 0.- Parameters:
level- Level of nesting (containment), or lexical level for this parameter.
Note: If the lexical level for a given parameter is greater than the lexical level of the preceding (by sequence number) parameter, it can exceed the preceding level by a maximum value of one (1).- Throws:
VWException
-
getLexicalLevel
public int getLexicalLevel() throws VWExceptionReturns the level of nesting (containment) for this parameter. A parameter that is not contained by any other parameter has lexical level 0.- Returns:
- Level of nesting (containment) for this parameter.
- Throws:
VWException- See Also:
VWWebServiceParameterDefinition.setLexicalLevel(int)
-
setSchemaSubType
public void setSchemaSubType(int schemaSubType) throws VWExceptionSets the schema sub type for this parameter.- Parameters:
schemaSubType- the schema sub type for this parameter.- Throws:
VWException- See Also:
VWXMLSchemaSubType
-
getSchemaSubType
public int getSchemaSubType() throws VWExceptionReturns the schema sub type for this parameter.- Returns:
- schema sub type for this parameter.
- Throws:
VWException- See Also:
VWWebServiceParameterDefinition.setSchemaSubType(int),VWXMLSchemaSubType
-
toString
public java.lang.String toString()
Returns a string representation of this object- Overrides:
toStringin classjava.lang.Object- Returns:
- String representation of this object.
-
toXML
public void toXML(java.lang.StringBuffer theBuffer) throws VWExceptionDeprecated. UseVWWorkflowDefinition.write(java.io.OutputStream)orVWWorkflowDefinition.writeToFile(String).Appends 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:
VWWorkflowDefinition
-
toXPDL
public void toXPDL(java.lang.String indentA, java.lang.StringBuffer theBuffer) throws VWExceptionDeprecated. UseVWWorkflowCollectionDefinition.write(java.io.OutputStream)orVWWorkflowCollectionDefinition.writeToFile(String).Appends an XPDL string representing this instance to the buffer specified.Warning: This XPDL string is nonextensible, and cannot be modified in any way.
- Parameters:
indentA- A String specifying the initial indentation for this XPDL section.theBuffer- A StringBuffer that will be appended with the XPDL content.- Throws:
VWException- Thrown if the specified buffer is null.- See Also:
VWWorkflowCollectionDefinition
-
validate
public void validate(java.util.Vector EDefVector, VWCompoundStepDefinition myStep) throws VWExceptionValidates this instance, appending any validation errors found to the specified Vector object. Although this method does not return a value,EDefVectorwill be updated to contain any validation errors found.- Parameters:
EDefVector- A Vector to which will be added a VWValidationError object for each validation error found. This can be null; in this case, a new Vector is used.Note: Because validate methods having EDefVector in the signature also occur on other classes, the existing Vector can contain validation errors from previous validation calls.
myStep- A VWCompoundStepDefinition object for the referenced step.- Throws:
VWException- Thrown if an error occurs during the validation.
-
getSession
public VWSession getSession() throws VWException
Get the session associated with this event definition.- Returns:
- The session associated with this event definition, may return null.
- Throws:
VWException
-
-