|
Parsing Engine | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdanbikel.parser.constraints.AbstractConstraint
public class AbstractConstraint
A base class that throws an
UnsupportedOperationException
for every optional operation
of the Constraint
interface. Note that this class is not
actually abstract
in spite of its name, as it implements
all the methods of the Constraint
interface.
Constructor Summary | |
---|---|
protected |
AbstractConstraint()
Constructs a new instance of this base class, typically called implicitly by concrete subclasses. |
Method Summary | |
---|---|
Constraint |
getParent()
Throws an UnsupportedOperationException . |
boolean |
hasBeenSatisfied()
Throws an UnsupportedOperationException . |
boolean |
isLeaf()
Throws an UnsupportedOperationException . |
boolean |
isLocallySatisfiedBy(Item item)
Throws an UnsupportedOperationException . |
boolean |
isSatisfiedBy(Item item)
Throws an UnsupportedOperationException . |
boolean |
isViolatedBy(Item item)
Throws an UnsupportedOperationException . |
boolean |
isViolatedByChild(Item childItem)
Throws an UnsupportedOperationException . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractConstraint()
Method Detail |
---|
public boolean isLeaf()
UnsupportedOperationException
.
isLeaf
in interface Constraint
ConstraintSet.hasTreeStructure()
public Constraint getParent()
UnsupportedOperationException
.
getParent
in interface Constraint
ConstraintSet.hasTreeStructure()
public boolean isSatisfiedBy(Item item)
UnsupportedOperationException
.
isSatisfiedBy
in interface Constraint
item
- the item to test
public boolean hasBeenSatisfied()
UnsupportedOperationException
.
hasBeenSatisfied
in interface Constraint
public boolean isLocallySatisfiedBy(Item item)
UnsupportedOperationException
.
isLocallySatisfiedBy
in interface Constraint
public boolean isViolatedBy(Item item)
UnsupportedOperationException
.
isViolatedBy
in interface Constraint
item
- the item to test
public boolean isViolatedByChild(Item childItem)
UnsupportedOperationException
.
isViolatedByChild
in interface Constraint
childItem
- the child item to test
ConstraintSet.hasTreeStructure()
|
Parsing Engine | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |