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

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

 <complexType name="ScalingModeType">
   <complexContent>
     <extension base="{http://www.opengis.net/arml/2.0}ARElementType">
       <sequence>
         <element name="minScalingDistance" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
         <element name="maxScalingDistance" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
         <element name="scalingFactor" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
       </sequence>
       <attribute name="type" use="required">
         <simpleType>
           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
             <enumeration value="natural"/>
             <enumeration value="custom"/>
           </restriction>
         </simpleType>
       </attribute>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "ScalingModeType", propOrder = {
     "minScalingDistance",
     "maxScalingDistance",
     "scalingFactor"
 })
 public class ScalingModeType
     extends ARElementType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     protected Double minScalingDistance;
     protected Double maxScalingDistance;
     protected Double scalingFactor;
     @XmlAttribute(name = "type", required = true)
     protected String type;

    
Gets the value of the minScalingDistance property.

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

    
Sets the value of the minScalingDistance property.

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

    
Gets the value of the maxScalingDistance property.

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

    
Sets the value of the maxScalingDistance property.

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

    
Gets the value of the scalingFactor property.

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

    
Sets the value of the scalingFactor property.

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

    
Gets the value of the type property.

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

    
Sets the value of the type property.

Parameters:
value allowed object is
    public void setType(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) {
        super.appendFields(locatorbufferstrategy);
        {
            Double theMinScalingDistance;
            theMinScalingDistance = this.getMinScalingDistance();
            strategy.appendField(locatorthis"minScalingDistance"buffertheMinScalingDistance);
        }
        {
            Double theMaxScalingDistance;
            theMaxScalingDistance = this.getMaxScalingDistance();
            strategy.appendField(locatorthis"maxScalingDistance"buffertheMaxScalingDistance);
        }
        {
            Double theScalingFactor;
            theScalingFactor = this.getScalingFactor();
            strategy.appendField(locatorthis"scalingFactor"buffertheScalingFactor);
        }
        {
            String theType;
            theType = this.getType();
            strategy.appendField(locatorthis"type"buffertheType);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof ScalingModeType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final ScalingModeType that = ((ScalingModeTypeobject);
        {
            Double lhsMinScalingDistance;
            lhsMinScalingDistance = this.getMinScalingDistance();
            Double rhsMinScalingDistance;
            rhsMinScalingDistance = that.getMinScalingDistance();
            if (!strategy.equals(LocatorUtils.property(thisLocator"minScalingDistance"lhsMinScalingDistance), LocatorUtils.property(thatLocator"minScalingDistance"rhsMinScalingDistance), lhsMinScalingDistancerhsMinScalingDistance)) {
                return false;
            }
        }
        {
            Double lhsMaxScalingDistance;
            lhsMaxScalingDistance = this.getMaxScalingDistance();
            Double rhsMaxScalingDistance;
            rhsMaxScalingDistance = that.getMaxScalingDistance();
            if (!strategy.equals(LocatorUtils.property(thisLocator"maxScalingDistance"lhsMaxScalingDistance), LocatorUtils.property(thatLocator"maxScalingDistance"rhsMaxScalingDistance), lhsMaxScalingDistancerhsMaxScalingDistance)) {
                return false;
            }
        }
        {
            Double lhsScalingFactor;
            lhsScalingFactor = this.getScalingFactor();
            Double rhsScalingFactor;
            rhsScalingFactor = that.getScalingFactor();
            if (!strategy.equals(LocatorUtils.property(thisLocator"scalingFactor"lhsScalingFactor), LocatorUtils.property(thatLocator"scalingFactor"rhsScalingFactor), lhsScalingFactorrhsScalingFactor)) {
                return false;
            }
        }
        {
            String lhsType;
            lhsType = this.getType();
            String rhsType;
            rhsType = that.getType();
            if (!strategy.equals(LocatorUtils.property(thisLocator"type"lhsType), LocatorUtils.property(thatLocator"type"rhsType), lhsTyperhsType)) {
                return false;
            }
        }
        return true;
    }
    public boolean equals(Object object) {
        final EqualsStrategy strategy = .;
        return equals(nullnullobjectstrategy);
    }
    public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
        int currentHashCode = super.hashCode(locatorstrategy);
        {
            Double theMinScalingDistance;
            theMinScalingDistance = this.getMinScalingDistance();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"minScalingDistance"theMinScalingDistance), currentHashCodetheMinScalingDistance);
        }
        {
            Double theMaxScalingDistance;
            theMaxScalingDistance = this.getMaxScalingDistance();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"maxScalingDistance"theMaxScalingDistance), currentHashCodetheMaxScalingDistance);
        }
        {
            Double theScalingFactor;
            theScalingFactor = this.getScalingFactor();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"scalingFactor"theScalingFactor), currentHashCodetheScalingFactor);
        }
        {
            String theType;
            theType = this.getType();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"type"theType), currentHashCodetheType);
        }
        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);
        super.copyTo(locatordraftCopystrategy);
        if (draftCopy instanceof ScalingModeType) {
            final ScalingModeType copy = ((ScalingModeTypedraftCopy);
            if (this.!= null) {
                Double sourceMinScalingDistance;
                sourceMinScalingDistance = this.getMinScalingDistance();
                Double copyMinScalingDistance = ((Doublestrategy.copy(LocatorUtils.property(locator"minScalingDistance"sourceMinScalingDistance), sourceMinScalingDistance));
                copy.setMinScalingDistance(copyMinScalingDistance);
            } else {
                copy.minScalingDistance = null;
            }
            if (this.!= null) {
                Double sourceMaxScalingDistance;
                sourceMaxScalingDistance = this.getMaxScalingDistance();
                Double copyMaxScalingDistance = ((Doublestrategy.copy(LocatorUtils.property(locator"maxScalingDistance"sourceMaxScalingDistance), sourceMaxScalingDistance));
                copy.setMaxScalingDistance(copyMaxScalingDistance);
            } else {
                copy.maxScalingDistance = null;
            }
            if (this.!= null) {
                Double sourceScalingFactor;
                sourceScalingFactor = this.getScalingFactor();
                Double copyScalingFactor = ((Doublestrategy.copy(LocatorUtils.property(locator"scalingFactor"sourceScalingFactor), sourceScalingFactor));
                copy.setScalingFactor(copyScalingFactor);
            } else {
                copy.scalingFactor = null;
            }
            if (this.!= null) {
                String sourceType;
                sourceType = this.getType();
                String copyType = ((Stringstrategy.copy(LocatorUtils.property(locator"type"sourceType), sourceType));
                copy.setType(copyType);
            } else {
                copy.type = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new ScalingModeType();
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        super.mergeFrom(leftLocatorrightLocatorleftrightstrategy);
        if (right instanceof ScalingModeType) {
            final ScalingModeType target = this;
            final ScalingModeType leftObject = ((ScalingModeTypeleft);
            final ScalingModeType rightObject = ((ScalingModeTyperight);
            {
                Double lhsMinScalingDistance;
                lhsMinScalingDistance = leftObject.getMinScalingDistance();
                Double rhsMinScalingDistance;
                rhsMinScalingDistance = rightObject.getMinScalingDistance();
                Double mergedMinScalingDistance = ((Doublestrategy.merge(LocatorUtils.property(leftLocator"minScalingDistance"lhsMinScalingDistance), LocatorUtils.property(rightLocator"minScalingDistance"rhsMinScalingDistance), lhsMinScalingDistancerhsMinScalingDistance));
                target.setMinScalingDistance(mergedMinScalingDistance);
            }
            {
                Double lhsMaxScalingDistance;
                lhsMaxScalingDistance = leftObject.getMaxScalingDistance();
                Double rhsMaxScalingDistance;
                rhsMaxScalingDistance = rightObject.getMaxScalingDistance();
                Double mergedMaxScalingDistance = ((Doublestrategy.merge(LocatorUtils.property(leftLocator"maxScalingDistance"lhsMaxScalingDistance), LocatorUtils.property(rightLocator"maxScalingDistance"rhsMaxScalingDistance), lhsMaxScalingDistancerhsMaxScalingDistance));
                target.setMaxScalingDistance(mergedMaxScalingDistance);
            }
            {
                Double lhsScalingFactor;
                lhsScalingFactor = leftObject.getScalingFactor();
                Double rhsScalingFactor;
                rhsScalingFactor = rightObject.getScalingFactor();
                Double mergedScalingFactor = ((Doublestrategy.merge(LocatorUtils.property(leftLocator"scalingFactor"lhsScalingFactor), LocatorUtils.property(rightLocator"scalingFactor"rhsScalingFactor), lhsScalingFactorrhsScalingFactor));
                target.setScalingFactor(mergedScalingFactor);
            }
            {
                String lhsType;
                lhsType = leftObject.getType();
                String rhsType;
                rhsType = rightObject.getType();
                String mergedType = ((Stringstrategy.merge(LocatorUtils.property(leftLocator"type"lhsType), LocatorUtils.property(rightLocator"type"rhsType), lhsTyperhsType));
                target.setType(mergedType);
            }
        }
    }
        setMinScalingDistance(value);
        return this;
    }
        setMaxScalingDistance(value);
        return this;
    }
    public ScalingModeType withScalingFactor(Double value) {
        setScalingFactor(value);
        return this;
    }
    public ScalingModeType withType(String value) {
        setType(value);
        return this;
    }
    @Override
    public ScalingModeType withId(String value) {
        setId(value);
        return this;
    }
New to GrepCode? Check out our FAQ X