public interface FSTypeConstraint extends FSMatchConstraint
You can add as many types to this constraint as you like. If you add more than one type, they will be interpreted disjunctively; i.e., the constraint will match any feature structure whose type is subsumed by one of the types of the constraint.
these constraints may be embedded in a path, or combined using and/or operators.
To use the constraint, invoke its FSMatchConstraint.match(FeatureStructure)
method, passing the feature
structure to test.
You can also use these constraints to construct a
CAS.createFilteredIterator(FSIterator, FSMatchConstraint)
.
Modifier and Type | Method and Description |
---|---|
void |
add(String type)
Add a new type to this type constraint.
|
void |
add(Type type)
Add a new type to this type constraint.
|
match
void add(Type type)
type
- A type that should be permitted by this constraint.void add(String type)
type
- A fully qualified type name that should be permitted by this constraint.Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.