|
SAP NetWeaver 7.20 (SP01) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<CMICardinality>
com.sap.tc.cmi.metadata.CMICardinality
public enum CMICardinality
Describes the cardinality of a relation role. This type can be called by applications or frameworks using CMI, but DO NOT EXTEND IT!
Starting with NW05, the Web Dynpro context uses this class to describe its cardinalities, too.
Type Classification:
This class is part of the Common Model Interface, so applications may reference it or call any method of this type, but they must not subclass it.
| Enum Constant Summary | |
|---|---|
MANY
Constant for the role cardinality * (== 0..* == 0..n) |
|
ONE
Constant for the role cardinality 1 (== 1..1) |
|
ONE_TO_MANY
Constant for the role cardinality 1..* (== 1..n) |
|
ZERO_TO_ONE
Constant for the role cardinality 0..1 |
|
| Field Summary | |
|---|---|
static CMICardinality |
CARDINALITY_MANY
Deprecated. since NW05, use MANY |
static CMICardinality |
CARDINALITY_ONE
Deprecated. since NW05, use ONE |
static CMICardinality |
CARDINALITY_ONE_TO_MANY
Deprecated. since NW05, use ONE_TO_MANY |
static CMICardinality |
CARDINALITY_ZERO_TO_ONE
Deprecated. since NW05, use ZERO_TO_ONE |
| Method Summary | |
|---|---|
boolean |
isMandatory()
Returns true, if the cardinality is 1 or 1 |
boolean |
isMultiple()
Returns true, if the cardinality is * or 1 |
static CMICardinality |
valueOf(boolean mandatory,
boolean multiple)
Returns the cardinality with the given attributes. |
static CMICardinality |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static CMICardinality[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final CMICardinality ZERO_TO_ONE
public static final CMICardinality MANY
public static final CMICardinality ONE
public static final CMICardinality ONE_TO_MANY
| Field Detail |
|---|
public static final CMICardinality CARDINALITY_ZERO_TO_ONE
ZERO_TO_ONE
public static final CMICardinality CARDINALITY_MANY
MANY
public static final CMICardinality CARDINALITY_ONE
ONE
public static final CMICardinality CARDINALITY_ONE_TO_MANY
ONE_TO_MANY
| Method Detail |
|---|
public static CMICardinality[] values()
for (CMICardinality c : CMICardinality.values()) System.out.println(c);
public static CMICardinality valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic boolean isMandatory()
public boolean isMultiple()
public static CMICardinality valueOf(boolean mandatory,
boolean multiple)
mandatory - true, if at least one element is requiredmultiple - true, if more than one element is allowed
| Access Rights |
|---|
| SC | DC |
|---|---|
[sap.com] FRAMEWORK
|
[sap.com] tc/cmi
|
[sap.com] FRAMEWORK
|
[sap.com] tc/cm/ejb/api
|
|
SAP NetWeaver 7.20 (SP01) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||