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

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

 <complexType name="TrackerType">
   <complexContent>
     <extension base="{http://www.opengis.net/arml/2.0}ARElementType">
       <sequence>
         <element name="uri">
           <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="src" minOccurs="0">
           <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 = "TrackerType", propOrder = {
     "uri",
     "src"
 })
 public class TrackerType
     extends ARElementType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(required = true)
     protected TrackerType.Uri uri;
     protected TrackerType.Src src;

    
Gets the value of the uri property.

Returns:
possible object is
 
     public TrackerType.Uri getUri() {
         return ;
     }

    
Sets the value of the uri property.

Parameters:
value allowed object is
    public void setUri(TrackerType.Uri value) {
        this. = value;
    }

    
Gets the value of the src property.

Returns:
possible object is
    public TrackerType.Src getSrc() {
        return ;
    }

    
Sets the value of the src property.

Parameters:
value allowed object is
    public void setSrc(TrackerType.Src 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);
        {
            TrackerType.Uri theUri;
            theUri = this.getUri();
            strategy.appendField(locatorthis"uri"buffertheUri);
        }
        {
            TrackerType.Src theSrc;
            theSrc = this.getSrc();
            strategy.appendField(locatorthis"src"buffertheSrc);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof TrackerType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final TrackerType that = ((TrackerTypeobject);
        {
            TrackerType.Uri lhsUri;
            lhsUri = this.getUri();
            TrackerType.Uri rhsUri;
            rhsUri = that.getUri();
            if (!strategy.equals(LocatorUtils.property(thisLocator"uri"lhsUri), LocatorUtils.property(thatLocator"uri"rhsUri), lhsUrirhsUri)) {
                return false;
            }
        }
        {
            TrackerType.Src lhsSrc;
            lhsSrc = this.getSrc();
            TrackerType.Src rhsSrc;
            rhsSrc = that.getSrc();
            if (!strategy.equals(LocatorUtils.property(thisLocator"src"lhsSrc), LocatorUtils.property(thatLocator"src"rhsSrc), lhsSrcrhsSrc)) {
                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);
        {
            TrackerType.Uri theUri;
            theUri = this.getUri();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"uri"theUri), currentHashCodetheUri);
        }
        {
            TrackerType.Src theSrc;
            theSrc = this.getSrc();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"src"theSrc), currentHashCodetheSrc);
        }
        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 TrackerType) {
            final TrackerType copy = ((TrackerTypedraftCopy);
            if (this.!= null) {
                TrackerType.Uri sourceUri;
                sourceUri = this.getUri();
                TrackerType.Uri copyUri = ((TrackerType.Uristrategy.copy(LocatorUtils.property(locator"uri"sourceUri), sourceUri));
                copy.setUri(copyUri);
            } else {
                copy.uri = null;
            }
            if (this.!= null) {
                TrackerType.Src sourceSrc;
                sourceSrc = this.getSrc();
                TrackerType.Src copySrc = ((TrackerType.Srcstrategy.copy(LocatorUtils.property(locator"src"sourceSrc), sourceSrc));
                copy.setSrc(copySrc);
            } else {
                copy.src = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new TrackerType();
    }
    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 TrackerType) {
            final TrackerType target = this;
            final TrackerType leftObject = ((TrackerTypeleft);
            final TrackerType rightObject = ((TrackerTyperight);
            {
                TrackerType.Uri lhsUri;
                lhsUri = leftObject.getUri();
                TrackerType.Uri rhsUri;
                rhsUri = rightObject.getUri();
                TrackerType.Uri mergedUri = ((TrackerType.Uristrategy.merge(LocatorUtils.property(leftLocator"uri"lhsUri), LocatorUtils.property(rightLocator"uri"rhsUri), lhsUrirhsUri));
                target.setUri(mergedUri);
            }
            {
                TrackerType.Src lhsSrc;
                lhsSrc = leftObject.getSrc();
                TrackerType.Src rhsSrc;
                rhsSrc = rightObject.getSrc();
                TrackerType.Src mergedSrc = ((TrackerType.Srcstrategy.merge(LocatorUtils.property(leftLocator"src"lhsSrc), LocatorUtils.property(rightLocator"src"rhsSrc), lhsSrcrhsSrc));
                target.setSrc(mergedSrc);
            }
        }
    }
    public TrackerType withUri(TrackerType.Uri value) {
        setUri(value);
        return this;
    }
    public TrackerType withSrc(TrackerType.Src value) {
        setSrc(value);
        return this;
    }
    @Override
    public TrackerType 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 Src
        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 TrackerType.Src)) {
                return false;
            }
            if (this == object) {
                return true;
            }
            final TrackerType.Src that = ((TrackerType.Srcobject);
            {
                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 TrackerType.Src) {
                final TrackerType.Src copy = ((TrackerType.SrcdraftCopy);
                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 TrackerType.Src();
        }
        public void mergeFrom(Object leftObject right) {
            final MergeStrategy strategy = .;
            mergeFrom(nullnullleftrightstrategy);
        }
        public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
            if (right instanceof TrackerType.Src) {
                final TrackerType.Src target = this;
                final TrackerType.Src leftObject = ((TrackerType.Srcleft);
                final TrackerType.Src rightObject = ((TrackerType.Srcright);
                {
                    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 TrackerType.Src withHref(String value) {
            setHref(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 Uri
        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 TrackerType.Uri)) {
                return false;
            }
            if (this == object) {
                return true;
            }
            final TrackerType.Uri that = ((TrackerType.Uriobject);
            {
                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 TrackerType.Uri) {
                final TrackerType.Uri copy = ((TrackerType.UridraftCopy);
                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 TrackerType.Uri();
        }
        public void mergeFrom(Object leftObject right) {
            final MergeStrategy strategy = .;
            mergeFrom(nullnullleftrightstrategy);
        }
        public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
            if (right instanceof TrackerType.Uri) {
                final TrackerType.Uri target = this;
                final TrackerType.Uri leftObject = ((TrackerType.Urileft);
                final TrackerType.Uri rightObject = ((TrackerType.Uriright);
                {
                    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 TrackerType.Uri withHref(String value) {
            setHref(value);
            return this;
        }
    }
New to GrepCode? Check out our FAQ X