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

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

 <complexType name="RelativeToType">
   <complexContent>
     <extension base="{http://www.opengis.net/arml/2.0}ARAnchorType">
       <sequence>
         <element name="ref">
           <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>
         <choice>
           <element ref="{http://www.opengis.net/gml/3.2}Point"/>
           <element ref="{http://www.opengis.net/gml/3.2}LineString"/>
           <element ref="{http://www.opengis.net/gml/3.2}Polygon"/>
         </choice>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "RelativeToType", propOrder = {
     "ref",
     "point",
     "lineString",
     "polygon"
 })
 public class RelativeToType
     extends ARAnchorType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(required = true)
     protected RelativeToType.Ref ref;
     @XmlElement(name = "Point", namespace = "http://www.opengis.net/gml/3.2")
     protected PointType point;
     @XmlElement(name = "LineString", namespace = "http://www.opengis.net/gml/3.2")
     protected LineStringType lineString;
     @XmlElement(name = "Polygon", namespace = "http://www.opengis.net/gml/3.2")
     protected PolygonType polygon;

    
Gets the value of the ref property.

Returns:
possible object is
 
     public RelativeToType.Ref getRef() {
        return ;
    }

    
Sets the value of the ref property.

Parameters:
value allowed object is
    public void setRef(RelativeToType.Ref value) {
        this. = value;
    }

    
Gets the value of the point property.

Returns:
possible object is
    public PointType getPoint() {
        return ;
    }

    
Sets the value of the point property.

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

    
Gets the value of the lineString property.

Returns:
possible object is
    public LineStringType getLineString() {
        return ;
    }

    
Sets the value of the lineString property.

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

    
Gets the value of the polygon property.

Returns:
possible object is
    public PolygonType getPolygon() {
        return ;
    }

    
Sets the value of the polygon property.

Parameters:
value allowed object is
    public void setPolygon(PolygonType 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);
        {
            RelativeToType.Ref theRef;
            theRef = this.getRef();
            strategy.appendField(locatorthis"ref"buffertheRef);
        }
        {
            PointType thePoint;
            thePoint = this.getPoint();
            strategy.appendField(locatorthis"point"bufferthePoint);
        }
        {
            LineStringType theLineString;
            theLineString = this.getLineString();
            strategy.appendField(locatorthis"lineString"buffertheLineString);
        }
        {
            PolygonType thePolygon;
            thePolygon = this.getPolygon();
            strategy.appendField(locatorthis"polygon"bufferthePolygon);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof RelativeToType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final RelativeToType that = ((RelativeToTypeobject);
        {
            RelativeToType.Ref lhsRef;
            lhsRef = this.getRef();
            RelativeToType.Ref rhsRef;
            rhsRef = that.getRef();
            if (!strategy.equals(LocatorUtils.property(thisLocator"ref"lhsRef), LocatorUtils.property(thatLocator"ref"rhsRef), lhsRefrhsRef)) {
                return false;
            }
        }
        {
            PointType lhsPoint;
            lhsPoint = this.getPoint();
            PointType rhsPoint;
            rhsPoint = that.getPoint();
            if (!strategy.equals(LocatorUtils.property(thisLocator"point"lhsPoint), LocatorUtils.property(thatLocator"point"rhsPoint), lhsPointrhsPoint)) {
                return false;
            }
        }
        {
            LineStringType lhsLineString;
            lhsLineString = this.getLineString();
            LineStringType rhsLineString;
            rhsLineString = that.getLineString();
            if (!strategy.equals(LocatorUtils.property(thisLocator"lineString"lhsLineString), LocatorUtils.property(thatLocator"lineString"rhsLineString), lhsLineStringrhsLineString)) {
                return false;
            }
        }
        {
            PolygonType lhsPolygon;
            lhsPolygon = this.getPolygon();
            PolygonType rhsPolygon;
            rhsPolygon = that.getPolygon();
            if (!strategy.equals(LocatorUtils.property(thisLocator"polygon"lhsPolygon), LocatorUtils.property(thatLocator"polygon"rhsPolygon), lhsPolygonrhsPolygon)) {
                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);
        {
            RelativeToType.Ref theRef;
            theRef = this.getRef();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"ref"theRef), currentHashCodetheRef);
        }
        {
            PointType thePoint;
            thePoint = this.getPoint();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"point"thePoint), currentHashCodethePoint);
        }
        {
            LineStringType theLineString;
            theLineString = this.getLineString();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"lineString"theLineString), currentHashCodetheLineString);
        }
        {
            PolygonType thePolygon;
            thePolygon = this.getPolygon();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"polygon"thePolygon), currentHashCodethePolygon);
        }
        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 RelativeToType) {
            final RelativeToType copy = ((RelativeToTypedraftCopy);
            if (this.!= null) {
                RelativeToType.Ref sourceRef;
                sourceRef = this.getRef();
                RelativeToType.Ref copyRef = ((RelativeToType.Refstrategy.copy(LocatorUtils.property(locator"ref"sourceRef), sourceRef));
                copy.setRef(copyRef);
            } else {
                copy.ref = null;
            }
            if (this.!= null) {
                PointType sourcePoint;
                sourcePoint = this.getPoint();
                PointType copyPoint = ((PointTypestrategy.copy(LocatorUtils.property(locator"point"sourcePoint), sourcePoint));
                copy.setPoint(copyPoint);
            } else {
                copy.point = null;
            }
            if (this.!= null) {
                LineStringType sourceLineString;
                sourceLineString = this.getLineString();
                LineStringType copyLineString = ((LineStringTypestrategy.copy(LocatorUtils.property(locator"lineString"sourceLineString), sourceLineString));
                copy.setLineString(copyLineString);
            } else {
                copy.lineString = null;
            }
            if (this.!= null) {
                PolygonType sourcePolygon;
                sourcePolygon = this.getPolygon();
                PolygonType copyPolygon = ((PolygonTypestrategy.copy(LocatorUtils.property(locator"polygon"sourcePolygon), sourcePolygon));
                copy.setPolygon(copyPolygon);
            } else {
                copy.polygon = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new RelativeToType();
    }
    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 RelativeToType) {
            final RelativeToType target = this;
            final RelativeToType leftObject = ((RelativeToTypeleft);
            final RelativeToType rightObject = ((RelativeToTyperight);
            {
                RelativeToType.Ref lhsRef;
                lhsRef = leftObject.getRef();
                RelativeToType.Ref rhsRef;
                rhsRef = rightObject.getRef();
                RelativeToType.Ref mergedRef = ((RelativeToType.Refstrategy.merge(LocatorUtils.property(leftLocator"ref"lhsRef), LocatorUtils.property(rightLocator"ref"rhsRef), lhsRefrhsRef));
                target.setRef(mergedRef);
            }
            {
                PointType lhsPoint;
                lhsPoint = leftObject.getPoint();
                PointType rhsPoint;
                rhsPoint = rightObject.getPoint();
                PointType mergedPoint = ((PointTypestrategy.merge(LocatorUtils.property(leftLocator"point"lhsPoint), LocatorUtils.property(rightLocator"point"rhsPoint), lhsPointrhsPoint));
                target.setPoint(mergedPoint);
            }
            {
                LineStringType lhsLineString;
                lhsLineString = leftObject.getLineString();
                LineStringType rhsLineString;
                rhsLineString = rightObject.getLineString();
                LineStringType mergedLineString = ((LineStringTypestrategy.merge(LocatorUtils.property(leftLocator"lineString"lhsLineString), LocatorUtils.property(rightLocator"lineString"rhsLineString), lhsLineStringrhsLineString));
                target.setLineString(mergedLineString);
            }
            {
                PolygonType lhsPolygon;
                lhsPolygon = leftObject.getPolygon();
                PolygonType rhsPolygon;
                rhsPolygon = rightObject.getPolygon();
                PolygonType mergedPolygon = ((PolygonTypestrategy.merge(LocatorUtils.property(leftLocator"polygon"lhsPolygon), LocatorUtils.property(rightLocator"polygon"rhsPolygon), lhsPolygonrhsPolygon));
                target.setPolygon(mergedPolygon);
            }
        }
    }
    public RelativeToType withRef(RelativeToType.Ref value) {
        setRef(value);
        return this;
    }
    public RelativeToType withPoint(PointType value) {
        setPoint(value);
        return this;
    }
    public RelativeToType withLineString(LineStringType value) {
        setLineString(value);
        return this;
    }
    public RelativeToType withPolygon(PolygonType value) {
        setPolygon(value);
        return this;
    }
    @Override
    public RelativeToType withAssets(ARAnchorType.Assets value) {
        setAssets(value);
        return this;
    }
    @Override
    public RelativeToType withEnabled(Boolean value) {
        setEnabled(value);
        return this;
    }
    @Override
    public RelativeToType 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 Ref
        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 RelativeToType.Ref)) {
                return false;
            }
            if (this == object) {
                return true;
            }
            final RelativeToType.Ref that = ((RelativeToType.Refobject);
            {
                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 RelativeToType.Ref) {
                final RelativeToType.Ref copy = ((RelativeToType.RefdraftCopy);
                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 RelativeToType.Ref();
        }
        public void mergeFrom(Object leftObject right) {
            final MergeStrategy strategy = .;
            mergeFrom(nullnullleftrightstrategy);
        }
        public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
            if (right instanceof RelativeToType.Ref) {
                final RelativeToType.Ref target = this;
                final RelativeToType.Ref leftObject = ((RelativeToType.Refleft);
                final RelativeToType.Ref rightObject = ((RelativeToType.Refright);
                {
                    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 RelativeToType.Ref withHref(String value) {
            setHref(value);
            return this;
        }
    }
New to GrepCode? Check out our FAQ X