public final class ChoiceType
extends java.lang.Object
implements java.io.Serializable
Choice
object represents.
These constants are used in conjunction with the ChoiceType property to specify
whether a given Choice
object represents an integer-type choice item, a string-type choice
item, a group node for a nested collection of integer-type Choice
objects, or a group node
for a nested collection of string-type Choice
objects.Modifier and Type | Field and Description |
---|---|
static ChoiceType |
INTEGER
Specifies a
Choice object that represents an integer-type choice item. |
static int |
INTEGER_AS_INT
An
int value associated with the INTEGER instance of this class. |
static ChoiceType |
MIDNODE_INTEGER
Specifies a
Choice object that acts as a group node for a nested collection of integer-type Choice
objects. |
static int |
MIDNODE_INTEGER_AS_INT
An
int value associated with the MIDNODE_INTEGER instance of this class. |
static ChoiceType |
MIDNODE_STRING
Specifies a
Choice object that acts as a group node for a nested collection of string-type Choice
objects. |
static int |
MIDNODE_STRING_AS_INT
An
int value associated with the MIDNODE_STRING instance of this class. |
static ChoiceType |
STRING
Specifies a
Choice object that represents a string-type choice item. |
static int |
STRING_AS_INT
An
int value associated with the STRING instance of this class. |
Modifier and Type | Method and Description |
---|---|
static ChoiceType |
getInstanceFromInt(int value)
Returns an instance of this class using its associated integer value.
|
int |
getValue()
Returns the internal integer value associated with a specific instance of this class.
|
java.lang.String |
toString()
Returns a
String representation of this enumeration instance. |
public static final int INTEGER_AS_INT
int
value associated with the INTEGER instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.public static final ChoiceType INTEGER
Choice
object that represents an integer-type choice item. This type of choice item
stores a single integer value with its ChoiceIntegerValue property.
An integer-type choice item must belong to an integer-type choice list and the value of its ChoiceIntegerValue
property can only be assigned to an integer-valued property that has been associated with this choice list.public static final int MIDNODE_STRING_AS_INT
int
value associated with the MIDNODE_STRING instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.public static final ChoiceType MIDNODE_STRING
Choice
object that acts as a group node for a nested collection of string-type Choice
objects. This collection is represented by a com.filenet.api.collection.ChoiceList
object returned by the
ChoiceValues property. Each Choice
object in this collection must represent either a string-type
choice item or a group node for a nested collection of string-type Choice
objects.public static final int MIDNODE_INTEGER_AS_INT
int
value associated with the MIDNODE_INTEGER instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.public static final ChoiceType MIDNODE_INTEGER
Choice
object that acts as a group node for a nested collection of integer-type Choice
objects. This collection is represented by a com.filenet.api.collection.ChoiceList
object returned by the
ChoiceValues property. Each Choice
object in this collection must represent either an integer-type
choice item or a group node for a nested collection of integer-type Choice
objects.public static final int STRING_AS_INT
int
value associated with the STRING instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.public static final ChoiceType STRING
Choice
object that represents a string-type choice item. This type of choice item
stores a single string value with its ChoiceStringValue property. A string-type choice item must belong
to a string-type choice list and the value of its ChoiceStringValue property can only be assigned to a
string-valued property that has been associated with this choice list.public int getValue()
getInstanceFromInt(int)
public java.lang.String toString()
String
representation of this enumeration instance.toString
in class java.lang.Object
public static ChoiceType getInstanceFromInt(int value)
value
- The integer value. (See the *_AS_INT fields.)EngineRuntimeException
- If an enumeration instance with the given
ordinal value does not exist.getValue()
© Copyright IBM Corporation 2006, 2015. All rights reserved.