public void setCurrentTime(final Date value) throws WSNotificationException { final GregorianCalendar gCalendar = new GregorianCalendar(); gCalendar.setTime(value); XMLGregorianCalendar xmlCalendar; try { xmlCalendar = DatatypeFactory.newInstance().newXMLGregorianCalendar(gCalendar); this.model.setCurrentTime(xmlCalendar); } catch (final DatatypeConfigurationException e) { throw new WSNotificationException(e); } }
@Override public final void setCurrentTime(Date value) { this.jaxbTypeObj.setCurrentTime(WsrfbfUtils.toXMLGregorianCalendar(value, SubscribeResponseImpl.logger)); }
public Object copyTo(Object target, CopyBuilder copyBuilder) { final SubscribeResponse copy = ((target == null)?new SubscribeResponse():((SubscribeResponse) target)); { EndpointReferenceType sourceSubscriptionReference; sourceSubscriptionReference = this.getSubscriptionReference(); EndpointReferenceType copySubscriptionReference = ((EndpointReferenceType) copyBuilder.copy(sourceSubscriptionReference)); copy.setSubscriptionReference(copySubscriptionReference); } { XMLGregorianCalendar sourceCurrentTime; sourceCurrentTime = this.getCurrentTime(); XMLGregorianCalendar copyCurrentTime = ((XMLGregorianCalendar) copyBuilder.copy(sourceCurrentTime)); copy.setCurrentTime(copyCurrentTime); } { XMLGregorianCalendar sourceTerminationTime; sourceTerminationTime = this.getTerminationTime(); XMLGregorianCalendar copyTerminationTime = ((XMLGregorianCalendar) copyBuilder.copy(sourceTerminationTime)); copy.setTerminationTime(copyTerminationTime); } { 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; }
jaxbTypeObj.setCurrentTime(WsrfbfUtils.toXMLGregorianCalendar(apiCurrentTime,SubscribeResponseImpl.logger));