|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectopendap.dap.Server.AbstractClause
opendap.dap.Server.ValueClause
public class ValueClause
Represents a clause containing a simple value. If the value is an constant value such as "2.0", the clause's isConstant() method will return true; if it is a variable of the dataset, isConstant() will return false.
ClauseFactory| Field Summary | |
|---|---|
protected Clause |
parent
|
protected BaseType |
value
|
| Fields inherited from class opendap.dap.Server.AbstractClause |
|---|
children, constant, defined |
| Constructor Summary | |
|---|---|
protected |
ValueClause(BaseType value,
boolean constant)
Creates a new ValueClause. |
| Method Summary | |
|---|---|
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 |
setParent(Clause parent)
Sets the parent of this subclause. |
java.lang.String |
toString()
Prints the original string representation of this clause. |
| Methods inherited from class opendap.dap.Server.AbstractClause |
|---|
getChildren, isConstant, isDefined |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface opendap.dap.Server.Clause |
|---|
getChildren, isConstant, isDefined |
| Field Detail |
|---|
protected BaseType value
protected Clause parent
| Constructor Detail |
|---|
protected 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.| Method Detail |
|---|
public BaseType getValue()
getValue in interface SubClausepublic BaseType evaluate()
evaluate in interface SubClauseDAP2ServerSideException - Not thrown by this type of clause.public Clause getParent()
SubClause
getParent in interface SubClausepublic void setParent(Clause parent)
SubClause
setParent in interface SubClausepublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||