Class VWSchema
- java.lang.Object
-
- filenet.vw.api.VWSchema
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public final class VWSchema extends java.lang.Object implements java.io.Serializable, java.lang.CloneableThis class represents an XML schema that can be a property of a workflow definition. Create a schema with theVWWorkflowDefinition.createSchema(String)method. This method manages the format, text, naming, and validation of an XML schema for a workflow definition.- See Also:
VWWorkflowDefinition,VWXMLData, Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description java.lang.Objectclone()Creates a clone of thisVWSchemaobject.java.lang.StringgetFileName()Gets the name of the file that contained the schema used in the design-time schema.java.lang.StringgetName()Gets the name of this VWSchema object.java.lang.StringgetSchema()Gets the schema text of this VWSchema object.voidsetName(java.lang.String theName)Sets the name of this schema.voidsetSchema(java.lang.String theSchema)Sets the schema text of this VWSchema object.java.lang.StringtoString()Gets a string version of the schema name.voidtoXML(java.lang.StringBuffer theBuffer)voidvalidate(VWSession theSession, java.util.Vector EDefVector)
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Gets the name of this VWSchema object.- Returns:
- The name of this VWSchema object.
-
getSchema
public java.lang.String getSchema()
Gets the schema text of this VWSchema object.- Returns:
- The schema.
-
setSchema
public void setSchema(java.lang.String theSchema)
Sets the schema text of this VWSchema object.- Parameters:
theSchema- The new schema text for this VWSchema object.
-
setName
public void setName(java.lang.String theName) throws VWExceptionSets the name of this schema.- Parameters:
theName- Name value of this VWSchema object, which must be unique within the workflow.- Throws:
VWException
-
validate
public void validate(VWSession theSession, java.util.Vector EDefVector) throws VWException
Validates 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:
theSession- The current VWSession object if logged on. This is needed for various parts of the validation process. This can be null; however, areas of validation requiring a logon will not be validated.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.
- Throws:
VWException- Thrown if an error occurs during the validation.- See Also:
VWValidationError
-
toXML
public void toXML(java.lang.StringBuffer theBuffer) throws VWExceptionDeprecated. UseVWWorkflowCollectionDefinition.write(java.io.OutputStream)orVWWorkflowDefinition.write(java.io.OutputStream).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:
VWWorkflowCollectionDefinition,VWWorkflowDefinition
-
toString
public java.lang.String toString()
Gets a string version of the schema name.- Overrides:
toStringin classjava.lang.Object- Returns:
- The name of the schema.
-
clone
public java.lang.Object clone()
Creates a clone of thisVWSchemaobject.- Overrides:
clonein classjava.lang.Object- Returns:
- a clone of this instance.
-
getFileName
public java.lang.String getFileName()
Gets the name of the file that contained the schema used in the design-time schema.For runtime VWSchemas only: This will only be non-null if the design-time schema contained the name of a schema file instead of a schema. At run-time, the schema will be expanded to the contents of the file by the PE Server; however, some runtime applications will need to know the name of the file.
This method returns a non-null value only if this object comes from a workflow definition fetched from the PE server and the schema text for this VWSchema object at design-time was the name of a schema file rather than an XML schema.
- Returns:
- The name of the file specified in the setSchema call at design-time; otherwise, null.
-
-