Class Field
java.lang.Object
org.biopax.paxtools.pattern.constraint.ConstraintAdapter
org.biopax.paxtools.pattern.constraint.Field
- All Implemented Interfaces:
Constraint
- Direct Known Subclasses:
FieldOfMultiple
Checks if an element has or has not a specific value for a field, or the field value of another
element.
- Author:
- Ozgun Babur
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ObjectPossible parameter value indicating user desire the field to be empty.static final ObjectPossible parameter value indicating the desired value will be given as the second element to the constraint.Fields inherited from class org.biopax.paxtools.pattern.constraint.ConstraintAdapter
blacklist, size -
Constructor Summary
ConstructorsConstructorDescriptionField(String accessorString1, String accessorString2, Field.Operation oper) Constructor with accessor strings for the field value of the element and the desired value that will be reached from the second element.Field(String accessorString, Field.Operation oper, Object value) Constructor with accessor string for the field value of the element and the desired value. -
Method Summary
Methods inherited from class org.biopax.paxtools.pattern.constraint.ConstraintAdapter
assertIndLength, canGenerate, convertStepDirection, findDirectionInCatalysis, findDirectionInPathways, generate, getCatalysisDirection, getControlChain, getConvParticipants, getDirection, getDirection, getDirection, getDirection, getVariableSize, setSize
-
Field Details
-
EMPTY
Possible parameter value indicating user desire the field to be empty. -
USE_SECOND_ARG
Possible parameter value indicating the desired value will be given as the second element to the constraint.
-
-
Constructor Details
-
Field
Constructor with accessor string for the field value of the element and the desired value. If the desired value is EMPTY, then emptiness is checked. If it is USE_SECOND_ARG, then the second mapped element is used as the desired value. If a filed of the second element is desired then the other constructor should be used.- Parameters:
accessorString- accessor string for the elementoper- type of checkvalue- desired value
-
Field
Constructor with accessor strings for the field value of the element and the desired value that will be reached from the second element.- Parameters:
accessorString1- accessor string for the first elementaccessorString2- accessor string for the second elementoper- type of check
-
-
Method Details
-
satisfies
Checks if the element in the first index has the desired value.- Specified by:
satisfiesin interfaceConstraint- Overrides:
satisfiesin classConstraintAdapter- Parameters:
match- current pattern matchind- mapped indices- Returns:
- true if the filed values contain the desired value, or empty as desired.
-