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 list of waypoints along a route.

Java-Klasse für WayPointListType complex type.

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

 <complexType name="WayPointListType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element ref="{http://www.opengis.net/xls}StartPoint"/>
         <element ref="{http://www.opengis.net/xls}ViaPoint" maxOccurs="unbounded" minOccurs="0"/>
         <element ref="{http://www.opengis.net/xls}EndPoint"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "WayPointListType", propOrder = {
     "startPoint",
     "viaPoint",
     "endPoint"
 })
 public class WayPointListType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(name = "StartPoint", required = true)
     protected WayPointType startPoint;
     @XmlElement(name = "ViaPoint")
     protected List<WayPointTypeviaPoint;
     @XmlElement(name = "EndPoint", required = true)
     protected WayPointType endPoint;

    
Ruft den Wert der startPoint-Eigenschaft ab.

Returns:
possible object is
 
     public WayPointType getStartPoint() {
         return ;
     }

    
Legt den Wert der startPoint-Eigenschaft fest.

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

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

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

    getViaPoint().add(newItem);
 

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

    public List<WayPointTypegetViaPoint() {
        if ( == null) {
             = new ArrayList<WayPointType>();
        }
        return this.;
    }

    
Ruft den Wert der endPoint-Eigenschaft ab.

Returns:
possible object is
    public WayPointType getEndPoint() {
        return ;
    }

    
Legt den Wert der endPoint-Eigenschaft fest.

Parameters:
value allowed object is
    public void setEndPoint(WayPointType 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) {
        {
            WayPointType theStartPoint;
            theStartPoint = this.getStartPoint();
            strategy.appendField(locatorthis"startPoint"buffertheStartPoint);
        }
        {
            List<WayPointTypetheViaPoint;
            theViaPoint = this.getViaPoint();
            strategy.appendField(locatorthis"viaPoint"buffertheViaPoint);
        }
        {
            WayPointType theEndPoint;
            theEndPoint = this.getEndPoint();
            strategy.appendField(locatorthis"endPoint"buffertheEndPoint);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof WayPointListType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final WayPointListType that = ((WayPointListTypeobject);
        {
            WayPointType lhsStartPoint;
            lhsStartPoint = this.getStartPoint();
            WayPointType rhsStartPoint;
            rhsStartPoint = that.getStartPoint();
            if (!strategy.equals(LocatorUtils.property(thisLocator"startPoint"lhsStartPoint), LocatorUtils.property(thatLocator"startPoint"rhsStartPoint), lhsStartPointrhsStartPoint)) {
                return false;
            }
        }
        {
            List<WayPointTypelhsViaPoint;
            lhsViaPoint = this.getViaPoint();
            List<WayPointTyperhsViaPoint;
            rhsViaPoint = that.getViaPoint();
            if (!strategy.equals(LocatorUtils.property(thisLocator"viaPoint"lhsViaPoint), LocatorUtils.property(thatLocator"viaPoint"rhsViaPoint), lhsViaPointrhsViaPoint)) {
                return false;
            }
        }
        {
            WayPointType lhsEndPoint;
            lhsEndPoint = this.getEndPoint();
            WayPointType rhsEndPoint;
            rhsEndPoint = that.getEndPoint();
            if (!strategy.equals(LocatorUtils.property(thisLocator"endPoint"lhsEndPoint), LocatorUtils.property(thatLocator"endPoint"rhsEndPoint), lhsEndPointrhsEndPoint)) {
                return false;
            }
        }
        return true;
    }
    public boolean equals(Object object) {
        final EqualsStrategy strategy = .;
        return equals(nullnullobjectstrategy);
    }
    public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
        int currentHashCode = 1;
        {
            WayPointType theStartPoint;
            theStartPoint = this.getStartPoint();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"startPoint"theStartPoint), currentHashCodetheStartPoint);
        }
        {
            List<WayPointTypetheViaPoint;
            theViaPoint = this.getViaPoint();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"viaPoint"theViaPoint), currentHashCodetheViaPoint);
        }
        {
            WayPointType theEndPoint;
            theEndPoint = this.getEndPoint();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"endPoint"theEndPoint), currentHashCodetheEndPoint);
        }
        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 WayPointListType) {
            final WayPointListType copy = ((WayPointListTypedraftCopy);
            if (this.!= null) {
                WayPointType sourceStartPoint;
                sourceStartPoint = this.getStartPoint();
                WayPointType copyStartPoint = ((WayPointTypestrategy.copy(LocatorUtils.property(locator"startPoint"sourceStartPoint), sourceStartPoint));
                copy.setStartPoint(copyStartPoint);
            } else {
                copy.startPoint = null;
            }
            if ((this.!= null)&&(!this..isEmpty())) {
                List<WayPointTypesourceViaPoint;
                sourceViaPoint = this.getViaPoint();
                @SuppressWarnings("unchecked")
                List<WayPointTypecopyViaPoint = ((List<WayPointType> ) strategy.copy(LocatorUtils.property(locator"viaPoint"sourceViaPoint), sourceViaPoint));
                copy.viaPoint = null;
                List<WayPointTypeuniqueViaPointl = copy.getViaPoint();
                uniqueViaPointl.addAll(copyViaPoint);
            } else {
                copy.viaPoint = null;
            }
            if (this.!= null) {
                WayPointType sourceEndPoint;
                sourceEndPoint = this.getEndPoint();
                WayPointType copyEndPoint = ((WayPointTypestrategy.copy(LocatorUtils.property(locator"endPoint"sourceEndPoint), sourceEndPoint));
                copy.setEndPoint(copyEndPoint);
            } else {
                copy.endPoint = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new WayPointListType();
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        if (right instanceof WayPointListType) {
            final WayPointListType target = this;
            final WayPointListType leftObject = ((WayPointListTypeleft);
            final WayPointListType rightObject = ((WayPointListTyperight);
            {
                WayPointType lhsStartPoint;
                lhsStartPoint = leftObject.getStartPoint();
                WayPointType rhsStartPoint;
                rhsStartPoint = rightObject.getStartPoint();
                target.setStartPoint(((WayPointTypestrategy.merge(LocatorUtils.property(leftLocator"startPoint"lhsStartPoint), LocatorUtils.property(rightLocator"startPoint"rhsStartPoint), lhsStartPointrhsStartPoint)));
            }
            {
                List<WayPointTypelhsViaPoint;
                lhsViaPoint = leftObject.getViaPoint();
                List<WayPointTyperhsViaPoint;
                rhsViaPoint = rightObject.getViaPoint();
                target.viaPoint = null;
                List<WayPointTypeuniqueViaPointl = target.getViaPoint();
                uniqueViaPointl.addAll(((List<WayPointType> ) strategy.merge(LocatorUtils.property(leftLocator"viaPoint"lhsViaPoint), LocatorUtils.property(rightLocator"viaPoint"rhsViaPoint), lhsViaPointrhsViaPoint)));
            }
            {
                WayPointType lhsEndPoint;
                lhsEndPoint = leftObject.getEndPoint();
                WayPointType rhsEndPoint;
                rhsEndPoint = rightObject.getEndPoint();
                target.setEndPoint(((WayPointTypestrategy.merge(LocatorUtils.property(leftLocator"endPoint"lhsEndPoint), LocatorUtils.property(rightLocator"endPoint"rhsEndPoint), lhsEndPointrhsEndPoint)));
            }
        }
    }
    public void setViaPoint(List<WayPointTypevalue) {
        List<WayPointTypedraftl = this.getViaPoint();
        draftl.addAll(value);
    }
New to GrepCode? Check out our FAQ X