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.04.16 at 07:39:09 AM CEST 
  //
  
  
  package net.opengis.iso19139.gmd.v_20060504;
 

Java class for CI_Date_Type complex type.

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

 <complexType name="CI_Date_Type">
   <complexContent>
     <extension base="{http://www.isotc211.org/2005/gco}AbstractObject_Type">
       <sequence>
         <element name="date" type="{http://www.isotc211.org/2005/gco}Date_PropertyType"/>
         <element name="dateType" type="{http://www.isotc211.org/2005/gmd}CI_DateTypeCode_PropertyType"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "CI_Date_Type", propOrder = {
     "date",
     "dateType"
 })
 public class CIDateType
     extends AbstractObjectType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(required = true)
     protected DatePropertyType date;
     @XmlElement(required = true)
     protected CIDateTypeCodePropertyType dateType;

    
Gets the value of the date property.

Returns:
possible object is
 
     public DatePropertyType getDate() {
         return ;
     }

    
Sets the value of the date property.

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

    
Gets the value of the dateType property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the dateType property.

Parameters:
value allowed object is
    public void setDateType(CIDateTypeCodePropertyType 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);
        {
            DatePropertyType theDate;
            theDate = this.getDate();
            strategy.appendField(locatorthis"date"buffertheDate);
        }
        {
            CIDateTypeCodePropertyType theDateType;
            theDateType = this.getDateType();
            strategy.appendField(locatorthis"dateType"buffertheDateType);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof CIDateType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final CIDateType that = ((CIDateTypeobject);
        {
            DatePropertyType lhsDate;
            lhsDate = this.getDate();
            DatePropertyType rhsDate;
            rhsDate = that.getDate();
            if (!strategy.equals(LocatorUtils.property(thisLocator"date"lhsDate), LocatorUtils.property(thatLocator"date"rhsDate), lhsDaterhsDate)) {
                return false;
            }
        }
        {
            CIDateTypeCodePropertyType lhsDateType;
            lhsDateType = this.getDateType();
            CIDateTypeCodePropertyType rhsDateType;
            rhsDateType = that.getDateType();
            if (!strategy.equals(LocatorUtils.property(thisLocator"dateType"lhsDateType), LocatorUtils.property(thatLocator"dateType"rhsDateType), lhsDateTyperhsDateType)) {
                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);
        {
            DatePropertyType theDate;
            theDate = this.getDate();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"date"theDate), currentHashCodetheDate);
        }
        {
            CIDateTypeCodePropertyType theDateType;
            theDateType = this.getDateType();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"dateType"theDateType), currentHashCodetheDateType);
        }
        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 CIDateType) {
            final CIDateType copy = ((CIDateTypedraftCopy);
            if (this.!= null) {
                DatePropertyType sourceDate;
                sourceDate = this.getDate();
                DatePropertyType copyDate = ((DatePropertyTypestrategy.copy(LocatorUtils.property(locator"date"sourceDate), sourceDate));
                copy.setDate(copyDate);
            } else {
                copy.date = null;
            }
            if (this.!= null) {
                CIDateTypeCodePropertyType sourceDateType;
                sourceDateType = this.getDateType();
                CIDateTypeCodePropertyType copyDateType = ((CIDateTypeCodePropertyTypestrategy.copy(LocatorUtils.property(locator"dateType"sourceDateType), sourceDateType));
                copy.setDateType(copyDateType);
            } else {
                copy.dateType = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new CIDateType();
    }
    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 CIDateType) {
            final CIDateType target = this;
            final CIDateType leftObject = ((CIDateTypeleft);
            final CIDateType rightObject = ((CIDateTyperight);
            {
                DatePropertyType lhsDate;
                lhsDate = leftObject.getDate();
                DatePropertyType rhsDate;
                rhsDate = rightObject.getDate();
                DatePropertyType mergedDate = ((DatePropertyTypestrategy.merge(LocatorUtils.property(leftLocator"date"lhsDate), LocatorUtils.property(rightLocator"date"rhsDate), lhsDaterhsDate));
                target.setDate(mergedDate);
            }
            {
                CIDateTypeCodePropertyType lhsDateType;
                lhsDateType = leftObject.getDateType();
                CIDateTypeCodePropertyType rhsDateType;
                rhsDateType = rightObject.getDateType();
                CIDateTypeCodePropertyType mergedDateType = ((CIDateTypeCodePropertyTypestrategy.merge(LocatorUtils.property(leftLocator"dateType"lhsDateType), LocatorUtils.property(rightLocator"dateType"rhsDateType), lhsDateTyperhsDateType));
                target.setDateType(mergedDateType);
            }
        }
    }
    public CIDateType withDate(DatePropertyType value) {
        setDate(value);
        return this;
    }
        setDateType(value);
        return this;
    }
    @Override
    public CIDateType withId(String value) {
        setId(value);
        return this;
    }
    @Override
    public CIDateType withUuid(String value) {
        setUuid(value);
        return this;
    }
New to GrepCode? Check out our FAQ X