Package com.esprow.oapi.repository
Enum Class Presence
- All Implemented Interfaces:
Serializable
,Comparable<Presence>
,Constable
,org.eclipse.emf.common.util.Enumerator
The presence of a component's or a message's member.
- See Also:
-
RepositoryPackageImpl.getPresence()
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The 'Constant' literal value.static final int
The 'Forbidden' literal value.static final int
The 'Ignored' literal value.static final int
The 'Optional' literal value.static final int
The 'Required' literal value.A public read-only list of all the 'Presence' enumerators. -
Method Summary
Modifier and TypeMethodDescriptionstatic Presence
get
(int value) Returns the 'Presence' literal with the specified integer value.static Presence
Returns the 'Presence' literal with the specified literal value.static Presence
Returns the 'Presence' literal with the specified name.getName()
int
getValue()
toString()
Returns the literal value of the enumerator, which is its string representation.static Presence
Returns the enum constant of this class with the specified name.static Presence[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OPTIONAL
The 'Optional' literal object. The field or component MAY be present; it may be conditionally required based on a rule.- See Also:
-
REQUIRED
The 'Required' literal object. The field or component MUST be present.- See Also:
-
FORBIDDEN
The 'Forbidden' literal object. The field or component MUST NOT be present.- See Also:
-
IGNORED
The 'Ignored' literal object. The field or component MAY be present but is not validated.- See Also:
-
CONSTANT
The 'Constant' literal object. The field has a constant value; in some encodings it need not be sent on the wire.- See Also:
-
-
Field Details
-
OPTIONAL_VALUE
public static final int OPTIONAL_VALUEThe 'Optional' literal value. The field or component MAY be present; it may be conditionally required based on a rule.- See Also:
-
REQUIRED_VALUE
public static final int REQUIRED_VALUEThe 'Required' literal value. The field or component MUST be present.- See Also:
-
FORBIDDEN_VALUE
public static final int FORBIDDEN_VALUEThe 'Forbidden' literal value. The field or component MUST NOT be present.- See Also:
-
IGNORED_VALUE
public static final int IGNORED_VALUEThe 'Ignored' literal value. The field or component MAY be present but is not validated.- See Also:
-
CONSTANT_VALUE
public static final int CONSTANT_VALUEThe 'Constant' literal value. The field has a constant value; in some encodings it need not be sent on the wire.- See Also:
-
VALUES
A public read-only list of all the 'Presence' enumerators.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
get
Returns the 'Presence' literal with the specified literal value.- Parameters:
literal
- the literal.- Returns:
- the matching enumerator or
null
.
-
getByName
Returns the 'Presence' literal with the specified name.- Parameters:
name
- the name.- Returns:
- the matching enumerator or
null
.
-
get
Returns the 'Presence' literal with the specified integer value.- Parameters:
value
- the integer value.- Returns:
- the matching enumerator or
null
.
-
getValue
public int getValue()- Specified by:
getValue
in interfaceorg.eclipse.emf.common.util.Enumerator
-
getName
- Specified by:
getName
in interfaceorg.eclipse.emf.common.util.Enumerator
-
getLiteral
- Specified by:
getLiteral
in interfaceorg.eclipse.emf.common.util.Enumerator
-
toString
Returns the literal value of the enumerator, which is its string representation.
-