Class FSTypeConstraintImpl

java.lang.Object
org.apache.uima.cas.impl.FSTypeConstraintImpl
All Implemented Interfaces:
Serializable, FSConstraint, FSMatchConstraint, FSTypeConstraint

class FSTypeConstraintImpl extends Object implements FSTypeConstraint
An implementation of the type constraint interface.
  • Field Details

  • Constructor Details

    • FSTypeConstraintImpl

      FSTypeConstraintImpl()
  • Method Details

    • match

      public boolean match(FeatureStructure fs)
      Description copied from interface: FSMatchConstraint
      Match against feature structures.
      Specified by:
      match in interface FSMatchConstraint
      Parameters:
      fs - The feature structure we want to match.
      Returns:
      -
    • compile

      private final void compile(TypeSystem ts1)
    • add

      public void add(Type type)
      Description copied from interface: FSTypeConstraint
      Add a new type to this type constraint. This method can be called more than once. Multiple types will be interpreted disjunctively.
      Specified by:
      add in interface FSTypeConstraint
      Parameters:
      type - A type that should be permitted by this constraint.
    • add

      public void add(String type)
      Description copied from interface: FSTypeConstraint
      Add a new type to this type constraint. This method can be called more than once. Multiple types will be interpreted disjunctively.
      Specified by:
      add in interface FSTypeConstraint
      Parameters:
      type - A fully qualified type name that should be permitted by this constraint.
    • toString

      public String toString()
      Overrides:
      toString in class Object