dods.servers.ascii
Class asciiURL

java.lang.Object
  extended by dods.dap.BaseType
      extended by dods.dap.DString
          extended by dods.dap.DURL
              extended by dods.servers.ascii.asciiURL
All Implemented Interfaces:
ClientIO, toASCII, Cloneable

public class asciiURL
extends DURL
implements toASCII


Constructor Summary
asciiURL()
          Constructs a new asciiString.
asciiURL(String n)
          Constructs a new asciiString with name n.
 
Method Summary
 void toASCII(PrintWriter pw, boolean addName, String rootName, boolean newLine)
          Returns a string representation of the variables value.
 String toASCIIAddRootName(PrintWriter pw, boolean addName, String rootName)
           
 String toASCIIFlatName(String rootName)
           
 
Methods inherited from class dods.dap.DURL
getTypeName
 
Methods inherited from class dods.dap.DString
deserialize, externalize, getValue, printVal, setValue
 
Methods inherited from class dods.dap.BaseType
checkSemantics, checkSemantics, clone, elementCount, elementCount, getLongName, getName, getParent, newPrimitiveVector, printDecl, printDecl, printDecl, printDecl, printDecl, printDecl, printDecl, printDecl, printVal, printVal, printVal, setName, setParent
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

asciiURL

public asciiURL()
Constructs a new asciiString.


asciiURL

public asciiURL(String n)
Constructs a new asciiString with name n.

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

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.

toASCIIAddRootName

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

toASCIIFlatName

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