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

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

 <complexType name="ModelType">
   <complexContent>
     <extension base="{http://www.opengis.net/arml/2.0}VisualAssetType">
       <sequence>
         <element name="href">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <attribute ref="{http://www.w3.org/1999/xlink}href use="required""/>
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="type" minOccurs="0">
           <simpleType>
             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
               <enumeration value="normal"/>
               <enumeration value="infrastructure"/>
             </restriction>
           </simpleType>
         </element>
         <element name="Scale" type="{http://www.opengis.net/arml/2.0}ScaleType" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "ModelType", propOrder = {
     "href",
     "type",
     "scale"
 })
 public class ModelType
     extends VisualAssetType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(required = true)
     protected ModelType.Href href;
     protected String type;
     @XmlElement(name = "Scale")
     protected ScaleType scale;

    
Gets the value of the href property.

Returns:
possible object is
 
     public ModelType.Href getHref() {
         return ;
     }

    
Sets the value of the href property.

Parameters:
value allowed object is
    public void setHref(ModelType.Href 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;
    }

    
Gets the value of the scale property.

Returns:
possible object is
    public ScaleType getScale() {
        return ;
    }

    
Sets the value of the scale property.

Parameters:
value allowed object is
    public void setScale(ScaleType 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);
        {
            ModelType.Href theHref;
            theHref = this.getHref();
            strategy.appendField(locatorthis"href"buffertheHref);
        }
        {
            String theType;
            theType = this.getType();
            strategy.appendField(locatorthis"type"buffertheType);
        }
        {
            ScaleType theScale;
            theScale = this.getScale();
            strategy.appendField(locatorthis"scale"buffertheScale);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof ModelType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final ModelType that = ((ModelTypeobject);
        {
            ModelType.Href lhsHref;
            lhsHref = this.getHref();
            ModelType.Href rhsHref;
            rhsHref = that.getHref();
            if (!strategy.equals(LocatorUtils.property(thisLocator"href"lhsHref), LocatorUtils.property(thatLocator"href"rhsHref), lhsHrefrhsHref)) {
                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;
            }
        }
        {
            ScaleType lhsScale;
            lhsScale = this.getScale();
            ScaleType rhsScale;
            rhsScale = that.getScale();
            if (!strategy.equals(LocatorUtils.property(thisLocator"scale"lhsScale), LocatorUtils.property(thatLocator"scale"rhsScale), lhsScalerhsScale)) {
                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);
        {
            ModelType.Href theHref;
            theHref = this.getHref();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"href"theHref), currentHashCodetheHref);
        }
        {
            String theType;
            theType = this.getType();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"type"theType), currentHashCodetheType);
        }
        {
            ScaleType theScale;
            theScale = this.getScale();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"scale"theScale), currentHashCodetheScale);
        }
        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 ModelType) {
            final ModelType copy = ((ModelTypedraftCopy);
            if (this.!= null) {
                ModelType.Href sourceHref;
                sourceHref = this.getHref();
                ModelType.Href copyHref = ((ModelType.Hrefstrategy.copy(LocatorUtils.property(locator"href"sourceHref), sourceHref));
                copy.setHref(copyHref);
            } else {
                copy.href = 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;
            }
            if (this.!= null) {
                ScaleType sourceScale;
                sourceScale = this.getScale();
                ScaleType copyScale = ((ScaleTypestrategy.copy(LocatorUtils.property(locator"scale"sourceScale), sourceScale));
                copy.setScale(copyScale);
            } else {
                copy.scale = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new ModelType();
    }
    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 ModelType) {
            final ModelType target = this;
            final ModelType leftObject = ((ModelTypeleft);
            final ModelType rightObject = ((ModelTyperight);
            {
                ModelType.Href lhsHref;
                lhsHref = leftObject.getHref();
                ModelType.Href rhsHref;
                rhsHref = rightObject.getHref();
                ModelType.Href mergedHref = ((ModelType.Hrefstrategy.merge(LocatorUtils.property(leftLocator"href"lhsHref), LocatorUtils.property(rightLocator"href"rhsHref), lhsHrefrhsHref));
                target.setHref(mergedHref);
            }
            {
                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);
            }
            {
                ScaleType lhsScale;
                lhsScale = leftObject.getScale();
                ScaleType rhsScale;
                rhsScale = rightObject.getScale();
                ScaleType mergedScale = ((ScaleTypestrategy.merge(LocatorUtils.property(leftLocator"scale"lhsScale), LocatorUtils.property(rightLocator"scale"rhsScale), lhsScalerhsScale));
                target.setScale(mergedScale);
            }
        }
    }
    public ModelType withHref(ModelType.Href value) {
        setHref(value);
        return this;
    }
    public ModelType withType(String value) {
        setType(value);
        return this;
    }
    public ModelType withScale(ScaleType value) {
        setScale(value);
        return this;
    }
    @Override
    public ModelType withEnabled(Boolean value) {
        setEnabled(value);
        return this;
    }
    @Override
    public ModelType withZOrder(Integer value) {
        setZOrder(value);
        return this;
    }
    @Override
        setConditions(value);
        return this;
    }
    @Override
    public ModelType withOrientation(OrientationType value) {
        setOrientation(value);
        return this;
    }
    @Override
    public ModelType withScalingMode(ScalingModeType value) {
        setScalingMode(value);
        return this;
    }
    @Override
    public ModelType withId(String value) {
        setId(value);
        return this;
    }


    

Java class for anonymous complex type.

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

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <attribute ref="{http://www.w3.org/1999/xlink}href use="required""/>
     </restriction>
   </complexContent>
 </complexType>
 
    @XmlType(name = "")
    public static class Href
        implements CloneableCopyToEqualsHashCodeMergeFromToString
    {
        @XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink", required = true)
        protected String href;

        
Gets the value of the href property.

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

        
Sets the value of the href property.

Parameters:
value allowed object is
        public void setHref(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) {
            {
                String theHref;
                theHref = this.getHref();
                strategy.appendField(locatorthis"href"buffertheHref);
            }
            return buffer;
        }
        public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
            if (!(object instanceof ModelType.Href)) {
                return false;
            }
            if (this == object) {
                return true;
            }
            final ModelType.Href that = ((ModelType.Hrefobject);
            {
                String lhsHref;
                lhsHref = this.getHref();
                String rhsHref;
                rhsHref = that.getHref();
                if (!strategy.equals(LocatorUtils.property(thisLocator"href"lhsHref), LocatorUtils.property(thatLocator"href"rhsHref), lhsHrefrhsHref)) {
                    return false;
                }
            }
            return true;
        }
        public boolean equals(Object object) {
            final EqualsStrategy strategy = .;
            return equals(nullnullobjectstrategy);
        }
        public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
            int currentHashCode = 1;
            {
                String theHref;
                theHref = this.getHref();
                currentHashCode = strategy.hashCode(LocatorUtils.property(locator"href"theHref), currentHashCodetheHref);
            }
            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 ModelType.Href) {
                final ModelType.Href copy = ((ModelType.HrefdraftCopy);
                if (this.!= null) {
                    String sourceHref;
                    sourceHref = this.getHref();
                    String copyHref = ((Stringstrategy.copy(LocatorUtils.property(locator"href"sourceHref), sourceHref));
                    copy.setHref(copyHref);
                } else {
                    copy.href = null;
                }
            }
            return draftCopy;
        }
        public Object createNewInstance() {
            return new ModelType.Href();
        }
        public void mergeFrom(Object leftObject right) {
            final MergeStrategy strategy = .;
            mergeFrom(nullnullleftrightstrategy);
        }
        public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
            if (right instanceof ModelType.Href) {
                final ModelType.Href target = this;
                final ModelType.Href leftObject = ((ModelType.Hrefleft);
                final ModelType.Href rightObject = ((ModelType.Hrefright);
                {
                    String lhsHref;
                    lhsHref = leftObject.getHref();
                    String rhsHref;
                    rhsHref = rightObject.getHref();
                    String mergedHref = ((Stringstrategy.merge(LocatorUtils.property(leftLocator"href"lhsHref), LocatorUtils.property(rightLocator"href"rhsHref), lhsHrefrhsHref));
                    target.setHref(mergedHref);
                }
            }
        }
        public ModelType.Href withHref(String value) {
            setHref(value);
            return this;
        }
    }
New to GrepCode? Check out our FAQ X