Package hec.io

Class PairedDataContainerVertDatum

All Implemented Interfaces:
IVerticalDatumOperations<PairedDataContainer,mil.army.usace.hec.metadata.VerticalDatumException>, Serializable, Cloneable, mil.army.usace.hec.metadata.VerticalDatum

public class PairedDataContainerVertDatum extends PairedDataContainer implements mil.army.usace.hec.metadata.VerticalDatum
See Also:
  • Field Details

    • vdc

      protected mil.army.usace.hec.metadata.VerticalDatumContainer vdc
  • Constructor Details

    • PairedDataContainerVertDatum

      public PairedDataContainerVertDatum()
      Public constructor
    • PairedDataContainerVertDatum

      public PairedDataContainerVertDatum(PairedDataContainer tsc)
      Public constructor
      Parameters:
      tsc - A PairedDataContainer object to initialize from
    • PairedDataContainerVertDatum

      public PairedDataContainerVertDatum(PairedDataContainer tsc, mil.army.usace.hec.metadata.VerticalDatumContainer vdc) throws mil.army.usace.hec.metadata.VerticalDatumException
      Public constructor
      Parameters:
      tsc - A PairedDataContainer object to initialize from
      vdc - A VerticalDatumContainer object to initialize from
      Throws:
      mil.army.usace.hec.metadata.VerticalDatumException
    • PairedDataContainerVertDatum

      public PairedDataContainerVertDatum(mil.army.usace.hec.metadata.VerticalDatumContainer vdc)
      Public constructor
      Parameters:
      vdc - A VerticalDatumContainer object to initialize from
  • Method Details

    • clone

      public Object clone()
      Return a copy of this object
      Overrides:
      clone in class PairedDataContainer
      Returns:
      a copy of this PairedDataContainer
    • clone

      public void clone(PairedDataContainer pdc)
      Copy this object into another
      Overrides:
      clone in class PairedDataContainer
      Parameters:
      pdc - the object to copy this one into
    • getNativeVerticalDatum

      public String getNativeVerticalDatum() throws mil.army.usace.hec.metadata.VerticalDatumException
      Specified by:
      getNativeVerticalDatum in interface mil.army.usace.hec.metadata.VerticalDatum
      Throws:
      mil.army.usace.hec.metadata.VerticalDatumException
    • getCurrentVerticalDatum

      public String getCurrentVerticalDatum() throws mil.army.usace.hec.metadata.VerticalDatumException
      Specified by:
      getCurrentVerticalDatum in interface mil.army.usace.hec.metadata.VerticalDatum
      Throws:
      mil.army.usace.hec.metadata.VerticalDatumException
    • isCurrentVerticalDatumEstimated

      public boolean isCurrentVerticalDatumEstimated() throws mil.army.usace.hec.metadata.VerticalDatumException
      Specified by:
      isCurrentVerticalDatumEstimated in interface mil.army.usace.hec.metadata.VerticalDatum
      Throws:
      mil.army.usace.hec.metadata.VerticalDatumException
    • toNativeVerticalDatum

      public boolean toNativeVerticalDatum() throws mil.army.usace.hec.metadata.VerticalDatumException
      Specified by:
      toNativeVerticalDatum in interface mil.army.usace.hec.metadata.VerticalDatum
      Throws:
      mil.army.usace.hec.metadata.VerticalDatumException
    • toNGVD29

      public boolean toNGVD29() throws mil.army.usace.hec.metadata.VerticalDatumException
      Specified by:
      toNGVD29 in interface mil.army.usace.hec.metadata.VerticalDatum
      Throws:
      mil.army.usace.hec.metadata.VerticalDatumException
    • toNAVD88

      public boolean toNAVD88() throws mil.army.usace.hec.metadata.VerticalDatumException
      Specified by:
      toNAVD88 in interface mil.army.usace.hec.metadata.VerticalDatum
      Throws:
      mil.army.usace.hec.metadata.VerticalDatumException
    • toVerticalDatum

      public boolean toVerticalDatum(String datum) throws mil.army.usace.hec.metadata.VerticalDatumException
      Specified by:
      toVerticalDatum in interface mil.army.usace.hec.metadata.VerticalDatum
      Throws:
      mil.army.usace.hec.metadata.VerticalDatumException
    • forceVerticalDatum

      public boolean forceVerticalDatum(String datum) throws mil.army.usace.hec.metadata.VerticalDatumException
      Specified by:
      forceVerticalDatum in interface mil.army.usace.hec.metadata.VerticalDatum
      Throws:
      mil.army.usace.hec.metadata.VerticalDatumException
    • getCurrentOffset

      public double getCurrentOffset() throws mil.army.usace.hec.metadata.VerticalDatumException
      Specified by:
      getCurrentOffset in interface mil.army.usace.hec.metadata.VerticalDatum
      Throws:
      mil.army.usace.hec.metadata.VerticalDatumException
    • getCurrentOffset

      public double getCurrentOffset(String unit) throws mil.army.usace.hec.metadata.VerticalDatumException
      Specified by:
      getCurrentOffset in interface mil.army.usace.hec.metadata.VerticalDatum
      Throws:
      mil.army.usace.hec.metadata.VerticalDatumException
    • getNGVD29Offset

      public double getNGVD29Offset() throws mil.army.usace.hec.metadata.VerticalDatumException
      Specified by:
      getNGVD29Offset in interface mil.army.usace.hec.metadata.VerticalDatum
      Throws:
      mil.army.usace.hec.metadata.VerticalDatumException
    • getNGVD29Offset

      public double getNGVD29Offset(String unit) throws mil.army.usace.hec.metadata.VerticalDatumException
      Specified by:
      getNGVD29Offset in interface mil.army.usace.hec.metadata.VerticalDatum
      Throws:
      mil.army.usace.hec.metadata.VerticalDatumException
    • getNAVD88Offset

      public double getNAVD88Offset() throws mil.army.usace.hec.metadata.VerticalDatumException
      Specified by:
      getNAVD88Offset in interface mil.army.usace.hec.metadata.VerticalDatum
      Throws:
      mil.army.usace.hec.metadata.VerticalDatumException
    • getNAVD88Offset

      public double getNAVD88Offset(String unit) throws mil.army.usace.hec.metadata.VerticalDatumException
      Specified by:
      getNAVD88Offset in interface mil.army.usace.hec.metadata.VerticalDatum
      Throws:
      mil.army.usace.hec.metadata.VerticalDatumException
    • isNGVD29OffsetEstimated

      public boolean isNGVD29OffsetEstimated() throws mil.army.usace.hec.metadata.VerticalDatumException
      Specified by:
      isNGVD29OffsetEstimated in interface mil.army.usace.hec.metadata.VerticalDatum
      Throws:
      mil.army.usace.hec.metadata.VerticalDatumException
    • isNAVD88OffsetEstimated

      public boolean isNAVD88OffsetEstimated() throws mil.army.usace.hec.metadata.VerticalDatumException
      Specified by:
      isNAVD88OffsetEstimated in interface mil.army.usace.hec.metadata.VerticalDatum
      Throws:
      mil.army.usace.hec.metadata.VerticalDatumException
    • getVerticalDatumInfo

      public String getVerticalDatumInfo() throws mil.army.usace.hec.metadata.VerticalDatumException
      Specified by:
      getVerticalDatumInfo in interface mil.army.usace.hec.metadata.VerticalDatum
      Throws:
      mil.army.usace.hec.metadata.VerticalDatumException
    • setVerticalDatumInfo

      public void setVerticalDatumInfo(String xmlStr) throws mil.army.usace.hec.metadata.VerticalDatumException
      Specified by:
      setVerticalDatumInfo in interface mil.army.usace.hec.metadata.VerticalDatum
      Throws:
      mil.army.usace.hec.metadata.VerticalDatumException
    • setVerticalDatumContainer

      public void setVerticalDatumContainer(mil.army.usace.hec.metadata.VerticalDatumContainer vdc) throws mil.army.usace.hec.metadata.VerticalDatumException
      Sets the VerticalDatumContainer member of this object from the specified VerticalDatumContainer
      Parameters:
      vdc - the VerticalDatumContainer to set this object from
      Throws:
      mil.army.usace.hec.metadata.VerticalDatumException
    • extractVerticalDatum

      public mil.army.usace.hec.metadata.VerticalDatumContainer extractVerticalDatum() throws mil.army.usace.hec.metadata.VerticalDatumException, IOException
      Description copied from class: DataContainer
      Extracts any verticalDatumInfo string in the supplementalInfo to a VerticalDatumContainer and removes the string from the supplementalInfo.
      Overrides:
      extractVerticalDatum in class DataContainer
      Returns:
      The VerticalDatumContainer
      Throws:
      mil.army.usace.hec.metadata.VerticalDatumException
      IOException
    • insertVerticalDatum

      public void insertVerticalDatum(mil.army.usace.hec.metadata.VerticalDatumContainer vdc) throws IOException
      Description copied from class: DataContainer
      Inserts the text representation a VerticalDatumContainer into the supplementalInfo field of a DataContainer object, replacing any existing vertical datum information in the field
      Overrides:
      insertVerticalDatum in class DataContainer
      Parameters:
      vdc - The VerticalDatumContainer
      Throws:
      IOException
    • getVerticalDatumContainer

      public mil.army.usace.hec.metadata.VerticalDatumContainer getVerticalDatumContainer()
      Returns the Vertical Datum Container
      Specified by:
      getVerticalDatumContainer in interface mil.army.usace.hec.metadata.VerticalDatum
      Returns: