public final class Cardinality
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static Cardinality |
ENUM
Specifies a property with enumeration cardinality.
|
static int |
ENUM_AS_INT
An
int value associated with the ENUM instance of this class. |
static Cardinality |
LIST
Specifies a property with list cardinality.
|
static int |
LIST_AS_INT
An
int value associated with the LIST instance of this class. |
static Cardinality |
SINGLE
Specifies a property with single cardinality.
|
static int |
SINGLE_AS_INT
An
int value associated with the SINGLE instance of this class. |
Modifier and Type | Method and Description |
---|---|
static Cardinality |
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 ENUM_AS_INT
int
value associated with the ENUM 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 Cardinality ENUM
public static final int SINGLE_AS_INT
int
value associated with the SINGLE 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 Cardinality SINGLE
public static final int LIST_AS_INT
int
value associated with the LIST 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 Cardinality 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 Cardinality 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.