Class asciiArray

java.lang.Object
opendap.dap.DAPNode
opendap.dap.BaseType
opendap.dap.DVector
opendap.dap.DArray
opendap.servlet.ascii.asciiArray
All Implemented Interfaces:
Serializable, Cloneable, opendap.dap.ClientIO, toASCII

public class asciiArray extends opendap.dap.DArray implements toASCII
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class opendap.dap.DAPNode

    opendap.dap.DAPNode.CloneMap
  • Field Summary

    Fields inherited from class opendap.dap.DArray

    dimVector

    Fields inherited from class opendap.dap.DAPNode

    _nameClear, _nameEncoded, log
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a new asciiArray.
    Constructs a new asciiArray with name n.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    toASCII(PrintWriter pw, boolean addName, String rootName, boolean newLine)
    Returns a string representation of the variables value.
    toASCIIAddRootName(PrintWriter pw, boolean addName, String rootName)
     
     

    Methods inherited from class opendap.dap.DArray

    appendDim, appendDim, checkSemantics, cloneDAG, getDimension, getDimensions, getFirstDimension, getTypeName, numDimensions, printAsMapXML, printConstraint, printDecl, printVal, printXML, squeeze

    Methods inherited from class opendap.dap.DVector

    addVariable, deserialize, externalize, getContainerVar, getLength, getPrimitiveVector, setContainerVar, setLength

    Methods inherited from class opendap.dap.BaseType

    addAttributeAlias, addAttributeContainer, appendAttribute, appendAttribute, appendAttributeContainer, checkSemantics, delAttribute, delAttribute, elementCount, elementCount, getAttribute, getAttribute, getAttributeNames, getAttributeTable, getLongName, hasAttributes, newPrimitiveVector, printAttributes, printAttributes, printAttributes, printAttributes, printDecl, printDecl, printDecl, printDecl, printDecl, printDecl, printDecl, printVal, printVal, printVal, printXML, printXML, printXML, printXML, setClearName

    Methods inherited from class opendap.dap.DAPNode

    clone, cloneDAG, getClearName, getEncodedName, getParent, isProject, setEncodedName, setParent, setProject, setProject, setProjected

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • asciiArray

      public asciiArray()
      Constructs a new asciiArray.
    • asciiArray

      public asciiArray(String n)
      Constructs a new asciiArray with name n.
      Parameters:
      n - the name of the variable.
  • Method Details

    • toASCII

      public void toASCII(PrintWriter pw, boolean addName, String rootName, boolean newLine)
      Returns a string representation of the variables value. This is really foreshadowing functionality for Server types, but as it may come in useful for clients it is added here. Simple types (example: DFloat32) will return a single value. DConstuctor and DVector types will be flattened. DStrings and DURL's will have double quotes around them.
      Specified by:
      toASCII in interface toASCII
      Parameters:
      addName - is a flag indicating if the variable name should appear at the begining of the returned string.
    • toASCIIFlatName

      public String toASCIIFlatName(String rootName)
      Specified by:
      toASCIIFlatName in interface toASCII
    • toASCIIAddRootName

      public String toASCIIAddRootName(PrintWriter pw, boolean addName, String rootName)
      Specified by:
      toASCIIAddRootName in interface toASCII