/** * Create an instance of {@link SubscribeResponse } * */ public SubscribeResponse createSubscribeResponse() { return new SubscribeResponse(); }
public void hashCode(HashCodeBuilder hashCodeBuilder) { hashCodeBuilder.append(this.getSubscriptionReference()); hashCodeBuilder.append(this.getCurrentTime()); hashCodeBuilder.append(this.getTerminationTime()); hashCodeBuilder.append(this.getAny()); }
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.setSubscriptionReference(EndpointReferenceTypeImpl.toJaxbModel(apiTypeObj.getSubscriptionReference())); jaxbTypeObj.setCurrentTime(WsrfbfUtils.toXMLGregorianCalendar(apiCurrentTime,SubscribeResponseImpl.logger)); jaxbTypeObj.setTerminationTime(WsrfbfUtils.toXMLGregorianCalendar(apiTerminationTime,SubscribeResponseImpl.logger));
@Override public final void setSubscriptionReference(EndpointReferenceType value) { this.jaxbTypeObj.setSubscriptionReference(EndpointReferenceTypeImpl.toJaxbModel(value)); }
@Override public final EndpointReferenceType getSubscriptionReference() { return WsaUtils.fromJaxbModelEndpointToApiEndpoint(this.jaxbTypeObj.getSubscriptionReference(),this.getClass()); }
public void setTerminationTime(final 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); } }
@Override public final Date getCurrentTime() { Date currentTime = null; XMLGregorianCalendar jaxbCurrTime = this.jaxbTypeObj.getCurrentTime(); if (jaxbCurrTime != null){ currentTime = jaxbCurrTime.toGregorianCalendar().getTime(); } return currentTime; }
@Override public final Date getTerminationTime() { Date terminationTime = null; XMLGregorianCalendar jaxbTermTime = this.jaxbTypeObj.getTerminationTime(); if (jaxbTermTime != null){ terminationTime = jaxbTermTime.toGregorianCalendar().getTime(); } return terminationTime; }
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); } }
public boolean equals(Object object) { if (!(object instanceof SubscribeResponse)) { 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); }
public void setSubscriptionReference(final EndpointReferenceType ref) { ((AbstractSchemaElementImpl<?>)ref).setParent(this); this.eprSubscription = ref; this.model.setSubscriptionReference((com.ebmwebsourcing.wsstar.jaxb.addressing.EndpointReferenceType) ((AbstractSchemaElementImpl<?>)ref).getModel()); }
public SubscribeResponseImpl(final com.ebmwebsourcing.wsstar.jaxb.notification.base.SubscribeResponse model, final AbstractSchemaElementImpl<?> parent) throws WSNotificationException { super(model,parent); try { if (model.getSubscriptionReference() != null) { this.eprSubscription = new EndpointReferenceTypeImpl(model.getSubscriptionReference(),this); } } catch (final WSAddressingException e) { throw new WSNotificationException(e); } }
@Override public final void setTerminationTime(Date termTime) { this.jaxbTypeObj.setTerminationTime(WsrfbfUtils.toXMLGregorianCalendar(termTime, SubscribeResponseImpl.logger)); }
public Date getCurrentTime() { final XMLGregorianCalendar objFromModel = this.model.getCurrentTime(); return objFromModel!= null? objFromModel.toGregorianCalendar().getTime() : null; }
public Date getTerminationTime() { final XMLGregorianCalendar objFromModel = this.model.getTerminationTime(); return objFromModel!= null? objFromModel.toGregorianCalendar().getTime() : null; }
@Override public final void setCurrentTime(Date value) { this.jaxbTypeObj.setCurrentTime(WsrfbfUtils.toXMLGregorianCalendar(value, SubscribeResponseImpl.logger)); }