dods.dap
Class DUInt16

java.lang.Object
  extended bydods.dap.BaseType
      extended bydods.dap.DInt16
          extended bydods.dap.DUInt16
All Implemented Interfaces:
ClientIO, java.lang.Cloneable
Direct Known Subclasses:
asciiUI16, SDUInt16, wwwUI16

public class DUInt16
extends DInt16

Holds a DODS UInt16 value.

Version:
$Revision: 1.2 $
Author:
ndp
See Also:
BaseType

Constructor Summary
DUInt16()
          Constructs a new DUInt16.
DUInt16(java.lang.String n)
          Constructs a new DUInt16 with name n.
 
Method Summary
 java.lang.String getTypeName()
          Returns the DODS type name of the class instance as a String.
 PrimitiveVector newPrimitiveVector()
          Constructs a new UInt16PrimitiveVector.
 void printVal(java.io.PrintWriter os, java.lang.String space, boolean print_decl_p)
          Prints the value of the variable, with its declaration.
 
Methods inherited from class dods.dap.DInt16
deserialize, externalize, getValue, setValue
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DUInt16

public DUInt16()
Constructs a new DUInt16.


DUInt16

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

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

newPrimitiveVector

public PrimitiveVector newPrimitiveVector()
Constructs a new UInt16PrimitiveVector.

Overrides:
newPrimitiveVector in class DInt16
Returns:
a new UInt16PrimitiveVector.

getTypeName

public java.lang.String getTypeName()
Returns the DODS type name of the class instance as a String.

Overrides:
getTypeName in class DInt16
Returns:
the DODS type name of the class instance as a String.

printVal

public void printVal(java.io.PrintWriter os,
                     java.lang.String space,
                     boolean print_decl_p)
Prints the value of the variable, with its declaration. This function is primarily intended for debugging DODS applications and text-based clients such as geturl.

Overrides:
printVal in class DInt16
Parameters:
os - the PrintWriter on which to print the value.
space - this value is passed to the printDecl method, and controls the leading spaces of the output.
print_decl_p - a boolean value controlling whether the variable declaration is printed as well as the value.
See Also:
BaseType.printVal(PrintWriter, String, boolean)