/** * Create an instance of {@link UnacceptableTerminationTimeFaultType } * */ public UnacceptableTerminationTimeFaultType createUnacceptableTerminationTimeFaultType() { return new UnacceptableTerminationTimeFaultType(); }
public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof UnacceptableTerminationTimeFaultType)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } super.equals(object, equalsBuilder); final UnacceptableTerminationTimeFaultType that = ((UnacceptableTerminationTimeFaultType) object); equalsBuilder.append(this.getMinimumTime(), that.getMinimumTime()); equalsBuilder.append(this.getMaximumTime(), that.getMaximumTime()); }
public Object copyTo(Object target, CopyBuilder copyBuilder) { final UnacceptableTerminationTimeFaultType copy = ((target == null)?new UnacceptableTerminationTimeFaultType():((UnacceptableTerminationTimeFaultType) target)); super.copyTo(copy, copyBuilder); { XMLGregorianCalendar sourceMinimumTime; sourceMinimumTime = this.getMinimumTime(); XMLGregorianCalendar copyMinimumTime = ((XMLGregorianCalendar) copyBuilder.copy(sourceMinimumTime)); copy.setMinimumTime(copyMinimumTime); } { XMLGregorianCalendar sourceMaximumTime; sourceMaximumTime = this.getMaximumTime(); XMLGregorianCalendar copyMaximumTime = ((XMLGregorianCalendar) copyBuilder.copy(sourceMaximumTime)); copy.setMaximumTime(copyMaximumTime); } return copy; }
/** * Default constructor * * Note : According to the xml schema the "timestamp" field is mandatory * * @param timestamp the timestamp of the {@link UnacceptableTerminationTimeFaultType) object that must * be {@link Date} representation of an Date xml type. * @param minTerminationTime TODO */ protected UnacceptableTerminationTimeFaultTypeImpl(Date timestamp, Date minTerminationTime){ super(Logger.getLogger(UnacceptableTerminationTimeFaultTypeImpl.class.getSimpleName())); com.ebmwebsourcing.wsstar.jaxb.notification.base.UnacceptableTerminationTimeFaultType jaxbTypeObj = new com.ebmwebsourcing.wsstar.jaxb.notification.base.UnacceptableTerminationTimeFaultType(); jaxbTypeObj.setTimestamp(WsrfbfUtils.toXMLGregorianCalendar(timestamp, this.getLogger())); jaxbTypeObj.setMinimumTime(WsrfbfUtils.toXMLGregorianCalendar(minTerminationTime, this.getLogger())); this.setJaxbTypeObj(jaxbTypeObj); }
jaxbTypeObj.setMinimumTime(WsrfbfUtils.toXMLGregorianCalendar(minTime, Logger.getLogger(UnacceptableTerminationTimeFaultTypeImpl.class.getSimpleName()))); jaxbTypeObj.setMaximumTime(WsrfbfUtils.toXMLGregorianCalendar(maxTime, Logger.getLogger(UnacceptableTerminationTimeFaultTypeImpl.class.getSimpleName())));
public void setMaximumTime(Date value) throws WSNotificationException { GregorianCalendar gCal = new GregorianCalendar(); gCal.setTime(value); try { ((com.ebmwebsourcing.wsstar.jaxb.notification.base.UnacceptableTerminationTimeFaultType)this.model) .setMaximumTime(DatatypeFactory.newInstance().newXMLGregorianCalendar(gCal)); } catch (DatatypeConfigurationException e) { throw new WSNotificationException(e); } }
public void setMinimumTime(Date value) throws WSNotificationException { GregorianCalendar gCal = new GregorianCalendar(); gCal.setTime(value); try { ((com.ebmwebsourcing.wsstar.jaxb.notification.base.UnacceptableTerminationTimeFaultType)this.model) .setMinimumTime(DatatypeFactory.newInstance().newXMLGregorianCalendar(gCal)); } catch (DatatypeConfigurationException e) { throw new WSNotificationException(e); } }
public Date getMaximumTime() throws WSNotificationException { Date result = null; XMLGregorianCalendar xmlGCal = ((com.ebmwebsourcing.wsstar.jaxb.notification.base.UnacceptableTerminationTimeFaultType)this.model).getMaximumTime(); if (xmlGCal != null) result = xmlGCal.toGregorianCalendar().getTime(); return result; }
public Date getMinimumTime() throws WSNotificationException { Date result = null; XMLGregorianCalendar xmlGCal = ((com.ebmwebsourcing.wsstar.jaxb.notification.base.UnacceptableTerminationTimeFaultType)this.model).getMinimumTime(); if (xmlGCal != null) result = xmlGCal.toGregorianCalendar().getTime(); return result; }
public boolean equals(Object object) { if (!(object instanceof UnacceptableTerminationTimeFaultType)) { return false; } if (this == object) { return true; } final EqualsBuilder equalsBuilder = new JAXBEqualsBuilder(); equals(object, equalsBuilder); return equalsBuilder.isEquals(); }
public String toString() { final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this); toString(toStringBuilder); return toStringBuilder.toString(); }
public int hashCode() { final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder(); hashCode(hashCodeBuilder); return hashCodeBuilder.toHashCode(); }
public Object copyTo(Object target) { final CopyBuilder copyBuilder = new JAXBCopyBuilder(); return copyTo(target, copyBuilder); }
public void setMaximumTime(Date value) throws WSNotificationException { GregorianCalendar gCal = new GregorianCalendar(); gCal.setTime(value); try { ((com.ebmwebsourcing.wsstar.jaxb.notification.base.UnacceptableTerminationTimeFaultType)this.model) .setMaximumTime(DatatypeFactory.newInstance().newXMLGregorianCalendar(gCal)); } catch (DatatypeConfigurationException e) { throw new WSNotificationException(e); } }
public void setMinimumTime(Date value) throws WSNotificationException { GregorianCalendar gCal = new GregorianCalendar(); gCal.setTime(value); try { ((com.ebmwebsourcing.wsstar.jaxb.notification.base.UnacceptableTerminationTimeFaultType)this.model) .setMinimumTime(DatatypeFactory.newInstance().newXMLGregorianCalendar(gCal)); } catch (DatatypeConfigurationException e) { throw new WSNotificationException(e); } }
public Date getMaximumTime() throws WSNotificationException { Date result = null; XMLGregorianCalendar xmlGCal = ((com.ebmwebsourcing.wsstar.jaxb.notification.base.UnacceptableTerminationTimeFaultType)this.model).getMaximumTime(); if (xmlGCal != null) result = xmlGCal.toGregorianCalendar().getTime(); return result; }
public Date getMinimumTime() throws WSNotificationException { Date result = null; XMLGregorianCalendar xmlGCal = ((com.ebmwebsourcing.wsstar.jaxb.notification.base.UnacceptableTerminationTimeFaultType)this.model).getMinimumTime(); if (xmlGCal != null) result = xmlGCal.toGregorianCalendar().getTime(); return result; }
public void hashCode(HashCodeBuilder hashCodeBuilder) { super.hashCode(hashCodeBuilder); hashCodeBuilder.append(this.getMinimumTime()); hashCodeBuilder.append(this.getMaximumTime()); }
@Override public final void setMaximumTime(Date value) { ((com.ebmwebsourcing.wsstar.jaxb.notification.base.UnacceptableTerminationTimeFaultType) this.getJaxbTypeObj()).setMaximumTime(WsrfbfUtils.toXMLGregorianCalendar(value, this.getLogger())); }
@Override public final void setMinimumTime(Date value) { ((com.ebmwebsourcing.wsstar.jaxb.notification.base.UnacceptableTerminationTimeFaultType) this.getJaxbTypeObj()).setMinimumTime(WsrfbfUtils.toXMLGregorianCalendar(value, this.getLogger())); };