Package org.apache.uima.cas.impl
Class FSTypeConstraintImpl
- java.lang.Object
-
- org.apache.uima.cas.impl.FSTypeConstraintImpl
-
- All Implemented Interfaces:
java.io.Serializable
,FSConstraint
,FSMatchConstraint
,FSTypeConstraint
class FSTypeConstraintImpl extends java.lang.Object implements FSTypeConstraint
An implementation of the type constraint interface.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<java.lang.String>
nameSet
private static long
serialVersionUID
private TypeSystem
ts
private SortedIntSet
typeSet
-
Constructor Summary
Constructors Constructor Description FSTypeConstraintImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(java.lang.String type)
Add a new type to this type constraint.void
add(Type type)
Add a new type to this type constraint.private void
compile(TypeSystem ts1)
boolean
match(FeatureStructure fs)
Match against feature structures.java.lang.String
toString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
nameSet
private java.util.Set<java.lang.String> nameSet
-
typeSet
private transient SortedIntSet typeSet
-
ts
private transient TypeSystem ts
-
-
Method Detail
-
match
public boolean match(FeatureStructure fs)
Description copied from interface:FSMatchConstraint
Match against feature structures.- Specified by:
match
in interfaceFSMatchConstraint
- 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 interfaceFSTypeConstraint
- Parameters:
type
- A type that should be permitted by this constraint.
-
add
public void add(java.lang.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 interfaceFSTypeConstraint
- Parameters:
type
- A fully qualified type name that should be permitted by this constraint.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-