Class DereferenceClause

java.lang.Object
opendap.servers.AbstractClause
opendap.servers.DereferenceClause
All Implemented Interfaces:
Clause, SubClause

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:
  • Field Details

    • url

      protected String url
    • parent

      protected Clause parent
    • value

      protected opendap.dap.BaseType value
  • Constructor Details

  • Method Details

    • getValue

      public opendap.dap.BaseType getValue()
      Description copied from interface: SubClause
      Returns 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.
      Specified by:
      getValue in interface SubClause
    • evaluate

      public opendap.dap.BaseType evaluate()
      Description copied from interface: SubClause
      Evaluates 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.
      Specified by:
      evaluate in interface SubClause
    • getParent

      public Clause getParent()
      Description copied from interface: SubClause
      Returns the Clause which contains this subclause. The clause returned may be a TopLevelClause or another SubClause.
      Specified by:
      getParent in interface SubClause
    • setParent

      public void setParent(Clause parent)
      Description copied from interface: SubClause
      Sets the parent of this subclause. Used during parsing.
      Specified by:
      setParent in interface SubClause
    • 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: Clause
      Dump clause as in constraint form
      Specified by:
      printConstraint in interface Clause