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, v2.2.11 
  // 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: 2015.03.28 at 10:20:34 AM CET 
  //
  
  
  package net.opengis.iso19139.gmd.v_20060504;
 
Geographic area of the entire dataset referenced to WGS 84

Java class for EX_GeographicBoundingBox_Type complex type.

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

 <complexType name="EX_GeographicBoundingBox_Type">
   <complexContent>
     <extension base="{http://www.isotc211.org/2005/gmd}AbstractEX_GeographicExtent_Type">
       <sequence>
         <element name="westBoundLongitude" type="{http://www.isotc211.org/2005/gco}Decimal_PropertyType"/>
         <element name="eastBoundLongitude" type="{http://www.isotc211.org/2005/gco}Decimal_PropertyType"/>
         <element name="southBoundLatitude" type="{http://www.isotc211.org/2005/gco}Decimal_PropertyType"/>
         <element name="northBoundLatitude" type="{http://www.isotc211.org/2005/gco}Decimal_PropertyType"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "EX_GeographicBoundingBox_Type", propOrder = {
     "westBoundLongitude",
     "eastBoundLongitude",
     "southBoundLatitude",
     "northBoundLatitude"
 })
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(required = true)
     @XmlElement(required = true)
     @XmlElement(required = true)
     @XmlElement(required = true)
     protected DecimalPropertyType northBoundLatitude;

    
Gets the value of the westBoundLongitude property.

Returns:
possible object is
 
         return ;
     }

    
Sets the value of the westBoundLongitude property.

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

    
Gets the value of the eastBoundLongitude property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the eastBoundLongitude property.

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

    
Gets the value of the southBoundLatitude property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the southBoundLatitude property.

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

    
Gets the value of the northBoundLatitude property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the northBoundLatitude property.

Parameters:
value allowed object is
    public void setNorthBoundLatitude(DecimalPropertyType 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);
        {
            DecimalPropertyType theWestBoundLongitude;
            theWestBoundLongitude = this.getWestBoundLongitude();
            strategy.appendField(locatorthis"westBoundLongitude"buffertheWestBoundLongitude);
        }
        {
            DecimalPropertyType theEastBoundLongitude;
            theEastBoundLongitude = this.getEastBoundLongitude();
            strategy.appendField(locatorthis"eastBoundLongitude"buffertheEastBoundLongitude);
        }
        {
            DecimalPropertyType theSouthBoundLatitude;
            theSouthBoundLatitude = this.getSouthBoundLatitude();
            strategy.appendField(locatorthis"southBoundLatitude"buffertheSouthBoundLatitude);
        }
        {
            DecimalPropertyType theNorthBoundLatitude;
            theNorthBoundLatitude = this.getNorthBoundLatitude();
            strategy.appendField(locatorthis"northBoundLatitude"buffertheNorthBoundLatitude);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof EXGeographicBoundingBoxType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final EXGeographicBoundingBoxType that = ((EXGeographicBoundingBoxTypeobject);
        {
            DecimalPropertyType lhsWestBoundLongitude;
            lhsWestBoundLongitude = this.getWestBoundLongitude();
            DecimalPropertyType rhsWestBoundLongitude;
            rhsWestBoundLongitude = that.getWestBoundLongitude();
            if (!strategy.equals(LocatorUtils.property(thisLocator"westBoundLongitude"lhsWestBoundLongitude), LocatorUtils.property(thatLocator"westBoundLongitude"rhsWestBoundLongitude), lhsWestBoundLongituderhsWestBoundLongitude)) {
                return false;
            }
        }
        {
            DecimalPropertyType lhsEastBoundLongitude;
            lhsEastBoundLongitude = this.getEastBoundLongitude();
            DecimalPropertyType rhsEastBoundLongitude;
            rhsEastBoundLongitude = that.getEastBoundLongitude();
            if (!strategy.equals(LocatorUtils.property(thisLocator"eastBoundLongitude"lhsEastBoundLongitude), LocatorUtils.property(thatLocator"eastBoundLongitude"rhsEastBoundLongitude), lhsEastBoundLongituderhsEastBoundLongitude)) {
                return false;
            }
        }
        {
            DecimalPropertyType lhsSouthBoundLatitude;
            lhsSouthBoundLatitude = this.getSouthBoundLatitude();
            DecimalPropertyType rhsSouthBoundLatitude;
            rhsSouthBoundLatitude = that.getSouthBoundLatitude();
            if (!strategy.equals(LocatorUtils.property(thisLocator"southBoundLatitude"lhsSouthBoundLatitude), LocatorUtils.property(thatLocator"southBoundLatitude"rhsSouthBoundLatitude), lhsSouthBoundLatituderhsSouthBoundLatitude)) {
                return false;
            }
        }
        {
            DecimalPropertyType lhsNorthBoundLatitude;
            lhsNorthBoundLatitude = this.getNorthBoundLatitude();
            DecimalPropertyType rhsNorthBoundLatitude;
            rhsNorthBoundLatitude = that.getNorthBoundLatitude();
            if (!strategy.equals(LocatorUtils.property(thisLocator"northBoundLatitude"lhsNorthBoundLatitude), LocatorUtils.property(thatLocator"northBoundLatitude"rhsNorthBoundLatitude), lhsNorthBoundLatituderhsNorthBoundLatitude)) {
                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);
        {
            DecimalPropertyType theWestBoundLongitude;
            theWestBoundLongitude = this.getWestBoundLongitude();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"westBoundLongitude"theWestBoundLongitude), currentHashCodetheWestBoundLongitude);
        }
        {
            DecimalPropertyType theEastBoundLongitude;
            theEastBoundLongitude = this.getEastBoundLongitude();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"eastBoundLongitude"theEastBoundLongitude), currentHashCodetheEastBoundLongitude);
        }
        {
            DecimalPropertyType theSouthBoundLatitude;
            theSouthBoundLatitude = this.getSouthBoundLatitude();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"southBoundLatitude"theSouthBoundLatitude), currentHashCodetheSouthBoundLatitude);
        }
        {
            DecimalPropertyType theNorthBoundLatitude;
            theNorthBoundLatitude = this.getNorthBoundLatitude();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"northBoundLatitude"theNorthBoundLatitude), currentHashCodetheNorthBoundLatitude);
        }
        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 EXGeographicBoundingBoxType) {
            final EXGeographicBoundingBoxType copy = ((EXGeographicBoundingBoxTypedraftCopy);
            if (this.!= null) {
                DecimalPropertyType sourceWestBoundLongitude;
                sourceWestBoundLongitude = this.getWestBoundLongitude();
                DecimalPropertyType copyWestBoundLongitude = ((DecimalPropertyTypestrategy.copy(LocatorUtils.property(locator"westBoundLongitude"sourceWestBoundLongitude), sourceWestBoundLongitude));
                copy.setWestBoundLongitude(copyWestBoundLongitude);
            } else {
                copy.westBoundLongitude = null;
            }
            if (this.!= null) {
                DecimalPropertyType sourceEastBoundLongitude;
                sourceEastBoundLongitude = this.getEastBoundLongitude();
                DecimalPropertyType copyEastBoundLongitude = ((DecimalPropertyTypestrategy.copy(LocatorUtils.property(locator"eastBoundLongitude"sourceEastBoundLongitude), sourceEastBoundLongitude));
                copy.setEastBoundLongitude(copyEastBoundLongitude);
            } else {
                copy.eastBoundLongitude = null;
            }
            if (this.!= null) {
                DecimalPropertyType sourceSouthBoundLatitude;
                sourceSouthBoundLatitude = this.getSouthBoundLatitude();
                DecimalPropertyType copySouthBoundLatitude = ((DecimalPropertyTypestrategy.copy(LocatorUtils.property(locator"southBoundLatitude"sourceSouthBoundLatitude), sourceSouthBoundLatitude));
                copy.setSouthBoundLatitude(copySouthBoundLatitude);
            } else {
                copy.southBoundLatitude = null;
            }
            if (this.!= null) {
                DecimalPropertyType sourceNorthBoundLatitude;
                sourceNorthBoundLatitude = this.getNorthBoundLatitude();
                DecimalPropertyType copyNorthBoundLatitude = ((DecimalPropertyTypestrategy.copy(LocatorUtils.property(locator"northBoundLatitude"sourceNorthBoundLatitude), sourceNorthBoundLatitude));
                copy.setNorthBoundLatitude(copyNorthBoundLatitude);
            } else {
                copy.northBoundLatitude = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new EXGeographicBoundingBoxType();
    }
    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 EXGeographicBoundingBoxType) {
            final EXGeographicBoundingBoxType target = this;
            final EXGeographicBoundingBoxType leftObject = ((EXGeographicBoundingBoxTypeleft);
            final EXGeographicBoundingBoxType rightObject = ((EXGeographicBoundingBoxTyperight);
            {
                DecimalPropertyType lhsWestBoundLongitude;
                lhsWestBoundLongitude = leftObject.getWestBoundLongitude();
                DecimalPropertyType rhsWestBoundLongitude;
                rhsWestBoundLongitude = rightObject.getWestBoundLongitude();
                DecimalPropertyType mergedWestBoundLongitude = ((DecimalPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"westBoundLongitude"lhsWestBoundLongitude), LocatorUtils.property(rightLocator"westBoundLongitude"rhsWestBoundLongitude), lhsWestBoundLongituderhsWestBoundLongitude));
                target.setWestBoundLongitude(mergedWestBoundLongitude);
            }
            {
                DecimalPropertyType lhsEastBoundLongitude;
                lhsEastBoundLongitude = leftObject.getEastBoundLongitude();
                DecimalPropertyType rhsEastBoundLongitude;
                rhsEastBoundLongitude = rightObject.getEastBoundLongitude();
                DecimalPropertyType mergedEastBoundLongitude = ((DecimalPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"eastBoundLongitude"lhsEastBoundLongitude), LocatorUtils.property(rightLocator"eastBoundLongitude"rhsEastBoundLongitude), lhsEastBoundLongituderhsEastBoundLongitude));
                target.setEastBoundLongitude(mergedEastBoundLongitude);
            }
            {
                DecimalPropertyType lhsSouthBoundLatitude;
                lhsSouthBoundLatitude = leftObject.getSouthBoundLatitude();
                DecimalPropertyType rhsSouthBoundLatitude;
                rhsSouthBoundLatitude = rightObject.getSouthBoundLatitude();
                DecimalPropertyType mergedSouthBoundLatitude = ((DecimalPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"southBoundLatitude"lhsSouthBoundLatitude), LocatorUtils.property(rightLocator"southBoundLatitude"rhsSouthBoundLatitude), lhsSouthBoundLatituderhsSouthBoundLatitude));
                target.setSouthBoundLatitude(mergedSouthBoundLatitude);
            }
            {
                DecimalPropertyType lhsNorthBoundLatitude;
                lhsNorthBoundLatitude = leftObject.getNorthBoundLatitude();
                DecimalPropertyType rhsNorthBoundLatitude;
                rhsNorthBoundLatitude = rightObject.getNorthBoundLatitude();
                DecimalPropertyType mergedNorthBoundLatitude = ((DecimalPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"northBoundLatitude"lhsNorthBoundLatitude), LocatorUtils.property(rightLocator"northBoundLatitude"rhsNorthBoundLatitude), lhsNorthBoundLatituderhsNorthBoundLatitude));
                target.setNorthBoundLatitude(mergedNorthBoundLatitude);
            }
        }
    }
        setWestBoundLongitude(value);
        return this;
    }
        setEastBoundLongitude(value);
        return this;
    }
        setSouthBoundLatitude(value);
        return this;
    }
        setNorthBoundLatitude(value);
        return this;
    }
    @Override
        setExtentTypeCode(value);
        return this;
    }
    @Override
    public EXGeographicBoundingBoxType withId(String value) {
        setId(value);
        return this;
    }
    @Override
    public EXGeographicBoundingBoxType withUuid(String value) {
        setUuid(value);
        return this;
    }
New to GrepCode? Check out our FAQ X