public String getInitialTerminationTime() throws WSNotificationException { String initTermTime = null; final JAXBElement<String> jaxbEltInitTermTime = this.model.getInitialTerminationTime(); if (jaxbEltInitTermTime != null) { initTermTime = jaxbEltInitTermTime.getValue(); } return initTermTime; }
@Override public final Object getInitialTerminationTime() { Object initTermTime = null; JAXBElement<String> jaxbInitTermTime = this.jaxbTypeObj.getInitialTerminationTime(); if (jaxbInitTermTime != null){ String jaxbEltValue = jaxbInitTermTime.getValue(); try { if (jaxbEltValue.startsWith("P")){ initTermTime = DatatypeFactory.newInstance().newDuration(jaxbEltValue); } else if(jaxbEltValue.contains("T")) { initTermTime = DatatypeFactory.newInstance().newXMLGregorianCalendar(jaxbEltValue).toGregorianCalendar().getTime(); } } catch (DatatypeConfigurationException e) { SubscribeImpl.logger.log(Level.WARNING,"The \"InitalTerminaionTime\" field " + "value of the \"Subsrcibe\" payload does correspond to a string representation" + "of a \"Duration\" xml type nor \"DateTime\" xml type (received : " + jaxbEltValue+ ") \n",e); } } return initTermTime; }
public void hashCode(HashCodeBuilder hashCodeBuilder) { hashCodeBuilder.append(this.getConsumerReference()); hashCodeBuilder.append(this.getFilter()); hashCodeBuilder.append(this.getInitialTerminationTime()); hashCodeBuilder.append(this.getSubscriptionPolicy()); hashCodeBuilder.append(this.getAny()); }
public void toString(ToStringBuilder toStringBuilder) { { EndpointReferenceType theConsumerReference; theConsumerReference = this.getConsumerReference(); toStringBuilder.append("consumerReference", theConsumerReference); } { FilterType theFilter; theFilter = this.getFilter(); toStringBuilder.append("filter", theFilter); } { JAXBElement<String> theInitialTerminationTime; theInitialTerminationTime = this.getInitialTerminationTime(); toStringBuilder.append("initialTerminationTime", theInitialTerminationTime); } { Subscribe.SubscriptionPolicy theSubscriptionPolicy; theSubscriptionPolicy = this.getSubscriptionPolicy(); toStringBuilder.append("subscriptionPolicy", theSubscriptionPolicy); } { List<Object> theAny; theAny = this.getAny(); toStringBuilder.append("any", theAny); } }
public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof Subscribe)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } final Subscribe that = ((Subscribe) object); equalsBuilder.append(this.getConsumerReference(), that.getConsumerReference()); equalsBuilder.append(this.getFilter(), that.getFilter()); equalsBuilder.append(this.getInitialTerminationTime(), that.getInitialTerminationTime()); equalsBuilder.append(this.getSubscriptionPolicy(), that.getSubscriptionPolicy()); equalsBuilder.append(this.getAny(), that.getAny()); }
sourceInitialTerminationTime = this.getInitialTerminationTime(); JAXBElement<String> copyInitialTerminationTime = ((JAXBElement<String> ) copyBuilder.copy(sourceInitialTerminationTime)); copy.setInitialTerminationTime(copyInitialTerminationTime);