Class HasAnID
java.lang.Object
org.biopax.paxtools.pattern.constraint.ConstraintAdapter
org.biopax.paxtools.pattern.constraint.HasAnID
- All Implemented Interfaces:
Constraint
Checks if the element has a valid ID.
- Author:
- Ozgun Babur
-
Field Summary
Fields inherited from class org.biopax.paxtools.pattern.constraint.ConstraintAdapter
blacklist, size -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns 1.booleanChecks if the element has one of the desired IDs.Methods inherited from class org.biopax.paxtools.pattern.constraint.ConstraintAdapter
assertIndLength, canGenerate, convertStepDirection, findDirectionInCatalysis, findDirectionInPathways, generate, getCatalysisDirection, getControlChain, getConvParticipants, getDirection, getDirection, getDirection, getDirection, setSize
-
Constructor Details
-
HasAnID
Constructor with the ID fetcher.- Parameters:
fetcher- ID generatoridMap- map of IDs
-
-
Method Details
-
getVariableSize
public int getVariableSize()Returns 1.- Specified by:
getVariableSizein interfaceConstraint- Overrides:
getVariableSizein classConstraintAdapter- Returns:
- 1
-
satisfies
Checks if the element has one of the desired IDs.- Specified by:
satisfiesin interfaceConstraint- Overrides:
satisfiesin classConstraintAdapter- Parameters:
match- current pattern matchind- mapped indices- Returns:
- true if the ID is in the list
-