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;
 
 import java.util.List;

Java class for ARAnchorType complex type.

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

 <complexType name="ARAnchorType">
   <complexContent>
     <extension base="{http://www.opengis.net/arml/2.0}AnchorType">
       <sequence>
         <element name="assets">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence>
                   <element ref="{http://www.opengis.net/arml/2.0}VisualAsset" maxOccurs="unbounded" minOccurs="0"/>
                   <element name="assetRef" maxOccurs="unbounded" 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>
               </restriction>
             </complexContent>
           </complexType>
         </element>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "ARAnchorType", propOrder = {
     "assets"
 })
     GeometryType.class,
     TrackableType.class,
     RelativeToType.class
 })
 public abstract class ARAnchorType
     extends AnchorType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(required = true)
     protected ARAnchorType.Assets assets;

    
Gets the value of the assets property.

Returns:
possible object is
    public ARAnchorType.Assets getAssets() {
        return ;
    }

    
Sets the value of the assets property.

Parameters:
value allowed object is
    public void setAssets(ARAnchorType.Assets 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);
        {
            ARAnchorType.Assets theAssets;
            theAssets = this.getAssets();
            strategy.appendField(locatorthis"assets"buffertheAssets);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof ARAnchorType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final ARAnchorType that = ((ARAnchorTypeobject);
        {
            ARAnchorType.Assets lhsAssets;
            lhsAssets = this.getAssets();
            ARAnchorType.Assets rhsAssets;
            rhsAssets = that.getAssets();
            if (!strategy.equals(LocatorUtils.property(thisLocator"assets"lhsAssets), LocatorUtils.property(thatLocator"assets"rhsAssets), lhsAssetsrhsAssets)) {
                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);
        {
            ARAnchorType.Assets theAssets;
            theAssets = this.getAssets();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"assets"theAssets), currentHashCodetheAssets);
        }
        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) {
        if (null == target) {
            throw new IllegalArgumentException("Target argument must not be null for abstract copyable classes.");
        }
        super.copyTo(locatortargetstrategy);
        if (target instanceof ARAnchorType) {
            final ARAnchorType copy = ((ARAnchorTypetarget);
            if (this.!= null) {
                ARAnchorType.Assets sourceAssets;
                sourceAssets = this.getAssets();
                ARAnchorType.Assets copyAssets = ((ARAnchorType.Assetsstrategy.copy(LocatorUtils.property(locator"assets"sourceAssets), sourceAssets));
                copy.setAssets(copyAssets);
            } else {
                copy.assets = null;
            }
        }
        return target;
    }
    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 ARAnchorType) {
            final ARAnchorType target = this;
            final ARAnchorType leftObject = ((ARAnchorTypeleft);
            final ARAnchorType rightObject = ((ARAnchorTyperight);
            {
                ARAnchorType.Assets lhsAssets;
                lhsAssets = leftObject.getAssets();
                ARAnchorType.Assets rhsAssets;
                rhsAssets = rightObject.getAssets();
                ARAnchorType.Assets mergedAssets = ((ARAnchorType.Assetsstrategy.merge(LocatorUtils.property(leftLocator"assets"lhsAssets), LocatorUtils.property(rightLocator"assets"rhsAssets), lhsAssetsrhsAssets));
                target.setAssets(mergedAssets);
            }
        }
    }
    public ARAnchorType withAssets(ARAnchorType.Assets value) {
        setAssets(value);
        return this;
    }
    @Override
    public ARAnchorType withEnabled(Boolean value) {
        setEnabled(value);
        return this;
    }
    @Override
    public ARAnchorType 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">
       <sequence>
         <element ref="{http://www.opengis.net/arml/2.0}VisualAsset" maxOccurs="unbounded" minOccurs="0"/>
         <element name="assetRef" maxOccurs="unbounded" 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>
     </restriction>
   </complexContent>
 </complexType>
 
    @XmlType(name = "", propOrder = {
        "visualAsset",
        "assetRef"
    })
    public static class Assets
        implements CloneableCopyToEqualsHashCodeMergeFromToString
    {
        @XmlElementRef(name = "VisualAsset", namespace = "http://www.opengis.net/arml/2.0", type = JAXBElement.class, required = false)
        protected List<JAXBElement<? extends VisualAssetType>> visualAsset;
        protected List<ARAnchorType.Assets.AssetRefassetRef;

        
Gets the value of the visualAsset property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the visualAsset property.

For example, to add a new item, do as follows:

    getVisualAsset().add(newItem);
 

Objects of the following type(s) are allowed in the list <> <> <> <> <> <> <>

        public List<JAXBElement<? extends VisualAssetType>> getVisualAsset() {
            if ( == null) {
                 = new ArrayList<JAXBElement<? extends VisualAssetType>>();
            }
            return this.;
        }

        
Gets the value of the assetRef property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the assetRef property.

For example, to add a new item, do as follows:

    getAssetRef().add(newItem);
 

Objects of the following type(s) are allowed in the list

        public List<ARAnchorType.Assets.AssetRefgetAssetRef() {
            if ( == null) {
                 = new ArrayList<ARAnchorType.Assets.AssetRef>();
            }
            return this.;
        }
        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) {
            {
                List<JAXBElement<? extends VisualAssetType>> theVisualAsset;
                theVisualAsset = (((this.!= null)&&(!this..isEmpty()))?this.getVisualAsset():null);
                strategy.appendField(locatorthis"visualAsset"buffertheVisualAsset);
            }
            {
                List<ARAnchorType.Assets.AssetReftheAssetRef;
                theAssetRef = (((this.!= null)&&(!this..isEmpty()))?this.getAssetRef():null);
                strategy.appendField(locatorthis"assetRef"buffertheAssetRef);
            }
            return buffer;
        }
        public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
            if (!(object instanceof ARAnchorType.Assets)) {
                return false;
            }
            if (this == object) {
                return true;
            }
            final ARAnchorType.Assets that = ((ARAnchorType.Assetsobject);
            {
                List<JAXBElement<? extends VisualAssetType>> lhsVisualAsset;
                lhsVisualAsset = (((this.!= null)&&(!this..isEmpty()))?this.getVisualAsset():null);
                List<JAXBElement<? extends VisualAssetType>> rhsVisualAsset;
                rhsVisualAsset = (((that.visualAsset!= null)&&(!that.visualAsset.isEmpty()))?that.getVisualAsset():null);
                if (!strategy.equals(LocatorUtils.property(thisLocator"visualAsset"lhsVisualAsset), LocatorUtils.property(thatLocator"visualAsset"rhsVisualAsset), lhsVisualAssetrhsVisualAsset)) {
                    return false;
                }
            }
            {
                List<ARAnchorType.Assets.AssetReflhsAssetRef;
                lhsAssetRef = (((this.!= null)&&(!this..isEmpty()))?this.getAssetRef():null);
                List<ARAnchorType.Assets.AssetRefrhsAssetRef;
                rhsAssetRef = (((that.assetRef!= null)&&(!that.assetRef.isEmpty()))?that.getAssetRef():null);
                if (!strategy.equals(LocatorUtils.property(thisLocator"assetRef"lhsAssetRef), LocatorUtils.property(thatLocator"assetRef"rhsAssetRef), lhsAssetRefrhsAssetRef)) {
                    return false;
                }
            }
            return true;
        }
        public boolean equals(Object object) {
            final EqualsStrategy strategy = .;
            return equals(nullnullobjectstrategy);
        }
        public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
            int currentHashCode = 1;
            {
                List<JAXBElement<? extends VisualAssetType>> theVisualAsset;
                theVisualAsset = (((this.!= null)&&(!this..isEmpty()))?this.getVisualAsset():null);
                currentHashCode = strategy.hashCode(LocatorUtils.property(locator"visualAsset"theVisualAsset), currentHashCodetheVisualAsset);
            }
            {
                List<ARAnchorType.Assets.AssetReftheAssetRef;
                theAssetRef = (((this.!= null)&&(!this..isEmpty()))?this.getAssetRef():null);
                currentHashCode = strategy.hashCode(LocatorUtils.property(locator"assetRef"theAssetRef), currentHashCodetheAssetRef);
            }
            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 ARAnchorType.Assets) {
                final ARAnchorType.Assets copy = ((ARAnchorType.AssetsdraftCopy);
                if ((this.!= null)&&(!this..isEmpty())) {
                    List<JAXBElement<? extends VisualAssetType>> sourceVisualAsset;
                    sourceVisualAsset = (((this.!= null)&&(!this..isEmpty()))?this.getVisualAsset():null);
                    @SuppressWarnings("unchecked")
                    List<JAXBElement<? extends VisualAssetType>> copyVisualAsset = ((List<JAXBElement<? extends VisualAssetType>> ) strategy.copy(LocatorUtils.property(locator"visualAsset"sourceVisualAsset), sourceVisualAsset));
                    copy.visualAsset = null;
                    if (copyVisualAsset!= null) {
                        List<JAXBElement<? extends VisualAssetType>> uniqueVisualAssetl = copy.getVisualAsset();
                        uniqueVisualAssetl.addAll(copyVisualAsset);
                    }
                } else {
                    copy.visualAsset = null;
                }
                if ((this.!= null)&&(!this..isEmpty())) {
                    List<ARAnchorType.Assets.AssetRefsourceAssetRef;
                    sourceAssetRef = (((this.!= null)&&(!this..isEmpty()))?this.getAssetRef():null);
                    @SuppressWarnings("unchecked")
                    List<ARAnchorType.Assets.AssetRefcopyAssetRef = ((List<ARAnchorType.Assets.AssetRef> ) strategy.copy(LocatorUtils.property(locator"assetRef"sourceAssetRef), sourceAssetRef));
                    copy.assetRef = null;
                    if (copyAssetRef!= null) {
                        List<ARAnchorType.Assets.AssetRefuniqueAssetRefl = copy.getAssetRef();
                        uniqueAssetRefl.addAll(copyAssetRef);
                    }
                } else {
                    copy.assetRef = null;
                }
            }
            return draftCopy;
        }
        public Object createNewInstance() {
            return new ARAnchorType.Assets();
        }
        public void mergeFrom(Object leftObject right) {
            final MergeStrategy strategy = .;
            mergeFrom(nullnullleftrightstrategy);
        }
        public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
            if (right instanceof ARAnchorType.Assets) {
                final ARAnchorType.Assets target = this;
                final ARAnchorType.Assets leftObject = ((ARAnchorType.Assetsleft);
                final ARAnchorType.Assets rightObject = ((ARAnchorType.Assetsright);
                {
                    List<JAXBElement<? extends VisualAssetType>> lhsVisualAsset;
                    lhsVisualAsset = (((leftObject.visualAsset!= null)&&(!leftObject.visualAsset.isEmpty()))?leftObject.getVisualAsset():null);
                    List<JAXBElement<? extends VisualAssetType>> rhsVisualAsset;
                    rhsVisualAsset = (((rightObject.visualAsset!= null)&&(!rightObject.visualAsset.isEmpty()))?rightObject.getVisualAsset():null);
                    List<JAXBElement<? extends VisualAssetType>> mergedVisualAsset = ((List<JAXBElement<? extends VisualAssetType>> ) strategy.merge(LocatorUtils.property(leftLocator"visualAsset"lhsVisualAsset), LocatorUtils.property(rightLocator"visualAsset"rhsVisualAsset), lhsVisualAssetrhsVisualAsset));
                    target.visualAsset = null;
                    if (mergedVisualAsset!= null) {
                        List<JAXBElement<? extends VisualAssetType>> uniqueVisualAssetl = target.getVisualAsset();
                        uniqueVisualAssetl.addAll(mergedVisualAsset);
                    }
                }
                {
                    List<ARAnchorType.Assets.AssetReflhsAssetRef;
                    lhsAssetRef = (((leftObject.assetRef!= null)&&(!leftObject.assetRef.isEmpty()))?leftObject.getAssetRef():null);
                    List<ARAnchorType.Assets.AssetRefrhsAssetRef;
                    rhsAssetRef = (((rightObject.assetRef!= null)&&(!rightObject.assetRef.isEmpty()))?rightObject.getAssetRef():null);
                    List<ARAnchorType.Assets.AssetRefmergedAssetRef = ((List<ARAnchorType.Assets.AssetRef> ) strategy.merge(LocatorUtils.property(leftLocator"assetRef"lhsAssetRef), LocatorUtils.property(rightLocator"assetRef"rhsAssetRef), lhsAssetRefrhsAssetRef));
                    target.assetRef = null;
                    if (mergedAssetRef!= null) {
                        List<ARAnchorType.Assets.AssetRefuniqueAssetRefl = target.getAssetRef();
                        uniqueAssetRefl.addAll(mergedAssetRef);
                    }
                }
            }
        }
        public void setVisualAsset(List<JAXBElement<? extends VisualAssetType>> value) {
            this. = null;
            List<JAXBElement<? extends VisualAssetType>> draftl = this.getVisualAsset();
            draftl.addAll(value);
        }
        public void setAssetRef(List<ARAnchorType.Assets.AssetRefvalue) {
            this. = null;
            List<ARAnchorType.Assets.AssetRefdraftl = this.getAssetRef();
            draftl.addAll(value);
        }
        public ARAnchorType.Assets withVisualAsset(JAXBElement<? extends VisualAssetType> ... values) {
            if (values!= null) {
                for (JAXBElement<? extends VisualAssetTypevaluevalues) {
                    getVisualAsset().add(value);
                }
            }
            return this;
        }
        public ARAnchorType.Assets withVisualAsset(Collection<JAXBElement<? extends VisualAssetType>> values) {
            if (values!= null) {
                getVisualAsset().addAll(values);
            }
            return this;
        }
        public ARAnchorType.Assets withAssetRef(ARAnchorType.Assets.AssetRef... values) {
            if (values!= null) {
                for (ARAnchorType.Assets.AssetRef valuevalues) {
                    getAssetRef().add(value);
                }
            }
            return this;
        }
            if (values!= null) {
                getAssetRef().addAll(values);
            }
            return this;
        }
        public ARAnchorType.Assets withVisualAsset(List<JAXBElement<? extends VisualAssetType>> value) {
            setVisualAsset(value);
            return this;
        }
        public ARAnchorType.Assets withAssetRef(List<ARAnchorType.Assets.AssetRefvalue) {
            setAssetRef(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 AssetRef
            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 ARAnchorType.Assets.AssetRef)) {
                    return false;
                }
                if (this == object) {
                    return true;
                }
                final ARAnchorType.Assets.AssetRef that = ((ARAnchorType.Assets.AssetRefobject);
                {
                    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 ARAnchorType.Assets.AssetRef) {
                    final ARAnchorType.Assets.AssetRef copy = ((ARAnchorType.Assets.AssetRefdraftCopy);
                    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 ARAnchorType.Assets.AssetRef();
            }
            public void mergeFrom(Object leftObject right) {
                final MergeStrategy strategy = .;
                mergeFrom(nullnullleftrightstrategy);
            }
            public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
                if (right instanceof ARAnchorType.Assets.AssetRef) {
                    final ARAnchorType.Assets.AssetRef target = this;
                    final ARAnchorType.Assets.AssetRef leftObject = ((ARAnchorType.Assets.AssetRefleft);
                    final ARAnchorType.Assets.AssetRef rightObject = ((ARAnchorType.Assets.AssetRefright);
                    {
                        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 ARAnchorType.Assets.AssetRef withHref(String value) {
                setHref(value);
                return this;
            }
        }
    }
New to GrepCode? Check out our FAQ X