Package uk.ac.gda.mx.model.selector
Class _Constraint
java.lang.Object
uk.ac.gda.mx.model.selector._Constraint
- All Implemented Interfaces:
Constraint,SelectorUnit
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()getBound()longgetId()booleanisEnable()booleanbooleansetEnable(boolean doEnable) setId(long id) setIsReference(boolean isReference) setRelation(Operator op) setSubject(Field subject)
-
Constructor Details
-
_Constraint
public _Constraint()
-
-
Method Details
-
copy
- Specified by:
copyin interfaceConstraint- Specified by:
copyin interfaceSelectorUnit
-
getBound
- Specified by:
getBoundin interfaceConstraint- Returns:
- the Field value or reference to qualify the Subject against
-
getId
public long getId()- Specified by:
getIdin interfaceConstraint
-
getPrefix
- Specified by:
getPrefixin interfaceConstraint
-
getRelation
- Specified by:
getRelationin interfaceConstraint- Returns:
- the Operator used to qualify the Subject
-
getSubject
- Specified by:
getSubjectin interfaceConstraint- Specified by:
getSubjectin interfaceSelectorUnit- Returns:
- the Field of the Record to qualify
-
isEnable
public boolean isEnable()- Specified by:
isEnablein interfaceSelectorUnit
-
isReference
public boolean isReference()- Specified by:
isReferencein interfaceConstraint
-
pass
- Specified by:
passin interfaceConstraint
-
setBound
- Specified by:
setBoundin interfaceConstraint- Parameters:
bound- the Field value or reference to qualify the Subject agains- Returns:
- the Constraint with Bound set
-
setEnable
- Specified by:
setEnablein interfaceSelectorUnit
-
setId
- Specified by:
setIdin interfaceConstraint
-
setIsReference
- Specified by:
setIsReferencein interfaceConstraint
-
setPrefix
- Specified by:
setPrefixin interfaceConstraint
-
setRelation
- Specified by:
setRelationin interfaceConstraint- Parameters:
op- the Operator used to qualify the subject- Returns:
- the Constraint with Operator set
-
setSubject
- Specified by:
setSubjectin interfaceConstraint- Specified by:
setSubjectin interfaceSelectorUnit- Parameters:
subject- the Field of the Record to qualify- Returns:
- the Constraint with Subject set
-