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 QualityOfPositionType complex type.

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

 <complexType name="QualityOfPositionType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="HorizontalAcc" type="{http://www.opengis.net/xls}HorAccType"/>
         <element name="VerticalAcc" type="{http://www.opengis.net/xls}VerAccType"/>
       </sequence>
       <attribute name="responseReq" default="Delay_Tol">
         <simpleType>
           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
             <enumeration value="No_Delay"/>
             <enumeration value="Low_Delay"/>
             <enumeration value="Delay_Tol"/>
           </restriction>
         </simpleType>
       </attribute>
       <attribute name="responseTimer" type="{http://www.w3.org/2001/XMLSchema}string" />
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "QualityOfPositionType", propOrder = {
     "horizontalAcc",
     "verticalAcc"
 })
 public class QualityOfPositionType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(name = "HorizontalAcc", required = true)
     protected HorAccType horizontalAcc;
     @XmlElement(name = "VerticalAcc", required = true)
     protected VerAccType verticalAcc;
     @XmlAttribute(name = "responseReq")
     protected String responseReq;
     @XmlAttribute(name = "responseTimer")
     protected String responseTimer;

    
Gets the value of the horizontalAcc property.

Returns:
possible object is
 
     public HorAccType getHorizontalAcc() {
         return ;
     }

    
Sets the value of the horizontalAcc property.

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

    
Gets the value of the verticalAcc property.

Returns:
possible object is
    public VerAccType getVerticalAcc() {
        return ;
    }

    
Sets the value of the verticalAcc property.

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

    
Gets the value of the responseReq property.

Returns:
possible object is
    public String getResponseReq() {
        if ( == null) {
            return "Delay_Tol";
        } else {
            return ;
        }
    }

    
Sets the value of the responseReq property.

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

    
Gets the value of the responseTimer property.

Returns:
possible object is
    public String getResponseTimer() {
        return ;
    }

    
Sets the value of the responseTimer property.

Parameters:
value allowed object is
    public void setResponseTimer(String 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) {
        {
            HorAccType theHorizontalAcc;
            theHorizontalAcc = this.getHorizontalAcc();
            strategy.appendField(locatorthis"horizontalAcc"buffertheHorizontalAcc);
        }
        {
            VerAccType theVerticalAcc;
            theVerticalAcc = this.getVerticalAcc();
            strategy.appendField(locatorthis"verticalAcc"buffertheVerticalAcc);
        }
        {
            String theResponseReq;
            theResponseReq = this.getResponseReq();
            strategy.appendField(locatorthis"responseReq"buffertheResponseReq);
        }
        {
            String theResponseTimer;
            theResponseTimer = this.getResponseTimer();
            strategy.appendField(locatorthis"responseTimer"buffertheResponseTimer);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof QualityOfPositionType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final QualityOfPositionType that = ((QualityOfPositionTypeobject);
        {
            HorAccType lhsHorizontalAcc;
            lhsHorizontalAcc = this.getHorizontalAcc();
            HorAccType rhsHorizontalAcc;
            rhsHorizontalAcc = that.getHorizontalAcc();
            if (!strategy.equals(LocatorUtils.property(thisLocator"horizontalAcc"lhsHorizontalAcc), LocatorUtils.property(thatLocator"horizontalAcc"rhsHorizontalAcc), lhsHorizontalAccrhsHorizontalAcc)) {
                return false;
            }
        }
        {
            VerAccType lhsVerticalAcc;
            lhsVerticalAcc = this.getVerticalAcc();
            VerAccType rhsVerticalAcc;
            rhsVerticalAcc = that.getVerticalAcc();
            if (!strategy.equals(LocatorUtils.property(thisLocator"verticalAcc"lhsVerticalAcc), LocatorUtils.property(thatLocator"verticalAcc"rhsVerticalAcc), lhsVerticalAccrhsVerticalAcc)) {
                return false;
            }
        }
        {
            String lhsResponseReq;
            lhsResponseReq = this.getResponseReq();
            String rhsResponseReq;
            rhsResponseReq = that.getResponseReq();
            if (!strategy.equals(LocatorUtils.property(thisLocator"responseReq"lhsResponseReq), LocatorUtils.property(thatLocator"responseReq"rhsResponseReq), lhsResponseReqrhsResponseReq)) {
                return false;
            }
        }
        {
            String lhsResponseTimer;
            lhsResponseTimer = this.getResponseTimer();
            String rhsResponseTimer;
            rhsResponseTimer = that.getResponseTimer();
            if (!strategy.equals(LocatorUtils.property(thisLocator"responseTimer"lhsResponseTimer), LocatorUtils.property(thatLocator"responseTimer"rhsResponseTimer), lhsResponseTimerrhsResponseTimer)) {
                return false;
            }
        }
        return true;
    }
    public boolean equals(Object object) {
        final EqualsStrategy strategy = .;
        return equals(nullnullobjectstrategy);
    }
    public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
        int currentHashCode = 1;
        {
            HorAccType theHorizontalAcc;
            theHorizontalAcc = this.getHorizontalAcc();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"horizontalAcc"theHorizontalAcc), currentHashCodetheHorizontalAcc);
        }
        {
            VerAccType theVerticalAcc;
            theVerticalAcc = this.getVerticalAcc();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"verticalAcc"theVerticalAcc), currentHashCodetheVerticalAcc);
        }
        {
            String theResponseReq;
            theResponseReq = this.getResponseReq();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"responseReq"theResponseReq), currentHashCodetheResponseReq);
        }
        {
            String theResponseTimer;
            theResponseTimer = this.getResponseTimer();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"responseTimer"theResponseTimer), currentHashCodetheResponseTimer);
        }
        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) {
        final Object draftCopy = ((target == null)?createNewInstance():target);
        if (draftCopy instanceof QualityOfPositionType) {
            final QualityOfPositionType copy = ((QualityOfPositionTypedraftCopy);
            if (this.!= null) {
                HorAccType sourceHorizontalAcc;
                sourceHorizontalAcc = this.getHorizontalAcc();
                HorAccType copyHorizontalAcc = ((HorAccTypestrategy.copy(LocatorUtils.property(locator"horizontalAcc"sourceHorizontalAcc), sourceHorizontalAcc));
                copy.setHorizontalAcc(copyHorizontalAcc);
            } else {
                copy.horizontalAcc = null;
            }
            if (this.!= null) {
                VerAccType sourceVerticalAcc;
                sourceVerticalAcc = this.getVerticalAcc();
                VerAccType copyVerticalAcc = ((VerAccTypestrategy.copy(LocatorUtils.property(locator"verticalAcc"sourceVerticalAcc), sourceVerticalAcc));
                copy.setVerticalAcc(copyVerticalAcc);
            } else {
                copy.verticalAcc = null;
            }
            if (this.!= null) {
                String sourceResponseReq;
                sourceResponseReq = this.getResponseReq();
                String copyResponseReq = ((Stringstrategy.copy(LocatorUtils.property(locator"responseReq"sourceResponseReq), sourceResponseReq));
                copy.setResponseReq(copyResponseReq);
            } else {
                copy.responseReq = null;
            }
            if (this.!= null) {
                String sourceResponseTimer;
                sourceResponseTimer = this.getResponseTimer();
                String copyResponseTimer = ((Stringstrategy.copy(LocatorUtils.property(locator"responseTimer"sourceResponseTimer), sourceResponseTimer));
                copy.setResponseTimer(copyResponseTimer);
            } else {
                copy.responseTimer = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new QualityOfPositionType();
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        if (right instanceof QualityOfPositionType) {
            final QualityOfPositionType target = this;
            final QualityOfPositionType leftObject = ((QualityOfPositionTypeleft);
            final QualityOfPositionType rightObject = ((QualityOfPositionTyperight);
            {
                HorAccType lhsHorizontalAcc;
                lhsHorizontalAcc = leftObject.getHorizontalAcc();
                HorAccType rhsHorizontalAcc;
                rhsHorizontalAcc = rightObject.getHorizontalAcc();
                target.setHorizontalAcc(((HorAccTypestrategy.merge(LocatorUtils.property(leftLocator"horizontalAcc"lhsHorizontalAcc), LocatorUtils.property(rightLocator"horizontalAcc"rhsHorizontalAcc), lhsHorizontalAccrhsHorizontalAcc)));
            }
            {
                VerAccType lhsVerticalAcc;
                lhsVerticalAcc = leftObject.getVerticalAcc();
                VerAccType rhsVerticalAcc;
                rhsVerticalAcc = rightObject.getVerticalAcc();
                target.setVerticalAcc(((VerAccTypestrategy.merge(LocatorUtils.property(leftLocator"verticalAcc"lhsVerticalAcc), LocatorUtils.property(rightLocator"verticalAcc"rhsVerticalAcc), lhsVerticalAccrhsVerticalAcc)));
            }
            {
                String lhsResponseReq;
                lhsResponseReq = leftObject.getResponseReq();
                String rhsResponseReq;
                rhsResponseReq = rightObject.getResponseReq();
                target.setResponseReq(((Stringstrategy.merge(LocatorUtils.property(leftLocator"responseReq"lhsResponseReq), LocatorUtils.property(rightLocator"responseReq"rhsResponseReq), lhsResponseReqrhsResponseReq)));
            }
            {
                String lhsResponseTimer;
                lhsResponseTimer = leftObject.getResponseTimer();
                String rhsResponseTimer;
                rhsResponseTimer = rightObject.getResponseTimer();
                target.setResponseTimer(((Stringstrategy.merge(LocatorUtils.property(leftLocator"responseTimer"lhsResponseTimer), LocatorUtils.property(rightLocator"responseTimer"rhsResponseTimer), lhsResponseTimerrhsResponseTimer)));
            }
        }
    }
New to GrepCode? Check out our FAQ X