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

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

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

    
Gets the value of the x property.

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

    
Sets the value of the x property.

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

    
Gets the value of the y property.

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

    
Sets the value of the y property.

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

    
Gets the value of the z property.

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

    
Sets the value of the z property.

Parameters:
value allowed object is
    public void setZ(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 theX;
            theX = this.getX();
            strategy.appendField(locatorthis"x"buffertheX);
        }
        {
            Double theY;
            theY = this.getY();
            strategy.appendField(locatorthis"y"buffertheY);
        }
        {
            Double theZ;
            theZ = this.getZ();
            strategy.appendField(locatorthis"z"buffertheZ);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof ScaleType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final ScaleType that = ((ScaleTypeobject);
        {
            Double lhsX;
            lhsX = this.getX();
            Double rhsX;
            rhsX = that.getX();
            if (!strategy.equals(LocatorUtils.property(thisLocator"x"lhsX), LocatorUtils.property(thatLocator"x"rhsX), lhsXrhsX)) {
                return false;
            }
        }
        {
            Double lhsY;
            lhsY = this.getY();
            Double rhsY;
            rhsY = that.getY();
            if (!strategy.equals(LocatorUtils.property(thisLocator"y"lhsY), LocatorUtils.property(thatLocator"y"rhsY), lhsYrhsY)) {
                return false;
            }
        }
        {
            Double lhsZ;
            lhsZ = this.getZ();
            Double rhsZ;
            rhsZ = that.getZ();
            if (!strategy.equals(LocatorUtils.property(thisLocator"z"lhsZ), LocatorUtils.property(thatLocator"z"rhsZ), lhsZrhsZ)) {
                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 theX;
            theX = this.getX();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"x"theX), currentHashCodetheX);
        }
        {
            Double theY;
            theY = this.getY();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"y"theY), currentHashCodetheY);
        }
        {
            Double theZ;
            theZ = this.getZ();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"z"theZ), currentHashCodetheZ);
        }
        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 ScaleType) {
            final ScaleType copy = ((ScaleTypedraftCopy);
            if (this.!= null) {
                Double sourceX;
                sourceX = this.getX();
                Double copyX = ((Doublestrategy.copy(LocatorUtils.property(locator"x"sourceX), sourceX));
                copy.setX(copyX);
            } else {
                copy.x = null;
            }
            if (this.!= null) {
                Double sourceY;
                sourceY = this.getY();
                Double copyY = ((Doublestrategy.copy(LocatorUtils.property(locator"y"sourceY), sourceY));
                copy.setY(copyY);
            } else {
                copy.y = null;
            }
            if (this.!= null) {
                Double sourceZ;
                sourceZ = this.getZ();
                Double copyZ = ((Doublestrategy.copy(LocatorUtils.property(locator"z"sourceZ), sourceZ));
                copy.setZ(copyZ);
            } else {
                copy.z = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new ScaleType();
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        if (right instanceof ScaleType) {
            final ScaleType target = this;
            final ScaleType leftObject = ((ScaleTypeleft);
            final ScaleType rightObject = ((ScaleTyperight);
            {
                Double lhsX;
                lhsX = leftObject.getX();
                Double rhsX;
                rhsX = rightObject.getX();
                Double mergedX = ((Doublestrategy.merge(LocatorUtils.property(leftLocator"x"lhsX), LocatorUtils.property(rightLocator"x"rhsX), lhsXrhsX));
                target.setX(mergedX);
            }
            {
                Double lhsY;
                lhsY = leftObject.getY();
                Double rhsY;
                rhsY = rightObject.getY();
                Double mergedY = ((Doublestrategy.merge(LocatorUtils.property(leftLocator"y"lhsY), LocatorUtils.property(rightLocator"y"rhsY), lhsYrhsY));
                target.setY(mergedY);
            }
            {
                Double lhsZ;
                lhsZ = leftObject.getZ();
                Double rhsZ;
                rhsZ = rightObject.getZ();
                Double mergedZ = ((Doublestrategy.merge(LocatorUtils.property(leftLocator"z"lhsZ), LocatorUtils.property(rightLocator"z"rhsZ), lhsZrhsZ));
                target.setZ(mergedZ);
            }
        }
    }
    public ScaleType withX(Double value) {
        setX(value);
        return this;
    }
    public ScaleType withY(Double value) {
        setY(value);
        return this;
    }
    public ScaleType withZ(Double value) {
        setZ(value);
        return this;
    }
New to GrepCode? Check out our FAQ X