/** * Create an instance of {@link RenewResponse } * */ public RenewResponse createRenewResponse() { return new RenewResponse(); }
public void hashCode(HashCodeBuilder hashCodeBuilder) { hashCodeBuilder.append(this.getTerminationTime()); hashCodeBuilder.append(this.getCurrentTime()); hashCodeBuilder.append(this.getAny()); }
public Object copyTo(Object target, CopyBuilder copyBuilder) { final RenewResponse copy = ((target == null)?new RenewResponse():((RenewResponse) target)); { XMLGregorianCalendar sourceTerminationTime; sourceTerminationTime = this.getTerminationTime(); XMLGregorianCalendar copyTerminationTime = ((XMLGregorianCalendar) copyBuilder.copy(sourceTerminationTime)); copy.setTerminationTime(copyTerminationTime); } { XMLGregorianCalendar sourceCurrentTime; sourceCurrentTime = this.getCurrentTime(); XMLGregorianCalendar copyCurrentTime = ((XMLGregorianCalendar) copyBuilder.copy(sourceCurrentTime)); copy.setCurrentTime(copyCurrentTime); } { List<Object> sourceAny; sourceAny = this.getAny(); List<Object> copyAny = ((List<Object> ) copyBuilder.copy(sourceAny)); copy.any = null; List<Object> uniqueAnyl = copy.getAny(); uniqueAnyl.addAll(copyAny); } return copy; }
/** * A way to create a {@link com.ebmwebsourcing.wsstar.jaxb.notification.base.NotificationMessageHolderType} * "Jaxb model type" object from a {@link NotificationMessageHolderType} "api type" one * @param apiTypeObj * @return */ public static com.ebmwebsourcing.wsstar.jaxb.notification.base.RenewResponse toJaxbModel(RenewResponse apiTypeObj) { com.ebmwebsourcing.wsstar.jaxb.notification.base.RenewResponse jaxbTypeObj = null; if (apiTypeObj instanceof RenewResponseImpl){ jaxbTypeObj = ((RenewResponseImpl)apiTypeObj).getJaxbTypeObj(); } else { jaxbTypeObj = WsnbJAXBContext.WSNB_JAXB_FACTORY.createRenewResponse(); // ~~~~ Set TerminationTime ~~~~~ jaxbTypeObj.setTerminationTime(WsrfbfUtils.toXMLGregorianCalendar(apiTypeObj.getTerminationTime(), RenewResponseImpl.logger)); // ~~~~ Set CurrentTime ~~~~ Date currentTime = apiTypeObj.getCurrentTime(); if (currentTime != null){ jaxbTypeObj.setCurrentTime(WsrfbfUtils.toXMLGregorianCalendar(currentTime, RenewResponseImpl.logger)); } } return jaxbTypeObj; } }
public void setTerminationTime(Date value) throws WSNotificationException { final GregorianCalendar gCalendar = new GregorianCalendar(); gCalendar.setTime(value); XMLGregorianCalendar xmlCalendar; try { xmlCalendar = DatatypeFactory.newInstance().newXMLGregorianCalendar(gCalendar); this.model.setTerminationTime(xmlCalendar); } catch (final DatatypeConfigurationException e) { throw new WSNotificationException(e); } } }
public void setCurrentTime(Date value) throws WSNotificationException { final GregorianCalendar gCalendar = new GregorianCalendar(); gCalendar.setTime(value); XMLGregorianCalendar xmlCalendar; try { xmlCalendar = DatatypeFactory.newInstance().newXMLGregorianCalendar(gCalendar); } catch (DatatypeConfigurationException e) { throw new WSNotificationException(e); } this.model.setCurrentTime(xmlCalendar); }
@Override public final Date getCurrentTime() { Date currentTime = null; XMLGregorianCalendar jaxbCurrentTime = this.jaxbTypeObj.getCurrentTime(); if (jaxbCurrentTime != null){ currentTime = jaxbCurrentTime.toGregorianCalendar().getTime(); } return currentTime; }
public Date getTerminationTime() { Date result = null; XMLGregorianCalendar terminationTimeFromModel = this.model.getTerminationTime(); if (terminationTimeFromModel != null) result = terminationTimeFromModel.toGregorianCalendar().getTime(); return result; }
public int hashCode() { final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder(); hashCode(hashCodeBuilder); return hashCodeBuilder.toHashCode(); }
public String toString() { final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this); toString(toStringBuilder); return toStringBuilder.toString(); }
public boolean equals(Object object) { if (!(object instanceof RenewResponse)) { return false; } if (this == object) { return true; } final EqualsBuilder equalsBuilder = new JAXBEqualsBuilder(); equals(object, equalsBuilder); return equalsBuilder.isEquals(); }
public Object copyTo(Object target) { final CopyBuilder copyBuilder = new JAXBCopyBuilder(); return copyTo(target, copyBuilder); }
@Override public final void setTerminationTime(Date value) { this.jaxbTypeObj.setTerminationTime(WsrfbfUtils.toXMLGregorianCalendar(value, RenewResponseImpl.logger)); }
@Override public final void setCurrentTime(Date value) { this.jaxbTypeObj.setCurrentTime(WsrfbfUtils.toXMLGregorianCalendar(value, RenewResponseImpl.logger)); }
public Date getCurrentTime() { Date result = null; XMLGregorianCalendar currentTimeFromModel = this.model.getCurrentTime(); if (currentTimeFromModel != null) result = currentTimeFromModel.toGregorianCalendar().getTime(); return result; }
@Override public final Date getTerminationTime() { return this.jaxbTypeObj.getTerminationTime().toGregorianCalendar().getTime(); }
public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof RenewResponse)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } final RenewResponse that = ((RenewResponse) object); equalsBuilder.append(this.getTerminationTime(), that.getTerminationTime()); equalsBuilder.append(this.getCurrentTime(), that.getCurrentTime()); equalsBuilder.append(this.getAny(), that.getAny()); }
/** * Default constructor */ protected RenewResponseImpl(Date termTime) { this.jaxbTypeObj = WsnbJAXBContext.WSNB_JAXB_FACTORY.createRenewResponse(); this.jaxbTypeObj.setTerminationTime(WsrfbfUtils.toXMLGregorianCalendar(termTime, RenewResponseImpl.logger)); }
/** * Create an instance of {@link RenewResponse } * */ public RenewResponse createRenewResponse() { return new RenewResponse(); }
public void toString(ToStringBuilder toStringBuilder) { { XMLGregorianCalendar theTerminationTime; theTerminationTime = this.getTerminationTime(); toStringBuilder.append("terminationTime", theTerminationTime); } { XMLGregorianCalendar theCurrentTime; theCurrentTime = this.getCurrentTime(); toStringBuilder.append("currentTime", theCurrentTime); } { List<Object> theAny; theAny = this.getAny(); toStringBuilder.append("any", theAny); } }