public enum EdmMultiplicity extends Enum<EdmMultiplicity>
EdmMultiplicity indicates the number of entity type instances an association end can relate to:
Enum Constant and Description |
---|
MANY |
ONE |
ZERO_TO_ONE |
Modifier and Type | Method and Description |
---|---|
static EdmMultiplicity |
fromLiteral(String literal)
Gets the multiplicity for a given name.
|
String |
toString()
Returns the OData literal form of this multiplicity.
|
static EdmMultiplicity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EdmMultiplicity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EdmMultiplicity ZERO_TO_ONE
public static final EdmMultiplicity MANY
public static final EdmMultiplicity ONE
public static EdmMultiplicity[] values()
for (EdmMultiplicity c : EdmMultiplicity.values()) System.out.println(c);
public static EdmMultiplicity valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static EdmMultiplicity fromLiteral(String literal)
literal
- EdmMultiplicity
public String toString()
toString
in class Enum<EdmMultiplicity>
Copyright © 2013-2017 The Apache Software Foundation. All Rights Reserved.