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;
 

Java-Klasse für ClipType complex type.

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

 <complexType name="ClipType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <choice>
         <element ref="{http://www.opengis.net/gml}Polygon"/>
         <element ref="{http://www.opengis.net/gml}CircleByCenterPoint"/>
         <element name="LineCorridor" type="{http://www.opengis.net/xls}LineCorridorType"/>
       </choice>
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "ClipType", propOrder = {
     "polygon",
     "circleByCenterPoint",
     "lineCorridor"
 })
 public class ClipType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(name = "Polygon", namespace = "http://www.opengis.net/gml")
     protected PolygonType polygon;
     @XmlElement(name = "CircleByCenterPoint", namespace = "http://www.opengis.net/gml")
     @XmlElement(name = "LineCorridor")
     protected LineCorridorType lineCorridor;

    
Clips the portrayed map with a polygon

Returns:
possible object is
 
     public PolygonType getPolygon() {
         return ;
     }

    
Legt den Wert der polygon-Eigenschaft fest.

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

    
Clips the portrayed map with a circle

Returns:
possible object is
        return ;
    }

    
Legt den Wert der circleByCenterPoint-Eigenschaft fest.

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

    
Ruft den Wert der lineCorridor-Eigenschaft ab.

Returns:
possible object is
    public LineCorridorType getLineCorridor() {
        return ;
    }

    
Legt den Wert der lineCorridor-Eigenschaft fest.

Parameters:
value allowed object is
    public void setLineCorridor(LineCorridorType 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) {
        {
            PolygonType thePolygon;
            thePolygon = this.getPolygon();
            strategy.appendField(locatorthis"polygon"bufferthePolygon);
        }
        {
            CircleByCenterPointType theCircleByCenterPoint;
            theCircleByCenterPoint = this.getCircleByCenterPoint();
            strategy.appendField(locatorthis"circleByCenterPoint"buffertheCircleByCenterPoint);
        }
        {
            LineCorridorType theLineCorridor;
            theLineCorridor = this.getLineCorridor();
            strategy.appendField(locatorthis"lineCorridor"buffertheLineCorridor);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof ClipType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final ClipType that = ((ClipTypeobject);
        {
            PolygonType lhsPolygon;
            lhsPolygon = this.getPolygon();
            PolygonType rhsPolygon;
            rhsPolygon = that.getPolygon();
            if (!strategy.equals(LocatorUtils.property(thisLocator"polygon"lhsPolygon), LocatorUtils.property(thatLocator"polygon"rhsPolygon), lhsPolygonrhsPolygon)) {
                return false;
            }
        }
        {
            CircleByCenterPointType lhsCircleByCenterPoint;
            lhsCircleByCenterPoint = this.getCircleByCenterPoint();
            CircleByCenterPointType rhsCircleByCenterPoint;
            rhsCircleByCenterPoint = that.getCircleByCenterPoint();
            if (!strategy.equals(LocatorUtils.property(thisLocator"circleByCenterPoint"lhsCircleByCenterPoint), LocatorUtils.property(thatLocator"circleByCenterPoint"rhsCircleByCenterPoint), lhsCircleByCenterPointrhsCircleByCenterPoint)) {
                return false;
            }
        }
        {
            LineCorridorType lhsLineCorridor;
            lhsLineCorridor = this.getLineCorridor();
            LineCorridorType rhsLineCorridor;
            rhsLineCorridor = that.getLineCorridor();
            if (!strategy.equals(LocatorUtils.property(thisLocator"lineCorridor"lhsLineCorridor), LocatorUtils.property(thatLocator"lineCorridor"rhsLineCorridor), lhsLineCorridorrhsLineCorridor)) {
                return false;
            }
        }
        return true;
    }
    public boolean equals(Object object) {
        final EqualsStrategy strategy = .;
        return equals(nullnullobjectstrategy);
    }
    public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
        int currentHashCode = 1;
        {
            PolygonType thePolygon;
            thePolygon = this.getPolygon();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"polygon"thePolygon), currentHashCodethePolygon);
        }
        {
            CircleByCenterPointType theCircleByCenterPoint;
            theCircleByCenterPoint = this.getCircleByCenterPoint();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"circleByCenterPoint"theCircleByCenterPoint), currentHashCodetheCircleByCenterPoint);
        }
        {
            LineCorridorType theLineCorridor;
            theLineCorridor = this.getLineCorridor();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"lineCorridor"theLineCorridor), currentHashCodetheLineCorridor);
        }
        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 ClipType) {
            final ClipType copy = ((ClipTypedraftCopy);
            if (this.!= null) {
                PolygonType sourcePolygon;
                sourcePolygon = this.getPolygon();
                PolygonType copyPolygon = ((PolygonTypestrategy.copy(LocatorUtils.property(locator"polygon"sourcePolygon), sourcePolygon));
                copy.setPolygon(copyPolygon);
            } else {
                copy.polygon = null;
            }
            if (this.!= null) {
                CircleByCenterPointType sourceCircleByCenterPoint;
                sourceCircleByCenterPoint = this.getCircleByCenterPoint();
                CircleByCenterPointType copyCircleByCenterPoint = ((CircleByCenterPointTypestrategy.copy(LocatorUtils.property(locator"circleByCenterPoint"sourceCircleByCenterPoint), sourceCircleByCenterPoint));
                copy.setCircleByCenterPoint(copyCircleByCenterPoint);
            } else {
                copy.circleByCenterPoint = null;
            }
            if (this.!= null) {
                LineCorridorType sourceLineCorridor;
                sourceLineCorridor = this.getLineCorridor();
                LineCorridorType copyLineCorridor = ((LineCorridorTypestrategy.copy(LocatorUtils.property(locator"lineCorridor"sourceLineCorridor), sourceLineCorridor));
                copy.setLineCorridor(copyLineCorridor);
            } else {
                copy.lineCorridor = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new ClipType();
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        if (right instanceof ClipType) {
            final ClipType target = this;
            final ClipType leftObject = ((ClipTypeleft);
            final ClipType rightObject = ((ClipTyperight);
            {
                PolygonType lhsPolygon;
                lhsPolygon = leftObject.getPolygon();
                PolygonType rhsPolygon;
                rhsPolygon = rightObject.getPolygon();
                target.setPolygon(((PolygonTypestrategy.merge(LocatorUtils.property(leftLocator"polygon"lhsPolygon), LocatorUtils.property(rightLocator"polygon"rhsPolygon), lhsPolygonrhsPolygon)));
            }
            {
                CircleByCenterPointType lhsCircleByCenterPoint;
                lhsCircleByCenterPoint = leftObject.getCircleByCenterPoint();
                CircleByCenterPointType rhsCircleByCenterPoint;
                rhsCircleByCenterPoint = rightObject.getCircleByCenterPoint();
                target.setCircleByCenterPoint(((CircleByCenterPointTypestrategy.merge(LocatorUtils.property(leftLocator"circleByCenterPoint"lhsCircleByCenterPoint), LocatorUtils.property(rightLocator"circleByCenterPoint"rhsCircleByCenterPoint), lhsCircleByCenterPointrhsCircleByCenterPoint)));
            }
            {
                LineCorridorType lhsLineCorridor;
                lhsLineCorridor = leftObject.getLineCorridor();
                LineCorridorType rhsLineCorridor;
                rhsLineCorridor = rightObject.getLineCorridor();
                target.setLineCorridor(((LineCorridorTypestrategy.merge(LocatorUtils.property(leftLocator"lineCorridor"lhsLineCorridor), LocatorUtils.property(rightLocator"lineCorridor"rhsLineCorridor), lhsLineCorridorrhsLineCorridor)));
            }
        }
    }
New to GrepCode? Check out our FAQ X