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

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

 <complexType name="PointOfInterestType">
   <complexContent>
     <extension base="{http://www.opengis.net/xls}AbstractPOIType">
       <sequence>
         <element ref="{http://www.opengis.net/xls}POIAttributeList" minOccurs="0"/>
         <element ref="{http://www.opengis.net/gml}Point" minOccurs="0"/>
         <element ref="{http://www.opengis.net/xls}Address" minOccurs="0"/>
       </sequence>
       <attribute name="ID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="POIName" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="phoneNumber" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="description" type="{http://www.w3.org/2001/XMLSchema}string" />
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "PointOfInterestType", propOrder = {
     "poiAttributeList",
     "point",
     "address"
 })
 public class PointOfInterestType
     extends AbstractPOIType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(name = "POIAttributeList")
     @XmlElement(name = "Point", namespace = "http://www.opengis.net/gml")
     protected PointType point;
     @XmlElement(name = "Address")
     protected AddressType address;
     @XmlAttribute(name = "ID", required = true)
     protected String id;
     @XmlAttribute(name = "POIName")
     protected String poiName;
     @XmlAttribute(name = "phoneNumber")
     protected String phoneNumber;
     @XmlAttribute(name = "description")
     protected String description;

    
Gets the value of the poiAttributeList property.

Returns:
possible object is
 
         return ;
     }

    
Sets the value of the poiAttributeList property.

Parameters:
value allowed object is
    public void setPOIAttributeList(POIAttributeListType 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 address property.

Returns:
possible object is
    public AddressType getAddress() {
        return ;
    }

    
Sets the value of the address property.

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

    
Gets the value of the id property.

Returns:
possible object is
    public String getID() {
        return ;
    }

    
Sets the value of the id property.

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

    
Gets the value of the poiName property.

Returns:
possible object is
    public String getPOIName() {
        return ;
    }

    
Sets the value of the poiName property.

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

    
Gets the value of the phoneNumber property.

Returns:
possible object is
    public String getPhoneNumber() {
        return ;
    }

    
Sets the value of the phoneNumber property.

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

    
Gets the value of the description property.

Returns:
possible object is
    public String getDescription() {
        return ;
    }

    
Sets the value of the description property.

Parameters:
value allowed object is
    public void setDescription(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) {
        super.appendFields(locatorbufferstrategy);
        {
            POIAttributeListType thePOIAttributeList;
            thePOIAttributeList = this.getPOIAttributeList();
            strategy.appendField(locatorthis"poiAttributeList"bufferthePOIAttributeList);
        }
        {
            PointType thePoint;
            thePoint = this.getPoint();
            strategy.appendField(locatorthis"point"bufferthePoint);
        }
        {
            AddressType theAddress;
            theAddress = this.getAddress();
            strategy.appendField(locatorthis"address"buffertheAddress);
        }
        {
            String theID;
            theID = this.getID();
            strategy.appendField(locatorthis"id"buffertheID);
        }
        {
            String thePOIName;
            thePOIName = this.getPOIName();
            strategy.appendField(locatorthis"poiName"bufferthePOIName);
        }
        {
            String thePhoneNumber;
            thePhoneNumber = this.getPhoneNumber();
            strategy.appendField(locatorthis"phoneNumber"bufferthePhoneNumber);
        }
        {
            String theDescription;
            theDescription = this.getDescription();
            strategy.appendField(locatorthis"description"buffertheDescription);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof PointOfInterestType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final PointOfInterestType that = ((PointOfInterestTypeobject);
        {
            POIAttributeListType lhsPOIAttributeList;
            lhsPOIAttributeList = this.getPOIAttributeList();
            POIAttributeListType rhsPOIAttributeList;
            rhsPOIAttributeList = that.getPOIAttributeList();
            if (!strategy.equals(LocatorUtils.property(thisLocator"poiAttributeList"lhsPOIAttributeList), LocatorUtils.property(thatLocator"poiAttributeList"rhsPOIAttributeList), lhsPOIAttributeListrhsPOIAttributeList)) {
                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;
            }
        }
        {
            AddressType lhsAddress;
            lhsAddress = this.getAddress();
            AddressType rhsAddress;
            rhsAddress = that.getAddress();
            if (!strategy.equals(LocatorUtils.property(thisLocator"address"lhsAddress), LocatorUtils.property(thatLocator"address"rhsAddress), lhsAddressrhsAddress)) {
                return false;
            }
        }
        {
            String lhsID;
            lhsID = this.getID();
            String rhsID;
            rhsID = that.getID();
            if (!strategy.equals(LocatorUtils.property(thisLocator"id"lhsID), LocatorUtils.property(thatLocator"id"rhsID), lhsIDrhsID)) {
                return false;
            }
        }
        {
            String lhsPOIName;
            lhsPOIName = this.getPOIName();
            String rhsPOIName;
            rhsPOIName = that.getPOIName();
            if (!strategy.equals(LocatorUtils.property(thisLocator"poiName"lhsPOIName), LocatorUtils.property(thatLocator"poiName"rhsPOIName), lhsPOINamerhsPOIName)) {
                return false;
            }
        }
        {
            String lhsPhoneNumber;
            lhsPhoneNumber = this.getPhoneNumber();
            String rhsPhoneNumber;
            rhsPhoneNumber = that.getPhoneNumber();
            if (!strategy.equals(LocatorUtils.property(thisLocator"phoneNumber"lhsPhoneNumber), LocatorUtils.property(thatLocator"phoneNumber"rhsPhoneNumber), lhsPhoneNumberrhsPhoneNumber)) {
                return false;
            }
        }
        {
            String lhsDescription;
            lhsDescription = this.getDescription();
            String rhsDescription;
            rhsDescription = that.getDescription();
            if (!strategy.equals(LocatorUtils.property(thisLocator"description"lhsDescription), LocatorUtils.property(thatLocator"description"rhsDescription), lhsDescriptionrhsDescription)) {
                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);
        {
            POIAttributeListType thePOIAttributeList;
            thePOIAttributeList = this.getPOIAttributeList();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"poiAttributeList"thePOIAttributeList), currentHashCodethePOIAttributeList);
        }
        {
            PointType thePoint;
            thePoint = this.getPoint();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"point"thePoint), currentHashCodethePoint);
        }
        {
            AddressType theAddress;
            theAddress = this.getAddress();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"address"theAddress), currentHashCodetheAddress);
        }
        {
            String theID;
            theID = this.getID();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"id"theID), currentHashCodetheID);
        }
        {
            String thePOIName;
            thePOIName = this.getPOIName();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"poiName"thePOIName), currentHashCodethePOIName);
        }
        {
            String thePhoneNumber;
            thePhoneNumber = this.getPhoneNumber();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"phoneNumber"thePhoneNumber), currentHashCodethePhoneNumber);
        }
        {
            String theDescription;
            theDescription = this.getDescription();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"description"theDescription), currentHashCodetheDescription);
        }
        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 PointOfInterestType) {
            final PointOfInterestType copy = ((PointOfInterestTypedraftCopy);
            if (this.!= null) {
                POIAttributeListType sourcePOIAttributeList;
                sourcePOIAttributeList = this.getPOIAttributeList();
                POIAttributeListType copyPOIAttributeList = ((POIAttributeListTypestrategy.copy(LocatorUtils.property(locator"poiAttributeList"sourcePOIAttributeList), sourcePOIAttributeList));
                copy.setPOIAttributeList(copyPOIAttributeList);
            } else {
                copy.poiAttributeList = 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) {
                AddressType sourceAddress;
                sourceAddress = this.getAddress();
                AddressType copyAddress = ((AddressTypestrategy.copy(LocatorUtils.property(locator"address"sourceAddress), sourceAddress));
                copy.setAddress(copyAddress);
            } else {
                copy.address = null;
            }
            if (this.!= null) {
                String sourceID;
                sourceID = this.getID();
                String copyID = ((Stringstrategy.copy(LocatorUtils.property(locator"id"sourceID), sourceID));
                copy.setID(copyID);
            } else {
                copy.id = null;
            }
            if (this.!= null) {
                String sourcePOIName;
                sourcePOIName = this.getPOIName();
                String copyPOIName = ((Stringstrategy.copy(LocatorUtils.property(locator"poiName"sourcePOIName), sourcePOIName));
                copy.setPOIName(copyPOIName);
            } else {
                copy.poiName = null;
            }
            if (this.!= null) {
                String sourcePhoneNumber;
                sourcePhoneNumber = this.getPhoneNumber();
                String copyPhoneNumber = ((Stringstrategy.copy(LocatorUtils.property(locator"phoneNumber"sourcePhoneNumber), sourcePhoneNumber));
                copy.setPhoneNumber(copyPhoneNumber);
            } else {
                copy.phoneNumber = null;
            }
            if (this.!= null) {
                String sourceDescription;
                sourceDescription = this.getDescription();
                String copyDescription = ((Stringstrategy.copy(LocatorUtils.property(locator"description"sourceDescription), sourceDescription));
                copy.setDescription(copyDescription);
            } else {
                copy.description = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new PointOfInterestType();
    }
    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 PointOfInterestType) {
            final PointOfInterestType target = this;
            final PointOfInterestType leftObject = ((PointOfInterestTypeleft);
            final PointOfInterestType rightObject = ((PointOfInterestTyperight);
            {
                POIAttributeListType lhsPOIAttributeList;
                lhsPOIAttributeList = leftObject.getPOIAttributeList();
                POIAttributeListType rhsPOIAttributeList;
                rhsPOIAttributeList = rightObject.getPOIAttributeList();
                target.setPOIAttributeList(((POIAttributeListTypestrategy.merge(LocatorUtils.property(leftLocator"poiAttributeList"lhsPOIAttributeList), LocatorUtils.property(rightLocator"poiAttributeList"rhsPOIAttributeList), lhsPOIAttributeListrhsPOIAttributeList)));
            }
            {
                PointType lhsPoint;
                lhsPoint = leftObject.getPoint();
                PointType rhsPoint;
                rhsPoint = rightObject.getPoint();
                target.setPoint(((PointTypestrategy.merge(LocatorUtils.property(leftLocator"point"lhsPoint), LocatorUtils.property(rightLocator"point"rhsPoint), lhsPointrhsPoint)));
            }
            {
                AddressType lhsAddress;
                lhsAddress = leftObject.getAddress();
                AddressType rhsAddress;
                rhsAddress = rightObject.getAddress();
                target.setAddress(((AddressTypestrategy.merge(LocatorUtils.property(leftLocator"address"lhsAddress), LocatorUtils.property(rightLocator"address"rhsAddress), lhsAddressrhsAddress)));
            }
            {
                String lhsID;
                lhsID = leftObject.getID();
                String rhsID;
                rhsID = rightObject.getID();
                target.setID(((Stringstrategy.merge(LocatorUtils.property(leftLocator"id"lhsID), LocatorUtils.property(rightLocator"id"rhsID), lhsIDrhsID)));
            }
            {
                String lhsPOIName;
                lhsPOIName = leftObject.getPOIName();
                String rhsPOIName;
                rhsPOIName = rightObject.getPOIName();
                target.setPOIName(((Stringstrategy.merge(LocatorUtils.property(leftLocator"poiName"lhsPOIName), LocatorUtils.property(rightLocator"poiName"rhsPOIName), lhsPOINamerhsPOIName)));
            }
            {
                String lhsPhoneNumber;
                lhsPhoneNumber = leftObject.getPhoneNumber();
                String rhsPhoneNumber;
                rhsPhoneNumber = rightObject.getPhoneNumber();
                target.setPhoneNumber(((Stringstrategy.merge(LocatorUtils.property(leftLocator"phoneNumber"lhsPhoneNumber), LocatorUtils.property(rightLocator"phoneNumber"rhsPhoneNumber), lhsPhoneNumberrhsPhoneNumber)));
            }
            {
                String lhsDescription;
                lhsDescription = leftObject.getDescription();
                String rhsDescription;
                rhsDescription = rightObject.getDescription();
                target.setDescription(((Stringstrategy.merge(LocatorUtils.property(leftLocator"description"lhsDescription), LocatorUtils.property(rightLocator"description"rhsDescription), lhsDescriptionrhsDescription)));
            }
        }
    }
New to GrepCode? Check out our FAQ X