Class MeasureType

  • All Implemented Interfaces:
    Cloneable, org.jvnet.jaxb.lang.CopyTo, org.jvnet.jaxb.lang.Equals, org.jvnet.jaxb.lang.HashCode, org.jvnet.jaxb.lang.MergeFrom, org.jvnet.jaxb.lang.ToString

    public class MeasureType
    extends Object
    implements Cloneable, org.jvnet.jaxb.lang.CopyTo, org.jvnet.jaxb.lang.Equals, org.jvnet.jaxb.lang.HashCode, org.jvnet.jaxb.lang.MergeFrom, org.jvnet.jaxb.lang.ToString
    gml:MeasureType supports recording an amount encoded as a value of XML Schema double, together with a units of measure indicated by an attribute uom, short for "units Of measure". The value of the uom attribute identifies a reference system for the amount, usually a ratio or interval scale. OGC WaterML2.0 alters this definition to make uom optional as this value is defaulted for a series.

    Java class for MeasureType complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="MeasureType">
       <simpleContent>
         <extension base="<http://www.w3.org/2001/XMLSchema>double">
           <attribute name="uom" type="{http://www.opengis.net/swe/2.0}UomSymbol" />
         </extension>
       </simpleContent>
     </complexType>
     
    • Field Detail

      • value

        protected double value
    • Constructor Detail

      • MeasureType

        public MeasureType()
        Default no-arg constructor
      • MeasureType

        public MeasureType​(double value,
                           String uom)
        Fully-initialising value constructor
    • Method Detail

      • getValue

        public double getValue()
        Gets the value of the value property.
      • setValue

        public void setValue​(double value)
        Sets the value of the value property.
      • isSetValue

        public boolean isSetValue()
      • getUom

        public String getUom()
        Gets the value of the uom property.
        Returns:
        possible object is String
      • setUom

        public void setUom​(String value)
        Sets the value of the uom property.
        Parameters:
        value - allowed object is String
      • isSetUom

        public boolean isSetUom()
      • append

        public StringBuilder append​(org.jvnet.jaxb.locator.ObjectLocator locator,
                                    StringBuilder buffer,
                                    org.jvnet.jaxb.lang.ToStringStrategy strategy)
        Specified by:
        append in interface org.jvnet.jaxb.lang.ToString
      • appendFields

        public StringBuilder appendFields​(org.jvnet.jaxb.locator.ObjectLocator locator,
                                          StringBuilder buffer,
                                          org.jvnet.jaxb.lang.ToStringStrategy strategy)
        Specified by:
        appendFields in interface org.jvnet.jaxb.lang.ToString
      • equals

        public boolean equals​(org.jvnet.jaxb.locator.ObjectLocator thisLocator,
                              org.jvnet.jaxb.locator.ObjectLocator thatLocator,
                              Object object,
                              org.jvnet.jaxb.lang.EqualsStrategy strategy)
        Specified by:
        equals in interface org.jvnet.jaxb.lang.Equals
      • hashCode

        public int hashCode​(org.jvnet.jaxb.locator.ObjectLocator locator,
                            org.jvnet.jaxb.lang.HashCodeStrategy strategy)
        Specified by:
        hashCode in interface org.jvnet.jaxb.lang.HashCode
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • copyTo

        public Object copyTo​(Object target)
        Specified by:
        copyTo in interface org.jvnet.jaxb.lang.CopyTo
      • copyTo

        public Object copyTo​(org.jvnet.jaxb.locator.ObjectLocator locator,
                             Object target,
                             org.jvnet.jaxb.lang.CopyStrategy strategy)
        Specified by:
        copyTo in interface org.jvnet.jaxb.lang.CopyTo
      • createNewInstance

        public Object createNewInstance()
        Specified by:
        createNewInstance in interface org.jvnet.jaxb.lang.CopyTo
        Specified by:
        createNewInstance in interface org.jvnet.jaxb.lang.MergeFrom
      • mergeFrom

        public void mergeFrom​(Object left,
                              Object right)
        Specified by:
        mergeFrom in interface org.jvnet.jaxb.lang.MergeFrom
      • mergeFrom

        public void mergeFrom​(org.jvnet.jaxb.locator.ObjectLocator leftLocator,
                              org.jvnet.jaxb.locator.ObjectLocator rightLocator,
                              Object left,
                              Object right,
                              org.jvnet.jaxb.lang.MergeStrategy strategy)
        Specified by:
        mergeFrom in interface org.jvnet.jaxb.lang.MergeFrom
      • withValue

        public MeasureType withValue​(double value)