Enum ConstraintClassifier.ExpectedType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ConstraintClassifier.ExpectedType>
    Enclosing class:
    ConstraintClassifier

    private static enum ConstraintClassifier.ExpectedType
    extends java.lang.Enum<ConstraintClassifier.ExpectedType>
    With the aid of this enum is it possible to tell the Classifier which part of a constraint is expected to be next. If the read constraint do not match to the expected enum type, the current constraint cannot be a AssingmentConstaint.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      CONSTANT_VALUE
      A ConstantValue should be read at next.
      OCL_FEATURE_CALL
      An OCLFeatureCall should be read as next.
      REFERENCE_VALUE
      This is a constraint for a reference.
      VARIABLE
      A Variable should be read at next.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ExpectedType()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ConstraintClassifier.ExpectedType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ConstraintClassifier.ExpectedType[] 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
    • Constructor Detail

      • ExpectedType

        private ExpectedType()
    • Method Detail

      • values

        public static ConstraintClassifier.ExpectedType[] 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 (ConstraintClassifier.ExpectedType c : ConstraintClassifier.ExpectedType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ConstraintClassifier.ExpectedType 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