Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  //
  // Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6 generiert 
  // Siehe <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
  // Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. 
  // Generiert: 2013.01.31 um 01:29:25 AM CET 
  //
  
  
  package net.opengis.xls.v_1_1_0;
 
 import java.util.List;
ADT for a ProximityResponse. One or more POIs may be returned

Java-Klasse für DirectoryResponseType complex type.

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.

 <complexType name="DirectoryResponseType">
   <complexContent>
     <extension base="{http://www.opengis.net/xls}AbstractResponseParametersType">
       <sequence>
         <element name="POIContext" type="{http://www.opengis.net/xls}POIWithDistanceType" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "DirectoryResponseType", propOrder = {
     "poiContext"
 })
 public class DirectoryResponseType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(name = "POIContext")
     protected List<POIWithDistanceTypepoiContext;

    
Gets the value of the poiContext 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 poiContext property.

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

    getPOIContext().add(newItem);
 

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

 
     public List<POIWithDistanceTypegetPOIContext() {
         if ( == null) {
              = new ArrayList<POIWithDistanceType>();
         }
         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) {
        super.appendFields(locatorbufferstrategy);
        {
            List<POIWithDistanceTypethePOIContext;
            thePOIContext = this.getPOIContext();
            strategy.appendField(locatorthis"poiContext"bufferthePOIContext);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof DirectoryResponseType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final DirectoryResponseType that = ((DirectoryResponseTypeobject);
        {
            List<POIWithDistanceTypelhsPOIContext;
            lhsPOIContext = this.getPOIContext();
            List<POIWithDistanceTyperhsPOIContext;
            rhsPOIContext = that.getPOIContext();
            if (!strategy.equals(LocatorUtils.property(thisLocator"poiContext"lhsPOIContext), LocatorUtils.property(thatLocator"poiContext"rhsPOIContext), lhsPOIContextrhsPOIContext)) {
                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);
        {
            List<POIWithDistanceTypethePOIContext;
            thePOIContext = this.getPOIContext();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"poiContext"thePOIContext), currentHashCodethePOIContext);
        }
        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 DirectoryResponseType) {
            final DirectoryResponseType copy = ((DirectoryResponseTypedraftCopy);
            if ((this.!= null)&&(!this..isEmpty())) {
                List<POIWithDistanceTypesourcePOIContext;
                sourcePOIContext = this.getPOIContext();
                @SuppressWarnings("unchecked")
                List<POIWithDistanceTypecopyPOIContext = ((List<POIWithDistanceType> ) strategy.copy(LocatorUtils.property(locator"poiContext"sourcePOIContext), sourcePOIContext));
                copy.poiContext = null;
                List<POIWithDistanceTypeuniquePOIContextl = copy.getPOIContext();
                uniquePOIContextl.addAll(copyPOIContext);
            } else {
                copy.poiContext = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new DirectoryResponseType();
    }
    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 DirectoryResponseType) {
            final DirectoryResponseType target = this;
            final DirectoryResponseType leftObject = ((DirectoryResponseTypeleft);
            final DirectoryResponseType rightObject = ((DirectoryResponseTyperight);
            {
                List<POIWithDistanceTypelhsPOIContext;
                lhsPOIContext = leftObject.getPOIContext();
                List<POIWithDistanceTyperhsPOIContext;
                rhsPOIContext = rightObject.getPOIContext();
                target.poiContext = null;
                List<POIWithDistanceTypeuniquePOIContextl = target.getPOIContext();
                uniquePOIContextl.addAll(((List<POIWithDistanceType> ) strategy.merge(LocatorUtils.property(leftLocator"poiContext"lhsPOIContext), LocatorUtils.property(rightLocator"poiContext"rhsPOIContext), lhsPOIContextrhsPOIContext)));
            }
        }
    }
    public void setPOIContext(List<POIWithDistanceTypevalue) {
        List<POIWithDistanceTypedraftl = this.getPOIContext();
        draftl.addAll(value);
    }
New to GrepCode? Check out our FAQ X