Enum Class Presence

java.lang.Object
java.lang.Enum<Presence>
com.esprow.oapi.repository.Presence
All Implemented Interfaces:
Serializable, Comparable<Presence>, Constable, org.eclipse.emf.common.util.Enumerator

public enum Presence extends Enum<Presence>
The presence of a component's or a message's member.
See Also:
  • RepositoryPackageImpl.getPresence()
  • Enum Constant Details

    • OPTIONAL

      public static final Presence OPTIONAL
      The 'Optional' literal object. The field or component MAY be present; it may be conditionally required based on a rule.
      See Also:
    • REQUIRED

      public static final Presence REQUIRED
      The 'Required' literal object. The field or component MUST be present.
      See Also:
    • FORBIDDEN

      public static final Presence FORBIDDEN
      The 'Forbidden' literal object. The field or component MUST NOT be present.
      See Also:
    • IGNORED

      public static final Presence IGNORED
      The 'Ignored' literal object. The field or component MAY be present but is not validated.
      See Also:
    • CONSTANT

      public static final Presence 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_VALUE
      The '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_VALUE
      The 'Required' literal value. The field or component MUST be present.
      See Also:
    • FORBIDDEN_VALUE

      public static final int FORBIDDEN_VALUE
      The 'Forbidden' literal value. The field or component MUST NOT be present.
      See Also:
    • IGNORED_VALUE

      public static final int IGNORED_VALUE
      The 'Ignored' literal value. The field or component MAY be present but is not validated.
      See Also:
    • CONSTANT_VALUE

      public static final int CONSTANT_VALUE
      The 'Constant' literal value. The field has a constant value; in some encodings it need not be sent on the wire.
      See Also:
    • VALUES

      public static final List<Presence> VALUES
      A public read-only list of all the 'Presence' enumerators.
  • Method Details

    • values

      public static Presence[] 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

      public static Presence valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • get

      public static Presence get(String literal)
      Returns the 'Presence' literal with the specified literal value.
      Parameters:
      literal - the literal.
      Returns:
      the matching enumerator or null.
    • getByName

      public static Presence getByName(String name)
      Returns the 'Presence' literal with the specified name.
      Parameters:
      name - the name.
      Returns:
      the matching enumerator or null.
    • get

      public static Presence get(int value)
      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 interface org.eclipse.emf.common.util.Enumerator
    • getName

      public String getName()
      Specified by:
      getName in interface org.eclipse.emf.common.util.Enumerator
    • getLiteral

      public String getLiteral()
      Specified by:
      getLiteral in interface org.eclipse.emf.common.util.Enumerator
    • toString

      public String toString()
      Returns the literal value of the enumerator, which is its string representation.
      Overrides:
      toString in class Enum<Presence>