|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dods.dap.Server.AbstractClause
public abstract class AbstractClause
Provides default implementations for the Clause interface methods. This eliminates redundant code and provides a starting point for new implementations of Clause.
Note that every Clause object is expected to implement either SubClause or TopLevelClause. No default implementations are provided for the methods of these subinterfaces
Also note that it is not necessary to use this class to create your own implementations, it's just a convenience.
The class has no abstract methods, but is declared abstract because it should not be directly instantiated.
Field Summary | |
---|---|
protected List |
children
A list of SubClause objects representing the sub-clauses of this clause. |
protected boolean |
constant
Value to be returned by isConstant(). |
protected boolean |
defined
Value to be returned by isDefined(). |
Constructor Summary | |
---|---|
AbstractClause()
|
Method Summary | |
---|---|
List |
getChildren()
Returns an ordered list of this clause's sub-clauses. |
boolean |
isConstant()
A clause is considered "constant" iff it and its subclauses do not refer to data values from the dataset being constrained. |
boolean |
isDefined()
Returns whether or not the clause has a defined value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean constant
protected boolean defined
protected List children
Constructor Detail |
---|
public AbstractClause()
Method Detail |
---|
public List getChildren()
Clause
getChildren
in interface Clause
public boolean isConstant()
Clause
isConstant
in interface Clause
public boolean isDefined()
Clause
isDefined
in interface Clause
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |