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

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

 <complexType name="MapType">
   <complexContent>
     <extension base="{http://www.opengis.net/xls}AbstractDataType">
       <sequence minOccurs="0">
         <element name="Content" type="{http://www.opengis.net/xls}ContentType"/>
         <choice>
           <element name="BBoxContext" type="{http://www.opengis.net/gml}EnvelopeType"/>
           <element name="CenterContext" type="{http://www.opengis.net/xls}CenterContextType"/>
         </choice>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "MapType", propOrder = {
     "content",
     "bBoxContext",
     "centerContext"
 })
     RouteMapType.class
 })
 public class MapType
     extends AbstractDataType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(name = "Content")
     protected ContentType content;
     @XmlElement(name = "BBoxContext")
     protected EnvelopeType bBoxContext;
     @XmlElement(name = "CenterContext")
     protected CenterContextType centerContext;

    
Gets the value of the content property.

Returns:
possible object is
 
     public ContentType getContent() {
         return ;
     }

    
Sets the value of the content property.

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

    
Gets the value of the bBoxContext property.

Returns:
possible object is
    public EnvelopeType getBBoxContext() {
        return ;
    }

    
Sets the value of the bBoxContext property.

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

    
Gets the value of the centerContext property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the centerContext property.

Parameters:
value allowed object is
    public void setCenterContext(CenterContextType 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);
        {
            ContentType theContent;
            theContent = this.getContent();
            strategy.appendField(locatorthis"content"buffertheContent);
        }
        {
            EnvelopeType theBBoxContext;
            theBBoxContext = this.getBBoxContext();
            strategy.appendField(locatorthis"bBoxContext"buffertheBBoxContext);
        }
        {
            CenterContextType theCenterContext;
            theCenterContext = this.getCenterContext();
            strategy.appendField(locatorthis"centerContext"buffertheCenterContext);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof MapType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final MapType that = ((MapTypeobject);
        {
            ContentType lhsContent;
            lhsContent = this.getContent();
            ContentType rhsContent;
            rhsContent = that.getContent();
            if (!strategy.equals(LocatorUtils.property(thisLocator"content"lhsContent), LocatorUtils.property(thatLocator"content"rhsContent), lhsContentrhsContent)) {
                return false;
            }
        }
        {
            EnvelopeType lhsBBoxContext;
            lhsBBoxContext = this.getBBoxContext();
            EnvelopeType rhsBBoxContext;
            rhsBBoxContext = that.getBBoxContext();
            if (!strategy.equals(LocatorUtils.property(thisLocator"bBoxContext"lhsBBoxContext), LocatorUtils.property(thatLocator"bBoxContext"rhsBBoxContext), lhsBBoxContextrhsBBoxContext)) {
                return false;
            }
        }
        {
            CenterContextType lhsCenterContext;
            lhsCenterContext = this.getCenterContext();
            CenterContextType rhsCenterContext;
            rhsCenterContext = that.getCenterContext();
            if (!strategy.equals(LocatorUtils.property(thisLocator"centerContext"lhsCenterContext), LocatorUtils.property(thatLocator"centerContext"rhsCenterContext), lhsCenterContextrhsCenterContext)) {
                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);
        {
            ContentType theContent;
            theContent = this.getContent();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"content"theContent), currentHashCodetheContent);
        }
        {
            EnvelopeType theBBoxContext;
            theBBoxContext = this.getBBoxContext();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"bBoxContext"theBBoxContext), currentHashCodetheBBoxContext);
        }
        {
            CenterContextType theCenterContext;
            theCenterContext = this.getCenterContext();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"centerContext"theCenterContext), currentHashCodetheCenterContext);
        }
        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 MapType) {
            final MapType copy = ((MapTypedraftCopy);
            if (this.!= null) {
                ContentType sourceContent;
                sourceContent = this.getContent();
                ContentType copyContent = ((ContentTypestrategy.copy(LocatorUtils.property(locator"content"sourceContent), sourceContent));
                copy.setContent(copyContent);
            } else {
                copy.content = null;
            }
            if (this.!= null) {
                EnvelopeType sourceBBoxContext;
                sourceBBoxContext = this.getBBoxContext();
                EnvelopeType copyBBoxContext = ((EnvelopeTypestrategy.copy(LocatorUtils.property(locator"bBoxContext"sourceBBoxContext), sourceBBoxContext));
                copy.setBBoxContext(copyBBoxContext);
            } else {
                copy.bBoxContext = null;
            }
            if (this.!= null) {
                CenterContextType sourceCenterContext;
                sourceCenterContext = this.getCenterContext();
                CenterContextType copyCenterContext = ((CenterContextTypestrategy.copy(LocatorUtils.property(locator"centerContext"sourceCenterContext), sourceCenterContext));
                copy.setCenterContext(copyCenterContext);
            } else {
                copy.centerContext = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new MapType();
    }
    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 MapType) {
            final MapType target = this;
            final MapType leftObject = ((MapTypeleft);
            final MapType rightObject = ((MapTyperight);
            {
                ContentType lhsContent;
                lhsContent = leftObject.getContent();
                ContentType rhsContent;
                rhsContent = rightObject.getContent();
                target.setContent(((ContentTypestrategy.merge(LocatorUtils.property(leftLocator"content"lhsContent), LocatorUtils.property(rightLocator"content"rhsContent), lhsContentrhsContent)));
            }
            {
                EnvelopeType lhsBBoxContext;
                lhsBBoxContext = leftObject.getBBoxContext();
                EnvelopeType rhsBBoxContext;
                rhsBBoxContext = rightObject.getBBoxContext();
                target.setBBoxContext(((EnvelopeTypestrategy.merge(LocatorUtils.property(leftLocator"bBoxContext"lhsBBoxContext), LocatorUtils.property(rightLocator"bBoxContext"rhsBBoxContext), lhsBBoxContextrhsBBoxContext)));
            }
            {
                CenterContextType lhsCenterContext;
                lhsCenterContext = leftObject.getCenterContext();
                CenterContextType rhsCenterContext;
                rhsCenterContext = rightObject.getCenterContext();
                target.setCenterContext(((CenterContextTypestrategy.merge(LocatorUtils.property(leftLocator"centerContext"lhsCenterContext), LocatorUtils.property(rightLocator"centerContext"rhsCenterContext), lhsCenterContextrhsCenterContext)));
            }
        }
    }
New to GrepCode? Check out our FAQ X