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, vhudson-jaxb-ri-2.1-2 
  // 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: 2011.02.20 at 01:29:24 PM MEZ 
  //
  
  
  package net.opengis.xls.v_1_1_0;
 

Java class for POIAttributeListType complex type.

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

 <complexType name="POIAttributeListType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element ref="{http://www.opengis.net/xls}ReferenceSystem" minOccurs="0"/>
         <element ref="{http://www.opengis.net/xls}POIInfoList" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "POIAttributeListType", propOrder = {
     "referenceSystem",
     "poiInfoList"
 })
 public class POIAttributeListType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(name = "ReferenceSystem")
     protected ReferenceSystemType referenceSystem;
     @XmlElement(name = "POIInfoList")
     protected POIInfoListType poiInfoList;

    
Gets the value of the referenceSystem property.

Returns:
possible object is
 
         return ;
     }

    
Sets the value of the referenceSystem property.

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

    
Gets the value of the poiInfoList property.

Returns:
possible object is
 
    public POIInfoListType getPOIInfoList() {
        return ;
    }

    
Sets the value of the poiInfoList property.

Parameters:
value allowed object is
    public void setPOIInfoList(POIInfoListType 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) {
        {
            ReferenceSystemType theReferenceSystem;
            theReferenceSystem = this.getReferenceSystem();
            strategy.appendField(locatorthis"referenceSystem"buffertheReferenceSystem);
        }
        {
            POIInfoListType thePOIInfoList;
            thePOIInfoList = this.getPOIInfoList();
            strategy.appendField(locatorthis"poiInfoList"bufferthePOIInfoList);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof POIAttributeListType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final POIAttributeListType that = ((POIAttributeListTypeobject);
        {
            ReferenceSystemType lhsReferenceSystem;
            lhsReferenceSystem = this.getReferenceSystem();
            ReferenceSystemType rhsReferenceSystem;
            rhsReferenceSystem = that.getReferenceSystem();
            if (!strategy.equals(LocatorUtils.property(thisLocator"referenceSystem"lhsReferenceSystem), LocatorUtils.property(thatLocator"referenceSystem"rhsReferenceSystem), lhsReferenceSystemrhsReferenceSystem)) {
                return false;
            }
        }
        {
            POIInfoListType lhsPOIInfoList;
            lhsPOIInfoList = this.getPOIInfoList();
            POIInfoListType rhsPOIInfoList;
            rhsPOIInfoList = that.getPOIInfoList();
            if (!strategy.equals(LocatorUtils.property(thisLocator"poiInfoList"lhsPOIInfoList), LocatorUtils.property(thatLocator"poiInfoList"rhsPOIInfoList), lhsPOIInfoListrhsPOIInfoList)) {
                return false;
            }
        }
        return true;
    }
    public boolean equals(Object object) {
        final EqualsStrategy strategy = .;
        return equals(nullnullobjectstrategy);
    }
    public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
        int currentHashCode = 1;
        {
            ReferenceSystemType theReferenceSystem;
            theReferenceSystem = this.getReferenceSystem();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"referenceSystem"theReferenceSystem), currentHashCodetheReferenceSystem);
        }
        {
            POIInfoListType thePOIInfoList;
            thePOIInfoList = this.getPOIInfoList();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"poiInfoList"thePOIInfoList), currentHashCodethePOIInfoList);
        }
        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 POIAttributeListType) {
            final POIAttributeListType copy = ((POIAttributeListTypedraftCopy);
            if (this.!= null) {
                ReferenceSystemType sourceReferenceSystem;
                sourceReferenceSystem = this.getReferenceSystem();
                ReferenceSystemType copyReferenceSystem = ((ReferenceSystemTypestrategy.copy(LocatorUtils.property(locator"referenceSystem"sourceReferenceSystem), sourceReferenceSystem));
                copy.setReferenceSystem(copyReferenceSystem);
            } else {
                copy.referenceSystem = null;
            }
            if (this.!= null) {
                POIInfoListType sourcePOIInfoList;
                sourcePOIInfoList = this.getPOIInfoList();
                POIInfoListType copyPOIInfoList = ((POIInfoListTypestrategy.copy(LocatorUtils.property(locator"poiInfoList"sourcePOIInfoList), sourcePOIInfoList));
                copy.setPOIInfoList(copyPOIInfoList);
            } else {
                copy.poiInfoList = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new POIAttributeListType();
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        if (right instanceof POIAttributeListType) {
            final POIAttributeListType target = this;
            final POIAttributeListType leftObject = ((POIAttributeListTypeleft);
            final POIAttributeListType rightObject = ((POIAttributeListTyperight);
            {
                ReferenceSystemType lhsReferenceSystem;
                lhsReferenceSystem = leftObject.getReferenceSystem();
                ReferenceSystemType rhsReferenceSystem;
                rhsReferenceSystem = rightObject.getReferenceSystem();
                target.setReferenceSystem(((ReferenceSystemTypestrategy.merge(LocatorUtils.property(leftLocator"referenceSystem"lhsReferenceSystem), LocatorUtils.property(rightLocator"referenceSystem"rhsReferenceSystem), lhsReferenceSystemrhsReferenceSystem)));
            }
            {
                POIInfoListType lhsPOIInfoList;
                lhsPOIInfoList = leftObject.getPOIInfoList();
                POIInfoListType rhsPOIInfoList;
                rhsPOIInfoList = rightObject.getPOIInfoList();
                target.setPOIInfoList(((POIInfoListTypestrategy.merge(LocatorUtils.property(leftLocator"poiInfoList"lhsPOIInfoList), LocatorUtils.property(rightLocator"poiInfoList"rhsPOIInfoList), lhsPOIInfoListrhsPOIInfoList)));
            }
        }
    }
New to GrepCode? Check out our FAQ X