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;
 
Time period covered by the content of the dataset

Java class for EX_TemporalExtent_Type complex type.

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

 <complexType name="EX_TemporalExtent_Type">
   <complexContent>
     <extension base="{http://www.isotc211.org/2005/gco}AbstractObject_Type">
       <sequence>
         <element name="extent" type="{http://www.isotc211.org/2005/gts}TM_Primitive_PropertyType"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "EX_TemporalExtent_Type", propOrder = {
     "extent"
 })
 })
 public class EXTemporalExtentType
     extends AbstractObjectType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(required = true)
     protected TMPrimitivePropertyType extent;

    
Gets the value of the extent property.

Returns:
possible object is
 
     public TMPrimitivePropertyType getExtent() {
         return ;
     }

    
Sets the value of the extent property.

Parameters:
value allowed object is
 
     public void setExtent(TMPrimitivePropertyType 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);
        {
            TMPrimitivePropertyType theExtent;
            theExtent = this.getExtent();
            strategy.appendField(locatorthis"extent"buffertheExtent);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof EXTemporalExtentType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final EXTemporalExtentType that = ((EXTemporalExtentTypeobject);
        {
            TMPrimitivePropertyType lhsExtent;
            lhsExtent = this.getExtent();
            TMPrimitivePropertyType rhsExtent;
            rhsExtent = that.getExtent();
            if (!strategy.equals(LocatorUtils.property(thisLocator"extent"lhsExtent), LocatorUtils.property(thatLocator"extent"rhsExtent), lhsExtentrhsExtent)) {
                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);
        {
            TMPrimitivePropertyType theExtent;
            theExtent = this.getExtent();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"extent"theExtent), currentHashCodetheExtent);
        }
        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 EXTemporalExtentType) {
            final EXTemporalExtentType copy = ((EXTemporalExtentTypedraftCopy);
            if (this.!= null) {
                TMPrimitivePropertyType sourceExtent;
                sourceExtent = this.getExtent();
                TMPrimitivePropertyType copyExtent = ((TMPrimitivePropertyTypestrategy.copy(LocatorUtils.property(locator"extent"sourceExtent), sourceExtent));
                copy.setExtent(copyExtent);
            } else {
                copy.extent = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new EXTemporalExtentType();
    }
    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 EXTemporalExtentType) {
            final EXTemporalExtentType target = this;
            final EXTemporalExtentType leftObject = ((EXTemporalExtentTypeleft);
            final EXTemporalExtentType rightObject = ((EXTemporalExtentTyperight);
            {
                TMPrimitivePropertyType lhsExtent;
                lhsExtent = leftObject.getExtent();
                TMPrimitivePropertyType rhsExtent;
                rhsExtent = rightObject.getExtent();
                TMPrimitivePropertyType mergedExtent = ((TMPrimitivePropertyTypestrategy.merge(LocatorUtils.property(leftLocator"extent"lhsExtent), LocatorUtils.property(rightLocator"extent"rhsExtent), lhsExtentrhsExtent));
                target.setExtent(mergedExtent);
            }
        }
    }
        setExtent(value);
        return this;
    }
    @Override
    public EXTemporalExtentType withId(String value) {
        setId(value);
        return this;
    }
    @Override
    public EXTemporalExtentType withUuid(String value) {
        setUuid(value);
        return this;
    }
New to GrepCode? Check out our FAQ X