@Override public final void setTerminationTime(Duration value) { this.jaxbTypeObj.setTerminationTime(value.toString()); }
public void setTerminationTime(Duration value) throws WSNotificationException { this.model.setTerminationTime(value.toString()); }
public void setTerminationTime(Date value) throws WSNotificationException { GregorianCalendar gCal = new GregorianCalendar(); gCal.setTime(value); XMLGregorianCalendar xmlGCal; try { xmlGCal = DatatypeFactory.newInstance().newXMLGregorianCalendar(gCal); } catch (DatatypeConfigurationException e) { throw new WSNotificationException(e); } this.model.setTerminationTime(xmlGCal.toString()); }
@Override public final void setTerminationTime(Date value) { this.jaxbTypeObj.setTerminationTime(WsrfbfUtils.toXMLGregorianCalendar(value, RenewImpl.logger).toString()); }
/** * 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.Renew toJaxbModel(Renew apiTypeObj) { com.ebmwebsourcing.wsstar.jaxb.notification.base.Renew jaxbTypeObj = null; if (apiTypeObj instanceof RenewImpl){ jaxbTypeObj = ((RenewImpl)apiTypeObj).getJaxbTypeObj(); } else { jaxbTypeObj = WsnbJAXBContext.WSNB_JAXB_FACTORY.createRenew(); // ~~~~ Set TerminationTime ~~~~~ Object termiTime = apiTypeObj.getTerminationTime(); if (termiTime != null){ if (termiTime instanceof Duration){ jaxbTypeObj.setTerminationTime(((Duration)termiTime).toString()); } else if (termiTime instanceof Date){ jaxbTypeObj.setTerminationTime(((Date)termiTime).toString()); } } } return jaxbTypeObj; } }
public Object copyTo(Object target, CopyBuilder copyBuilder) { final Renew copy = ((target == null)?new Renew():((Renew) target)); { String sourceTerminationTime; sourceTerminationTime = this.getTerminationTime(); String copyTerminationTime = ((String) 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; }