Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  //
  // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
  // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
  // Any modifications to this file will be lost upon recompilation of the source schema. 
  // Generated on: 2011.02.20 at 01:29:24 PM MEZ 
  //
  
  
  package net.opengis.xls.v_1_1_0;
 

Java class for AbstractMeasureType complex type.

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

 <complexType name="AbstractMeasureType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}decimal" />
       <attribute name="accuracy" type="{http://www.w3.org/2001/XMLSchema}decimal" />
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "AbstractMeasureType")
     SpeedType.class,
     DistanceType.class,
     AngleType.class
 })
 public abstract class AbstractMeasureType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlAttribute(name = "value", required = true)
     protected BigDecimal value;
     @XmlAttribute(name = "accuracy")
     protected BigDecimal accuracy;

    
Gets the value of the value property.

Returns:
possible object is
 
     public BigDecimal getValue() {
         return ;
     }

    
Sets the value of the value property.

Parameters:
value allowed object is
 
     public void setValue(BigDecimal value) {
         this. = value;
     }

    
Gets the value of the accuracy property.

Returns:
possible object is
    public BigDecimal getAccuracy() {
        return ;
    }

    
Sets the value of the accuracy property.

Parameters:
value allowed object is
    public void setAccuracy(BigDecimal value) {
        this. = value;
    }
    public String toString() {
        final ToStringStrategy strategy = .;
        final StringBuilder buffer = new StringBuilder();
        append(nullbufferstrategy);
        return buffer.toString();
    }
    public StringBuilder append(ObjectLocator locatorStringBuilder bufferToStringStrategy strategy) {
        strategy.appendStart(locatorthisbuffer);
        appendFields(locatorbufferstrategy);
        strategy.appendEnd(locatorthisbuffer);
        return buffer;
    }
    public StringBuilder appendFields(ObjectLocator locatorStringBuilder bufferToStringStrategy strategy) {
        {
            BigDecimal theValue;
            theValue = this.getValue();
            strategy.appendField(locatorthis"value"buffertheValue);
        }
        {
            BigDecimal theAccuracy;
            theAccuracy = this.getAccuracy();
            strategy.appendField(locatorthis"accuracy"buffertheAccuracy);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof AbstractMeasureType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final AbstractMeasureType that = ((AbstractMeasureTypeobject);
        {
            BigDecimal lhsValue;
            lhsValue = this.getValue();
            BigDecimal rhsValue;
            rhsValue = that.getValue();
            if (!strategy.equals(LocatorUtils.property(thisLocator"value"lhsValue), LocatorUtils.property(thatLocator"value"rhsValue), lhsValuerhsValue)) {
                return false;
            }
        }
        {
            BigDecimal lhsAccuracy;
            lhsAccuracy = this.getAccuracy();
            BigDecimal rhsAccuracy;
            rhsAccuracy = that.getAccuracy();
            if (!strategy.equals(LocatorUtils.property(thisLocator"accuracy"lhsAccuracy), LocatorUtils.property(thatLocator"accuracy"rhsAccuracy), lhsAccuracyrhsAccuracy)) {
                return false;
            }
        }
        return true;
    }
    public boolean equals(Object object) {
        final EqualsStrategy strategy = .;
        return equals(nullnullobjectstrategy);
    }
    public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
        int currentHashCode = 1;
        {
            BigDecimal theValue;
            theValue = this.getValue();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"value"theValue), currentHashCodetheValue);
        }
        {
            BigDecimal theAccuracy;
            theAccuracy = this.getAccuracy();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"accuracy"theAccuracy), currentHashCodetheAccuracy);
        }
        return currentHashCode;
    }
    public int hashCode() {
        final HashCodeStrategy strategy = .;
        return this.hashCode(nullstrategy);
    }
    public Object clone() {
        return copyTo(createNewInstance());
    }
    public Object copyTo(Object target) {
        final CopyStrategy strategy = .;
        return copyTo(nulltargetstrategy);
    }
    public Object copyTo(ObjectLocator locatorObject targetCopyStrategy strategy) {
        if (null == target) {
            throw new IllegalArgumentException("Target argument must not be null for abstract copyable classes.");
        }
        if (target instanceof AbstractMeasureType) {
            final AbstractMeasureType copy = ((AbstractMeasureTypetarget);
            if (this.!= null) {
                BigDecimal sourceValue;
                sourceValue = this.getValue();
                BigDecimal copyValue = ((BigDecimalstrategy.copy(LocatorUtils.property(locator"value"sourceValue), sourceValue));
                copy.setValue(copyValue);
            } else {
                copy.value = null;
            }
            if (this.!= null) {
                BigDecimal sourceAccuracy;
                sourceAccuracy = this.getAccuracy();
                BigDecimal copyAccuracy = ((BigDecimalstrategy.copy(LocatorUtils.property(locator"accuracy"sourceAccuracy), sourceAccuracy));
                copy.setAccuracy(copyAccuracy);
            } else {
                copy.accuracy = null;
            }
        }
        return target;
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        if (right instanceof AbstractMeasureType) {
            final AbstractMeasureType target = this;
            final AbstractMeasureType leftObject = ((AbstractMeasureTypeleft);
            final AbstractMeasureType rightObject = ((AbstractMeasureTyperight);
            {
                BigDecimal lhsValue;
                lhsValue = leftObject.getValue();
                BigDecimal rhsValue;
                rhsValue = rightObject.getValue();
                target.setValue(((BigDecimalstrategy.merge(LocatorUtils.property(leftLocator"value"lhsValue), LocatorUtils.property(rightLocator"value"rhsValue), lhsValuerhsValue)));
            }
            {
                BigDecimal lhsAccuracy;
                lhsAccuracy = leftObject.getAccuracy();
                BigDecimal rhsAccuracy;
                rhsAccuracy = rightObject.getAccuracy();
                target.setAccuracy(((BigDecimalstrategy.merge(LocatorUtils.property(leftLocator"accuracy"lhsAccuracy), LocatorUtils.property(rightLocator"accuracy"rhsAccuracy), lhsAccuracyrhsAccuracy)));
            }
        }
    }
New to GrepCode? Check out our FAQ X