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

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

 <complexType name="ImageType">
   <complexContent>
     <extension base="{http://www.opengis.net/arml/2.0}VisualAsset2DType">
       <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>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "ImageType", propOrder = {
     "href"
 })
 public class ImageType
     extends VisualAsset2DType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(required = true)
     protected ImageType.Href href;

    
Gets the value of the href property.

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

    
Sets the value of the href property.

Parameters:
value allowed object is
 
     public void setHref(ImageType.Href 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);
        {
            ImageType.Href theHref;
            theHref = this.getHref();
            strategy.appendField(locatorthis"href"buffertheHref);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof ImageType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final ImageType that = ((ImageTypeobject);
        {
            ImageType.Href lhsHref;
            lhsHref = this.getHref();
            ImageType.Href 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 = super.hashCode(locatorstrategy);
        {
            ImageType.Href 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);
        super.copyTo(locatordraftCopystrategy);
        if (draftCopy instanceof ImageType) {
            final ImageType copy = ((ImageTypedraftCopy);
            if (this.!= null) {
                ImageType.Href sourceHref;
                sourceHref = this.getHref();
                ImageType.Href copyHref = ((ImageType.Hrefstrategy.copy(LocatorUtils.property(locator"href"sourceHref), sourceHref));
                copy.setHref(copyHref);
            } else {
                copy.href = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new ImageType();
    }
    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 ImageType) {
            final ImageType target = this;
            final ImageType leftObject = ((ImageTypeleft);
            final ImageType rightObject = ((ImageTyperight);
            {
                ImageType.Href lhsHref;
                lhsHref = leftObject.getHref();
                ImageType.Href rhsHref;
                rhsHref = rightObject.getHref();
                ImageType.Href mergedHref = ((ImageType.Hrefstrategy.merge(LocatorUtils.property(leftLocator"href"lhsHref), LocatorUtils.property(rightLocator"href"rhsHref), lhsHrefrhsHref));
                target.setHref(mergedHref);
            }
        }
    }
    public ImageType withHref(ImageType.Href value) {
        setHref(value);
        return this;
    }
    @Override
    public ImageType withWidth(String value) {
        setWidth(value);
        return this;
    }
    @Override
    public ImageType withHeight(String value) {
        setHeight(value);
        return this;
    }
    @Override
    public ImageType withOrientationMode(String value) {
        setOrientationMode(value);
        return this;
    }
    @Override
    public ImageType withBackside(String value) {
        setBackside(value);
        return this;
    }
    @Override
    public ImageType withEnabled(Boolean value) {
        setEnabled(value);
        return this;
    }
    @Override
    public ImageType withZOrder(Integer value) {
        setZOrder(value);
        return this;
    }
    @Override
        setConditions(value);
        return this;
    }
    @Override
    public ImageType withOrientation(OrientationType value) {
        setOrientation(value);
        return this;
    }
    @Override
    public ImageType withScalingMode(ScalingModeType value) {
        setScalingMode(value);
        return this;
    }
    @Override
    public ImageType 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 ImageType.Href)) {
                return false;
            }
            if (this == object) {
                return true;
            }
            final ImageType.Href that = ((ImageType.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 ImageType.Href) {
                final ImageType.Href copy = ((ImageType.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 ImageType.Href();
        }
        public void mergeFrom(Object leftObject right) {
            final MergeStrategy strategy = .;
            mergeFrom(nullnullleftrightstrategy);
        }
        public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
            if (right instanceof ImageType.Href) {
                final ImageType.Href target = this;
                final ImageType.Href leftObject = ((ImageType.Hrefleft);
                final ImageType.Href rightObject = ((ImageType.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 ImageType.Href withHref(String value) {
            setHref(value);
            return this;
        }
    }
New to GrepCode? Check out our FAQ X