filenet.vw.api
Class VWRegionFieldDefinition
- java.lang.Object
-
- filenet.vw.api.VWRegionFieldDefinition
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public final class VWRegionFieldDefinition extends java.lang.Object implements java.io.Serializable, java.lang.CloneableUse this class to create, read, delete, or modify Region Field definition properties.- Since:
- CPE 5.2.0.3
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetAuthoredName()Gets the authored name assigned to the region field definition.java.lang.StringgetDescription()Gets the description of the region field definition.intgetFieldType()Gets the integer value that represents the region field's field type.java.lang.StringgetName()Gets the name assigned to the region field definition.java.lang.ObjectgetValue()Gets the value of a field as a valid field type object.booleanisArray()Determines whether the region field is an array.voidsetDescription(java.lang.String description)Sets the description of the region field definition.voidsetValue(java.lang.Object theValue)Sets or modifies the value of the field, ensuring that the field type of this field definition matches the field type of the input value.java.lang.StringtoString()Gets the name of the region field definition.
-
-
-
Method Detail
-
getName
public java.lang.String getName() throws VWExceptionGets the name assigned to the region field definition. If a translated version exists, that version is returned.- Returns:
- A String containing the name of the region field definition.
- Throws:
VWException- Thrown for various reasons.- Since:
- CPE 5.2.0.3
-
getAuthoredName
public java.lang.String getAuthoredName() throws VWExceptionGets the authored name assigned to the region field definition.- Returns:
- A String containing the authored name of the region field definition.
- Throws:
VWException- Thrown for various reasons.- Since:
- CPE 5.2.0.3
-
getDescription
public java.lang.String getDescription() throws VWExceptionGets the description of the region field definition.- Returns:
- A String containing the description.
- Throws:
VWException- Thrown for various reasons.- Since:
- CPE 5.2.0.3
-
setDescription
public void setDescription(java.lang.String description) throws VWExceptionSets the description of the region field definition.- Parameters:
description- A String containing the description.- Throws:
VWException- Thrown for various reasons.- Since:
- CPE 5.2.0.3
-
getFieldType
public int getFieldType()
Gets the integer value that represents the region field's field type.- Returns:
- An integer value indicating the region field type.
- Since:
- CPE 5.2.0.3
- See Also:
VWFieldType.getVWFieldType(Object)
-
setValue
public void setValue(java.lang.Object theValue) throws VWExceptionSets or modifies the value of the field, ensuring that the field type of this field definition matches the field type of the input value. An array value must have at least 1 element, cannot be sparse, and all entries of the array must of the same type.- Parameters:
theValue- An object used to specify the value property. The five basic types are excepted: String, Boolean, Integer, Double(float), java.util.Date (time). Arrays of these five basic types are acceptable.- Throws:
VWException- Throws for various reasons, including situations in which the input is an invalid type or null.- Since:
- CPE 5.2.0.3
- See Also:
VWFieldType.getVWFieldType(Object)
-
getValue
public java.lang.Object getValue() throws VWExceptionGets the value of a field as a valid field type object. If this value is an array (testable withVWRegionFieldDefinition.isArray()), cast the returned value to the correct array type to access individual elements.- Returns:
- The value contained in the region field or
nullif the type is invalid. - Throws:
VWException- Thrown when an error occurs retrieving the field value.- Since:
- CPE 5.2.0.3
- See Also:
VWFieldType.getVWFieldType(Object)
-
isArray
public boolean isArray()
Determines whether the region field is an array.- Returns:
trueif the region field is an array;falseotherwise.- Since:
- CPE 5.2.0.3
-
toString
public java.lang.String toString()
Gets the name of the region field definition.- Overrides:
toStringin classjava.lang.Object- Returns:
- A String containing the name of the region field definition.
- Since:
- CPE 5.2.0.3
-
-