@Override public final void setTerminationTime(Date value) { this.jaxbTypeObj.setTerminationTime(WsrfbfUtils.toXMLGregorianCalendar(value, RenewResponseImpl.logger)); }
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); } } }
/** * Default constructor */ protected RenewResponseImpl(Date termTime) { this.jaxbTypeObj = WsnbJAXBContext.WSNB_JAXB_FACTORY.createRenewResponse(); this.jaxbTypeObj.setTerminationTime(WsrfbfUtils.toXMLGregorianCalendar(termTime, RenewResponseImpl.logger)); }
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; } }