public class ValueClause extends AbstractClause implements SubClause
ClauseFactory| Modifier and Type | Field and Description |
|---|---|
protected Clause |
parent |
protected BaseType |
value |
children, constant, defined| Modifier | Constructor and Description |
|---|---|
protected |
ValueClause(BaseType value,
boolean constant)
Creates a new ValueClause.
|
| Modifier and Type | Method and Description |
|---|---|
BaseType |
evaluate()
Returns the BaseType represented by this clause.
|
Clause |
getParent()
Returns the Clause which contains this subclause.
|
BaseType |
getValue()
Returns the BaseType represented by this clause.
|
void |
printConstraint(java.io.PrintWriter os)
Prints the original string representation of this clause.
|
void |
setParent(Clause parent)
Sets the parent of this subclause.
|
getChildren, isConstant, isDefinedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildren, isConstant, isDefinedprotected ValueClause(BaseType value, boolean constant)
value - The BaseType represented by this clause. This can
be either a BaseType taken from the DDS of a dataset, or a BaseType
object created to hold a constant value.constant - Should be set to false if the value parameter is
from the DDS of a dataset, and true if the value parameter is a
constant value.public BaseType getValue()
public BaseType evaluate()
evaluate in interface SubClauseDAP2ServerSideException - Not thrown by this type of clause.public Clause getParent()
SubClausepublic void setParent(Clause parent)
SubClausepublic void printConstraint(java.io.PrintWriter os)
printConstraint in interface Clause