dods.servers.ascii
Class asciiUI16
java.lang.Object
dods.dap.BaseType
dods.dap.DInt16
dods.dap.DUInt16
dods.servers.ascii.asciiUI16
- All Implemented Interfaces:
- ClientIO, toASCII, Cloneable
public class asciiUI16
- extends DUInt16
- implements toASCII
Methods inherited from class dods.dap.BaseType |
checkSemantics, checkSemantics, clone, elementCount, elementCount, getLongName, getName, getParent, printDecl, printDecl, printDecl, printDecl, printDecl, printDecl, printDecl, printDecl, printVal, printVal, printVal, setName, setParent |
asciiUI16
public asciiUI16()
- Constructs a new
asciiUI16
.
asciiUI16
public asciiUI16(String n)
- Constructs a new
asciiUI16
with name n
.
- Parameters:
n
- the name of the variable.
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