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;
 
 import java.util.List;
Extent with respect to date and time

Java class for EX_SpatialTemporalExtent_Type complex type.

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

 <complexType name="EX_SpatialTemporalExtent_Type">
   <complexContent>
     <extension base="{http://www.isotc211.org/2005/gmd}EX_TemporalExtent_Type">
       <sequence>
         <element name="spatialExtent" type="{http://www.isotc211.org/2005/gmd}EX_GeographicExtent_PropertyType" maxOccurs="unbounded"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "EX_SpatialTemporalExtent_Type", propOrder = {
     "spatialExtent"
 })
     extends EXTemporalExtentType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(required = true)
     protected List<EXGeographicExtentPropertyTypespatialExtent;

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

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

    getSpatialExtent().add(newItem);
 

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

 
         if ( == null) {
              = new ArrayList<EXGeographicExtentPropertyType>();
         }
         return this.;
     }
 
    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);
        {
            List<EXGeographicExtentPropertyTypetheSpatialExtent;
            theSpatialExtent = (((this.!= null)&&(!this..isEmpty()))?this.getSpatialExtent():null);
            strategy.appendField(locatorthis"spatialExtent"buffertheSpatialExtent);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof EXSpatialTemporalExtentType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final EXSpatialTemporalExtentType that = ((EXSpatialTemporalExtentTypeobject);
        {
            List<EXGeographicExtentPropertyTypelhsSpatialExtent;
            lhsSpatialExtent = (((this.!= null)&&(!this..isEmpty()))?this.getSpatialExtent():null);
            List<EXGeographicExtentPropertyTyperhsSpatialExtent;
            rhsSpatialExtent = (((that.spatialExtent!= null)&&(!that.spatialExtent.isEmpty()))?that.getSpatialExtent():null);
            if (!strategy.equals(LocatorUtils.property(thisLocator"spatialExtent"lhsSpatialExtent), LocatorUtils.property(thatLocator"spatialExtent"rhsSpatialExtent), lhsSpatialExtentrhsSpatialExtent)) {
                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);
        {
            List<EXGeographicExtentPropertyTypetheSpatialExtent;
            theSpatialExtent = (((this.!= null)&&(!this..isEmpty()))?this.getSpatialExtent():null);
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"spatialExtent"theSpatialExtent), currentHashCodetheSpatialExtent);
        }
        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 EXSpatialTemporalExtentType) {
            final EXSpatialTemporalExtentType copy = ((EXSpatialTemporalExtentTypedraftCopy);
            if ((this.!= null)&&(!this..isEmpty())) {
                List<EXGeographicExtentPropertyTypesourceSpatialExtent;
                sourceSpatialExtent = (((this.!= null)&&(!this..isEmpty()))?this.getSpatialExtent():null);
                @SuppressWarnings("unchecked")
                List<EXGeographicExtentPropertyTypecopySpatialExtent = ((List<EXGeographicExtentPropertyType> ) strategy.copy(LocatorUtils.property(locator"spatialExtent"sourceSpatialExtent), sourceSpatialExtent));
                copy.spatialExtent = null;
                if (copySpatialExtent!= null) {
                    List<EXGeographicExtentPropertyTypeuniqueSpatialExtentl = copy.getSpatialExtent();
                    uniqueSpatialExtentl.addAll(copySpatialExtent);
                }
            } else {
                copy.spatialExtent = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new EXSpatialTemporalExtentType();
    }
    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 EXSpatialTemporalExtentType) {
            final EXSpatialTemporalExtentType target = this;
            final EXSpatialTemporalExtentType leftObject = ((EXSpatialTemporalExtentTypeleft);
            final EXSpatialTemporalExtentType rightObject = ((EXSpatialTemporalExtentTyperight);
            {
                List<EXGeographicExtentPropertyTypelhsSpatialExtent;
                lhsSpatialExtent = (((leftObject.spatialExtent!= null)&&(!leftObject.spatialExtent.isEmpty()))?leftObject.getSpatialExtent():null);
                List<EXGeographicExtentPropertyTyperhsSpatialExtent;
                rhsSpatialExtent = (((rightObject.spatialExtent!= null)&&(!rightObject.spatialExtent.isEmpty()))?rightObject.getSpatialExtent():null);
                List<EXGeographicExtentPropertyTypemergedSpatialExtent = ((List<EXGeographicExtentPropertyType> ) strategy.merge(LocatorUtils.property(leftLocator"spatialExtent"lhsSpatialExtent), LocatorUtils.property(rightLocator"spatialExtent"rhsSpatialExtent), lhsSpatialExtentrhsSpatialExtent));
                target.spatialExtent = null;
                if (mergedSpatialExtent!= null) {
                    List<EXGeographicExtentPropertyTypeuniqueSpatialExtentl = target.getSpatialExtent();
                    uniqueSpatialExtentl.addAll(mergedSpatialExtent);
                }
            }
        }
    }
    public void setSpatialExtent(List<EXGeographicExtentPropertyTypevalue) {
        this. = null;
        List<EXGeographicExtentPropertyTypedraftl = this.getSpatialExtent();
        draftl.addAll(value);
    }
        if (values!= null) {
            for (EXGeographicExtentPropertyType valuevalues) {
                getSpatialExtent().add(value);
            }
        }
        return this;
    }
        if (values!= null) {
            getSpatialExtent().addAll(values);
        }
        return this;
    }
        setSpatialExtent(value);
        return this;
    }
    @Override
        setExtent(value);
        return this;
    }
    @Override
    public EXSpatialTemporalExtentType withId(String value) {
        setId(value);
        return this;
    }
    @Override
    public EXSpatialTemporalExtentType withUuid(String value) {
        setUuid(value);
        return this;
    }
New to GrepCode? Check out our FAQ X