Package thredds.server.opendap.servers
Class DereferenceClause
- java.lang.Object
-
- thredds.server.opendap.servers.AbstractClause
-
- thredds.server.opendap.servers.DereferenceClause
-
public class DereferenceClause extends AbstractClause implements SubClause
Represents a sub-clause that is a URL reference to remote data. This feature is not yet supported in Java. Thus this class throws an exception in its constructor.- See Also:
ClauseFactory
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDereferenceClause(String url)Creates a new DereferenceClause
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description opendap.dap.BaseTypeevaluate()Evaluates the clause, first calling evaluate() on any sub-clauses it contains.ClausegetParent()Returns the Clause which contains this subclause.StringgetURL()opendap.dap.BaseTypegetValue()Returns a BaseType containing the current value of the sub-clause.voidprintConstraint(PrintWriter os)Dump clause as in constraint formprotected opendap.dap.BaseTyperetrieve(String url)voidsetParent(Clause parent)Sets the parent of this subclause.-
Methods inherited from class thredds.server.opendap.servers.AbstractClause
getChildren, isConstant, isDefined
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface thredds.server.opendap.servers.Clause
getChildren, isConstant, isDefined
-
-
-
-
Constructor Detail
-
DereferenceClause
protected DereferenceClause(String url) throws DAP2ServerSideException
Creates a new DereferenceClause- Throws:
DAP2ServerSideException
-
-
Method Detail
-
getValue
public opendap.dap.BaseType getValue()
Description copied from interface:SubClauseReturns a BaseType containing the current value of the sub-clause. Sub-clauses that are not constant have an undefined value until the evaluate() method has been called. However, in such circumstances this method is still useful, as it indicates which class of BaseType the sub-clause will evaluate to. Implementations of this method should never return null.
-
evaluate
public opendap.dap.BaseType evaluate()
Description copied from interface:SubClauseEvaluates the clause, first calling evaluate() on any sub-clauses it contains. Implementations of this method should flag the clause as "defined" if the evaluation is successful.
-
getParent
public Clause getParent()
Description copied from interface:SubClauseReturns the Clause which contains this subclause. The clause returned may be a TopLevelClause or another SubClause.
-
setParent
public void setParent(Clause parent)
Description copied from interface:SubClauseSets the parent of this subclause. Used during parsing.
-
getURL
public String getURL()
-
retrieve
protected opendap.dap.BaseType retrieve(String url) throws DAP2ServerSideException
- Throws:
DAP2ServerSideException
-
printConstraint
public void printConstraint(PrintWriter os)
Description copied from interface:ClauseDump clause as in constraint form- Specified by:
printConstraintin interfaceClause
-
-