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;
Defines a spatial filter which selects the POI nearest to the specified location.

Java-Klasse für NearestType complex type.

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

 <complexType name="NearestType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element ref="{http://www.opengis.net/xls}_Location" maxOccurs="unbounded"/>
       </sequence>
       <attribute name="nearestCriterion" type="{http://www.opengis.net/xls}NearestCriterionType" default="Proximity" />
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "NearestType", propOrder = {
     "location"
 })
 public class NearestType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElementRef(name = "_Location", namespace = "http://www.opengis.net/xls", type = JAXBElement.class)
     protected List<JAXBElement<? extends AbstractLocationType>> location;
     @XmlAttribute(name = "nearestCriterion")
     protected NearestCriterionType nearestCriterion;

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

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

    getLocation().add(newItem);
 

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

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

    
Ruft den Wert der nearestCriterion-Eigenschaft ab.

Returns:
possible object is
        if ( == null) {
            return .;
        } else {
            return ;
        }
    }

    
Legt den Wert der nearestCriterion-Eigenschaft fest.

Parameters:
value allowed object is
    public void setNearestCriterion(NearestCriterionType 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) {
        {
            List<JAXBElement<? extends AbstractLocationType>> theLocation;
            theLocation = this.getLocation();
            strategy.appendField(locatorthis"location"buffertheLocation);
        }
        {
            NearestCriterionType theNearestCriterion;
            theNearestCriterion = this.getNearestCriterion();
            strategy.appendField(locatorthis"nearestCriterion"buffertheNearestCriterion);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof NearestType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final NearestType that = ((NearestTypeobject);
        {
            List<JAXBElement<? extends AbstractLocationType>> lhsLocation;
            lhsLocation = this.getLocation();
            List<JAXBElement<? extends AbstractLocationType>> rhsLocation;
            rhsLocation = that.getLocation();
            if (!strategy.equals(LocatorUtils.property(thisLocator"location"lhsLocation), LocatorUtils.property(thatLocator"location"rhsLocation), lhsLocationrhsLocation)) {
                return false;
            }
        }
        {
            NearestCriterionType lhsNearestCriterion;
            lhsNearestCriterion = this.getNearestCriterion();
            NearestCriterionType rhsNearestCriterion;
            rhsNearestCriterion = that.getNearestCriterion();
            if (!strategy.equals(LocatorUtils.property(thisLocator"nearestCriterion"lhsNearestCriterion), LocatorUtils.property(thatLocator"nearestCriterion"rhsNearestCriterion), lhsNearestCriterionrhsNearestCriterion)) {
                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 AbstractLocationType>> theLocation;
            theLocation = this.getLocation();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"location"theLocation), currentHashCodetheLocation);
        }
        {
            NearestCriterionType theNearestCriterion;
            theNearestCriterion = this.getNearestCriterion();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"nearestCriterion"theNearestCriterion), currentHashCodetheNearestCriterion);
        }
        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 NearestType) {
            final NearestType copy = ((NearestTypedraftCopy);
            if ((this.!= null)&&(!this..isEmpty())) {
                List<JAXBElement<? extends AbstractLocationType>> sourceLocation;
                sourceLocation = this.getLocation();
                @SuppressWarnings("unchecked")
                List<JAXBElement<? extends AbstractLocationType>> copyLocation = ((List<JAXBElement<? extends AbstractLocationType>> ) strategy.copy(LocatorUtils.property(locator"location"sourceLocation), sourceLocation));
                copy.location = null;
                List<JAXBElement<? extends AbstractLocationType>> uniqueLocationl = copy.getLocation();
                uniqueLocationl.addAll(copyLocation);
            } else {
                copy.location = null;
            }
            if (this.!= null) {
                NearestCriterionType sourceNearestCriterion;
                sourceNearestCriterion = this.getNearestCriterion();
                NearestCriterionType copyNearestCriterion = ((NearestCriterionTypestrategy.copy(LocatorUtils.property(locator"nearestCriterion"sourceNearestCriterion), sourceNearestCriterion));
                copy.setNearestCriterion(copyNearestCriterion);
            } else {
                copy.nearestCriterion = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new NearestType();
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        if (right instanceof NearestType) {
            final NearestType target = this;
            final NearestType leftObject = ((NearestTypeleft);
            final NearestType rightObject = ((NearestTyperight);
            {
                List<JAXBElement<? extends AbstractLocationType>> lhsLocation;
                lhsLocation = leftObject.getLocation();
                List<JAXBElement<? extends AbstractLocationType>> rhsLocation;
                rhsLocation = rightObject.getLocation();
                target.location = null;
                List<JAXBElement<? extends AbstractLocationType>> uniqueLocationl = target.getLocation();
                uniqueLocationl.addAll(((List<JAXBElement<? extends AbstractLocationType>> ) strategy.merge(LocatorUtils.property(leftLocator"location"lhsLocation), LocatorUtils.property(rightLocator"location"rhsLocation), lhsLocationrhsLocation)));
            }
            {
                NearestCriterionType lhsNearestCriterion;
                lhsNearestCriterion = leftObject.getNearestCriterion();
                NearestCriterionType rhsNearestCriterion;
                rhsNearestCriterion = rightObject.getNearestCriterion();
                target.setNearestCriterion(((NearestCriterionTypestrategy.merge(LocatorUtils.property(leftLocator"nearestCriterion"lhsNearestCriterion), LocatorUtils.property(rightLocator"nearestCriterion"rhsNearestCriterion), lhsNearestCriterionrhsNearestCriterion)));
            }
        }
    }
    public void setLocation(List<JAXBElement<? extends AbstractLocationType>> value) {
        List<JAXBElement<? extends AbstractLocationType>> draftl = this.getLocation();
        draftl.addAll(value);
    }
New to GrepCode? Check out our FAQ X