opendap.servers.ascii
Class asciiStructure

java.lang.Object
  extended by opendap.dap.BaseType
      extended by opendap.dap.DConstructor
          extended by opendap.dap.DStructure
              extended by opendap.servers.ascii.asciiStructure
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, ClientIO, toASCII

public class asciiStructure
extends DStructure
implements toASCII

See Also:
Serialized Form

Field Summary
 
Fields inherited from class opendap.dap.DStructure
vars
 
Constructor Summary
asciiStructure()
          Constructs a new asciiStructure.
asciiStructure(java.lang.String n)
          Constructs a new asciiStructure with name n.
 
Method Summary
 void toASCII(java.io.PrintWriter pw, boolean addName, java.lang.String rootName, boolean newLine)
          Returns a string representation of the variables value.
 java.lang.String toASCIIAddRootName(java.io.PrintWriter pw, boolean addName, java.lang.String rootName)
           
 java.lang.String toASCIIFlatName(java.lang.String rootName)
           
 
Methods inherited from class opendap.dap.DStructure
addVariable, checkSemantics, clone, deserialize, elementCount, externalize, getTypeName, getVar, getVariable, getVariables, printDecl, printVal
 
Methods inherited from class opendap.dap.DConstructor
addVariable, printXML, someChildHasAttributes
 
Methods inherited from class opendap.dap.BaseType
addAttributeAlias, addAttributeContainer, appendAttribute, appendAttribute, appendAttributeContainer, checkSemantics, delAttribute, delAttribute, elementCount, getAttribute, getAttribute, getAttributeNames, getAttributeTable, getClearName, getLongName, getName, getParent, hasAttributes, newPrimitiveVector, printAttributes, printAttributes, printAttributes, printAttributes, printDecl, printDecl, printDecl, printDecl, printDecl, printDecl, printDecl, printVal, printVal, printVal, printXML, printXML, printXML, printXML, setClearName, setName, setParent
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

asciiStructure

public asciiStructure()
Constructs a new asciiStructure.


asciiStructure

public asciiStructure(java.lang.String n)
Constructs a new asciiStructure with name n.

Parameters:
n - the name of the variable.
Method Detail

toASCII

public void toASCII(java.io.PrintWriter pw,
                    boolean addName,
                    java.lang.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.

toASCIIAddRootName

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

toASCIIFlatName

public java.lang.String toASCIIFlatName(java.lang.String rootName)
Specified by:
toASCIIFlatName in interface toASCII