Package opendap.dap

Interface BaseTypeFactory

  • All Known Implementing Classes:
    DefaultFactory

    public interface BaseTypeFactory
    A Factory for BaseType objects. The DDS parser must implement this interface so that specific instances of DByte, and other BaseTypes, can be created.

    DDS and its parser will use this interface to create specific instances of the various data type classes in OPeNDAP. There is an implementation of this interface which creates instances of the DByte, etc. classes. If a new set of classes are defined (e.g. NC_Byte, etc.) this interface should be implemented for those classes such that the methods return instances of the appropriate types.

    See Also:
    BaseType, DefaultFactory, DDS
    • Method Detail

      • newDByte

        DByte newDByte()
        Construct a new DByte.
        Returns:
        the new DByte
      • newDByte

        DByte newDByte​(String n)
        Construct a new DByte with name n.
        Parameters:
        n - the variable name
        Returns:
        the new DByte
      • newDInt16

        DInt16 newDInt16()
        Construct a new DInt16.
        Returns:
        the new DInt16
      • newDInt16

        DInt16 newDInt16​(String n)
        Construct a new DInt16 with name n.
        Parameters:
        n - the variable name
        Returns:
        the new DInt16
      • newDUInt16

        DUInt16 newDUInt16()
        Construct a new DUInt16.
        Returns:
        the new DUInt16
      • newDUInt16

        DUInt16 newDUInt16​(String n)
        Construct a new DUInt16 with name n.
        Parameters:
        n - the variable name
        Returns:
        the new DUInt16
      • newDInt32

        DInt32 newDInt32()
        Construct a new DInt32.
        Returns:
        the new DInt32
      • newDInt32

        DInt32 newDInt32​(String n)
        Construct a new DInt32 with name n.
        Parameters:
        n - the variable name
        Returns:
        the new DInt32
      • newDUInt32

        DUInt32 newDUInt32()
        Construct a new DUInt32.
        Returns:
        the new DUInt32
      • newDUInt32

        DUInt32 newDUInt32​(String n)
        Construct a new DUInt32 with name n.
        Parameters:
        n - the variable name
        Returns:
        the new DUInt32
      • newDFloat32

        DFloat32 newDFloat32()
        Construct a new DFloat32.
        Returns:
        the new DFloat32
      • newDFloat32

        DFloat32 newDFloat32​(String n)
        Construct a new DFloat32 with name n.
        Parameters:
        n - the variable name
        Returns:
        the new DFloat32
      • newDFloat64

        DFloat64 newDFloat64()
        Construct a new DFloat64.
        Returns:
        the new DFloat64
      • newDFloat64

        DFloat64 newDFloat64​(String n)
        Construct a new DFloat64 with name n.
        Parameters:
        n - the variable name
        Returns:
        the new DFloat64
      • newDString

        DString newDString()
        Construct a new DString.
        Returns:
        the new DString
      • newDString

        DString newDString​(String n)
        Construct a new DString with name n.
        Parameters:
        n - the variable name
        Returns:
        the new DString
      • newDURL

        DURL newDURL()
        Construct a new DURL.
        Returns:
        the new DURL
      • newDURL

        DURL newDURL​(String n)
        Construct a new DURL with name n.
        Parameters:
        n - the variable name
        Returns:
        the new DURL
      • newDArray

        DArray newDArray()
        Construct a new DArray.
        Returns:
        the new DArray
      • newDArray

        DArray newDArray​(String n)
        Construct a new DArray with name n.
        Parameters:
        n - the variable name
        Returns:
        the new DArray
      • newDGrid

        DGrid newDGrid()
        Construct a new DGrid.
        Returns:
        the new DGrid
      • newDGrid

        DGrid newDGrid​(String n)
        Construct a new DGrid with name n.
        Parameters:
        n - the variable name
        Returns:
        the new DGrid
      • newDStructure

        DStructure newDStructure()
        Construct a new DStructure.
        Returns:
        the new DStructure
      • newDStructure

        DStructure newDStructure​(String n)
        Construct a new DStructure with name n.
        Parameters:
        n - the variable name
        Returns:
        the new DStructure
      • newDSequence

        DSequence newDSequence()
        Construct a new DSequence.
        Returns:
        the new DSequence
      • newDSequence

        DSequence newDSequence​(String n)
        Construct a new DSequence with name n.
        Parameters:
        n - the variable name
        Returns:
        the new DSequence