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, v2.2.11 
  // 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: 2015.04.16 at 07:22:02 AM CEST 
  //
  
  
  package net.opengis.arml.v_2_0;
 

Java class for OrientationType complex type.

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

 <complexType name="OrientationType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="roll" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
         <element name="tilt" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
         <element name="heading" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "OrientationType", propOrder = {
     "roll",
     "tilt",
     "heading"
 })
 public class OrientationType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     protected Double roll;
     protected Double tilt;
     protected Double heading;

    
Gets the value of the roll property.

Returns:
possible object is
 
     public Double getRoll() {
         return ;
     }

    
Sets the value of the roll property.

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

    
Gets the value of the tilt property.

Returns:
possible object is
 
    public Double getTilt() {
        return ;
    }

    
Sets the value of the tilt property.

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

    
Gets the value of the heading property.

Returns:
possible object is
    public Double getHeading() {
        return ;
    }

    
Sets the value of the heading property.

Parameters:
value allowed object is
    public void setHeading(Double 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) {
        {
            Double theRoll;
            theRoll = this.getRoll();
            strategy.appendField(locatorthis"roll"buffertheRoll);
        }
        {
            Double theTilt;
            theTilt = this.getTilt();
            strategy.appendField(locatorthis"tilt"buffertheTilt);
        }
        {
            Double theHeading;
            theHeading = this.getHeading();
            strategy.appendField(locatorthis"heading"buffertheHeading);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof OrientationType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final OrientationType that = ((OrientationTypeobject);
        {
            Double lhsRoll;
            lhsRoll = this.getRoll();
            Double rhsRoll;
            rhsRoll = that.getRoll();
            if (!strategy.equals(LocatorUtils.property(thisLocator"roll"lhsRoll), LocatorUtils.property(thatLocator"roll"rhsRoll), lhsRollrhsRoll)) {
                return false;
            }
        }
        {
            Double lhsTilt;
            lhsTilt = this.getTilt();
            Double rhsTilt;
            rhsTilt = that.getTilt();
            if (!strategy.equals(LocatorUtils.property(thisLocator"tilt"lhsTilt), LocatorUtils.property(thatLocator"tilt"rhsTilt), lhsTiltrhsTilt)) {
                return false;
            }
        }
        {
            Double lhsHeading;
            lhsHeading = this.getHeading();
            Double rhsHeading;
            rhsHeading = that.getHeading();
            if (!strategy.equals(LocatorUtils.property(thisLocator"heading"lhsHeading), LocatorUtils.property(thatLocator"heading"rhsHeading), lhsHeadingrhsHeading)) {
                return false;
            }
        }
        return true;
    }
    public boolean equals(Object object) {
        final EqualsStrategy strategy = .;
        return equals(nullnullobjectstrategy);
    }
    public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
        int currentHashCode = 1;
        {
            Double theRoll;
            theRoll = this.getRoll();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"roll"theRoll), currentHashCodetheRoll);
        }
        {
            Double theTilt;
            theTilt = this.getTilt();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"tilt"theTilt), currentHashCodetheTilt);
        }
        {
            Double theHeading;
            theHeading = this.getHeading();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"heading"theHeading), currentHashCodetheHeading);
        }
        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 OrientationType) {
            final OrientationType copy = ((OrientationTypedraftCopy);
            if (this.!= null) {
                Double sourceRoll;
                sourceRoll = this.getRoll();
                Double copyRoll = ((Doublestrategy.copy(LocatorUtils.property(locator"roll"sourceRoll), sourceRoll));
                copy.setRoll(copyRoll);
            } else {
                copy.roll = null;
            }
            if (this.!= null) {
                Double sourceTilt;
                sourceTilt = this.getTilt();
                Double copyTilt = ((Doublestrategy.copy(LocatorUtils.property(locator"tilt"sourceTilt), sourceTilt));
                copy.setTilt(copyTilt);
            } else {
                copy.tilt = null;
            }
            if (this.!= null) {
                Double sourceHeading;
                sourceHeading = this.getHeading();
                Double copyHeading = ((Doublestrategy.copy(LocatorUtils.property(locator"heading"sourceHeading), sourceHeading));
                copy.setHeading(copyHeading);
            } else {
                copy.heading = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new OrientationType();
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        if (right instanceof OrientationType) {
            final OrientationType target = this;
            final OrientationType leftObject = ((OrientationTypeleft);
            final OrientationType rightObject = ((OrientationTyperight);
            {
                Double lhsRoll;
                lhsRoll = leftObject.getRoll();
                Double rhsRoll;
                rhsRoll = rightObject.getRoll();
                Double mergedRoll = ((Doublestrategy.merge(LocatorUtils.property(leftLocator"roll"lhsRoll), LocatorUtils.property(rightLocator"roll"rhsRoll), lhsRollrhsRoll));
                target.setRoll(mergedRoll);
            }
            {
                Double lhsTilt;
                lhsTilt = leftObject.getTilt();
                Double rhsTilt;
                rhsTilt = rightObject.getTilt();
                Double mergedTilt = ((Doublestrategy.merge(LocatorUtils.property(leftLocator"tilt"lhsTilt), LocatorUtils.property(rightLocator"tilt"rhsTilt), lhsTiltrhsTilt));
                target.setTilt(mergedTilt);
            }
            {
                Double lhsHeading;
                lhsHeading = leftObject.getHeading();
                Double rhsHeading;
                rhsHeading = rightObject.getHeading();
                Double mergedHeading = ((Doublestrategy.merge(LocatorUtils.property(leftLocator"heading"lhsHeading), LocatorUtils.property(rightLocator"heading"rhsHeading), lhsHeadingrhsHeading));
                target.setHeading(mergedHeading);
            }
        }
    }
    public OrientationType withRoll(Double value) {
        setRoll(value);
        return this;
    }
    public OrientationType withTilt(Double value) {
        setTilt(value);
        return this;
    }
    public OrientationType withHeading(Double value) {
        setHeading(value);
        return this;
    }
New to GrepCode? Check out our FAQ X