com.sap.sl.sdk.authoring.datafoundation
Enum Cardinality

java.lang.Object
  extended by java.lang.Enum<Cardinality>
      extended by com.sap.sl.sdk.authoring.datafoundation.Cardinality
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Cardinality>

public enum Cardinality
extends java.lang.Enum<Cardinality>

A representation of the literals of the enumeration 'Cardinality', and utility methods to work with them.

Cardinality describes how tables are joined by stating how many rows in one table match rows in another table. Cardinalities are needed when detecting aliases and contexts to resolve loops in the data foundation. See the Information Design Tool User Guide for more information.


Enum Constant Summary
C1_1
          The 'C1 1' literal object.
C1_N
          The 'C1 N' literal object.
CN_1
          The 'CN 1' literal object.
CN_N
          The 'CN N' literal object.
CUNKNOWN
          The 'CUNKNOWN' literal object.
 
Field Summary
static int C1_1_VALUE
          The 'C1 1' literal value.
static int C1_N_VALUE
          The 'C1 N' literal value.
static int CN_1_VALUE
          The 'CN 1' literal value.
static int CN_N_VALUE
          The 'CN N' literal value.
static int CUNKNOWN_VALUE
          The 'CUNKNOWN' literal value.
static java.util.List<Cardinality> VALUES
          A public read-only list of all the 'Cardinality' enumerators.
 
Method Summary
static Cardinality get(int value)
          Returns the 'Cardinality' literal with the specified integer value.
static Cardinality get(java.lang.String literal)
          Returns the 'Cardinality' literal with the specified literal value.
static Cardinality getByName(java.lang.String name)
          Returns the 'Cardinality' literal with the specified name.
 java.lang.String getLiteral()
          Returns the string representation of the enumerator.
 java.lang.String getName()
          Returns the literal name of the enumerator.
 int getValue()
          Returns the literal integer value of the enumerator.
 java.lang.String toString()
          Returns the literal value of the enumerator, which is its string representation.
static Cardinality valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Cardinality[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CUNKNOWN

public static final Cardinality CUNKNOWN
The 'CUNKNOWN' literal object.

Unknown cardinality of the join.

See Also:
CUNKNOWN_VALUE

C1_1

public static final Cardinality C1_1
The 'C1 1' literal object.

Cardinality 1-1 of the join.

See Also:
C1_1_VALUE

C1_N

public static final Cardinality C1_N
The 'C1 N' literal object.

Cardinality 1-n of the join.

See Also:
C1_N_VALUE

CN_1

public static final Cardinality CN_1
The 'CN 1' literal object.

Cardinality n-1 of the join.

See Also:
CN_1_VALUE

CN_N

public static final Cardinality CN_N
The 'CN N' literal object.

Cardinality n-n of the join.

See Also:
CN_N_VALUE
Field Detail

CUNKNOWN_VALUE

public static final int CUNKNOWN_VALUE
The 'CUNKNOWN' literal value.

See Also:
CUNKNOWN, Constant Field Values

C1_1_VALUE

public static final int C1_1_VALUE
The 'C1 1' literal value.

See Also:
C1_1, Constant Field Values

C1_N_VALUE

public static final int C1_N_VALUE
The 'C1 N' literal value.

See Also:
C1_N, Constant Field Values

CN_1_VALUE

public static final int CN_1_VALUE
The 'CN 1' literal value.

See Also:
CN_1, Constant Field Values

CN_N_VALUE

public static final int CN_N_VALUE
The 'CN N' literal value.

See Also:
CN_N, Constant Field Values

VALUES

public static final java.util.List<Cardinality> VALUES
A public read-only list of all the 'Cardinality' enumerators.

Method Detail

values

public static Cardinality[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Cardinality c : Cardinality.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Cardinality valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

get

public static Cardinality get(java.lang.String literal)
Returns the 'Cardinality' literal with the specified literal value.

Parameters:
literal - A String that represents the cardinality
Returns:
A Cardinality object

getByName

public static Cardinality getByName(java.lang.String name)
Returns the 'Cardinality' literal with the specified name.

Parameters:
name - The name of the cardinality
Returns:
A Cardinality object

get

public static Cardinality get(int value)
Returns the 'Cardinality' literal with the specified integer value.

Parameters:
value - The literal integer value
Returns:
A Cardinality object

getValue

public int getValue()
Returns the literal integer value of the enumerator.

Returns:
An integer that represents the literal value

getName

public java.lang.String getName()
Returns the literal name of the enumerator.

Returns:
A String that represents the literal name

getLiteral

public java.lang.String getLiteral()
Returns the string representation of the enumerator.

Returns:
A String that represents the enumerator

toString

public java.lang.String toString()
Returns the literal value of the enumerator, which is its string representation.

Overrides:
toString in class java.lang.Enum<Cardinality>
Returns:
A String that represents the literal


© Copyright 2016 SAP SE or an SAP affiliate company. All rights reserved.