Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  //
  // Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6 generiert 
  // Siehe <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
  // Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. 
  // Generiert: 2013.01.31 um 01:29:25 AM CET 
  //
  
  
  package net.opengis.xls.v_1_1_0;
 

Java-Klasse für TimeStampType complex type.

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.

 <complexType name="TimeStampType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <attribute name="begin" use="required" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
       <attribute name="duration" type="{http://www.w3.org/2001/XMLSchema}duration" />
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "TimeStampType")
     TimeType.class
 })
 public class TimeStampType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlAttribute(name = "begin", required = true)
     @XmlSchemaType(name = "dateTime")
     protected XMLGregorianCalendar begin;
     @XmlAttribute(name = "duration")
     protected Duration duration;

    
Ruft den Wert der begin-Eigenschaft ab.

Returns:
possible object is
 
     public XMLGregorianCalendar getBegin() {
         return ;
     }

    
Legt den Wert der begin-Eigenschaft fest.

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

    
Ruft den Wert der duration-Eigenschaft ab.

Returns:
possible object is
    public Duration getDuration() {
        return ;
    }

    
Legt den Wert der duration-Eigenschaft fest.

Parameters:
value allowed object is
    public void setDuration(Duration 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) {
        {
            XMLGregorianCalendar theBegin;
            theBegin = this.getBegin();
            strategy.appendField(locatorthis"begin"buffertheBegin);
        }
        {
            Duration theDuration;
            theDuration = this.getDuration();
            strategy.appendField(locatorthis"duration"buffertheDuration);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof TimeStampType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final TimeStampType that = ((TimeStampTypeobject);
        {
            XMLGregorianCalendar lhsBegin;
            lhsBegin = this.getBegin();
            XMLGregorianCalendar rhsBegin;
            rhsBegin = that.getBegin();
            if (!strategy.equals(LocatorUtils.property(thisLocator"begin"lhsBegin), LocatorUtils.property(thatLocator"begin"rhsBegin), lhsBeginrhsBegin)) {
                return false;
            }
        }
        {
            Duration lhsDuration;
            lhsDuration = this.getDuration();
            Duration rhsDuration;
            rhsDuration = that.getDuration();
            if (!strategy.equals(LocatorUtils.property(thisLocator"duration"lhsDuration), LocatorUtils.property(thatLocator"duration"rhsDuration), lhsDurationrhsDuration)) {
                return false;
            }
        }
        return true;
    }
    public boolean equals(Object object) {
        final EqualsStrategy strategy = .;
        return equals(nullnullobjectstrategy);
    }
    public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
        int currentHashCode = 1;
        {
            XMLGregorianCalendar theBegin;
            theBegin = this.getBegin();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"begin"theBegin), currentHashCodetheBegin);
        }
        {
            Duration theDuration;
            theDuration = this.getDuration();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"duration"theDuration), currentHashCodetheDuration);
        }
        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);
        if (draftCopy instanceof TimeStampType) {
            final TimeStampType copy = ((TimeStampTypedraftCopy);
            if (this.!= null) {
                XMLGregorianCalendar sourceBegin;
                sourceBegin = this.getBegin();
                XMLGregorianCalendar copyBegin = ((XMLGregorianCalendarstrategy.copy(LocatorUtils.property(locator"begin"sourceBegin), sourceBegin));
                copy.setBegin(copyBegin);
            } else {
                copy.begin = null;
            }
            if (this.!= null) {
                Duration sourceDuration;
                sourceDuration = this.getDuration();
                Duration copyDuration = ((Durationstrategy.copy(LocatorUtils.property(locator"duration"sourceDuration), sourceDuration));
                copy.setDuration(copyDuration);
            } else {
                copy.duration = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new TimeStampType();
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        if (right instanceof TimeStampType) {
            final TimeStampType target = this;
            final TimeStampType leftObject = ((TimeStampTypeleft);
            final TimeStampType rightObject = ((TimeStampTyperight);
            {
                XMLGregorianCalendar lhsBegin;
                lhsBegin = leftObject.getBegin();
                XMLGregorianCalendar rhsBegin;
                rhsBegin = rightObject.getBegin();
                target.setBegin(((XMLGregorianCalendarstrategy.merge(LocatorUtils.property(leftLocator"begin"lhsBegin), LocatorUtils.property(rightLocator"begin"rhsBegin), lhsBeginrhsBegin)));
            }
            {
                Duration lhsDuration;
                lhsDuration = leftObject.getDuration();
                Duration rhsDuration;
                rhsDuration = rightObject.getDuration();
                target.setDuration(((Durationstrategy.merge(LocatorUtils.property(leftLocator"duration"lhsDuration), LocatorUtils.property(rightLocator"duration"rhsDuration), lhsDurationrhsDuration)));
            }
        }
    }
New to GrepCode? Check out our FAQ X