public Object copyTo(Object target, CopyBuilder copyBuilder) { final NotificationMessageHolderType copy = ((target == null)?new NotificationMessageHolderType():((NotificationMessageHolderType) target)); { EndpointReferenceType sourceSubscriptionReference; sourceSubscriptionReference = this.getSubscriptionReference(); EndpointReferenceType copySubscriptionReference = ((EndpointReferenceType) copyBuilder.copy(sourceSubscriptionReference)); copy.setSubscriptionReference(copySubscriptionReference); } { TopicExpressionType sourceTopic; sourceTopic = this.getTopic(); TopicExpressionType copyTopic = ((TopicExpressionType) copyBuilder.copy(sourceTopic)); copy.setTopic(copyTopic); } { EndpointReferenceType sourceProducerReference; sourceProducerReference = this.getProducerReference(); EndpointReferenceType copyProducerReference = ((EndpointReferenceType) copyBuilder.copy(sourceProducerReference)); copy.setProducerReference(copyProducerReference); } { NotificationMessageHolderType.Message sourceMessage; sourceMessage = this.getMessage(); NotificationMessageHolderType.Message copyMessage = ((NotificationMessageHolderType.Message) copyBuilder.copy(sourceMessage)); copy.setMessage(copyMessage); } return copy; }
public void hashCode(HashCodeBuilder hashCodeBuilder) { hashCodeBuilder.append(this.getSubscriptionReference()); hashCodeBuilder.append(this.getTopic()); hashCodeBuilder.append(this.getProducerReference()); hashCodeBuilder.append(this.getMessage()); }
public NotificationMessageHolderTypeImpl(final com.ebmwebsourcing.wsstar.jaxb.notification.base.NotificationMessageHolderType model, AbstractSchemaElementImpl<?> parent) throws WSNotificationException { super(model, parent); try { if (model.getProducerReference() != null) this.eprProducer = new EndpointReferenceTypeImpl(model.getProducerReference(),this); if (model.getSubscriptionReference() != null) this.eprSubscription = new EndpointReferenceTypeImpl(model.getSubscriptionReference(),this); } catch (WSAddressingException e) { throw new WSNotificationException(e); } }
jaxbTypeObj.setMessage(NotificationMessageHolderTypeImpl.MessageImpl.toJaxbModel(apiTypeObj.getMessage())); jaxbTypeObj.setTopic(TopicExpressionTypeImpl.toJaxbModel(topicExpr)); jaxbTypeObj.setProducerReference(EndpointReferenceTypeImpl.toJaxbModel(producerRef)); jaxbTypeObj.setSubscriptionReference(EndpointReferenceTypeImpl.toJaxbModel(subscriptionRef));
@Override public final void setMessage(Message msg) { this.jaxbTypeObj.setMessage(NotificationMessageHolderTypeImpl.MessageImpl.toJaxbModel(msg)); }
@Override public final TopicExpressionType getTopic() { com.ebmwebsourcing.wsstar.jaxb.notification.base.TopicExpressionType fromJaxbModel = this.jaxbTypeObj.getTopic(); return (fromJaxbModel!=null)?new TopicExpressionTypeImpl(fromJaxbModel):null; }
@Override public final void setSubscriptionReference(EndpointReferenceType endpoint) { this.jaxbTypeObj.setSubscriptionReference(EndpointReferenceTypeImpl.toJaxbModel(endpoint)); }
/** * Create an instance of {@link NotificationMessageHolderType } * */ public NotificationMessageHolderType createNotificationMessageHolderType() { return new NotificationMessageHolderType(); }
@Override public final void setProducerReference(EndpointReferenceType endpoint) { this.jaxbTypeObj.setProducerReference(EndpointReferenceTypeImpl.toJaxbModel(endpoint)); }
@Override public final Message getMessage() { return new NotificationMessageHolderTypeImpl.MessageImpl(this.jaxbTypeObj.getMessage()); }
@Override public final void setTopic(TopicExpressionType concreteTopic) { this.jaxbTypeObj.setTopic(TopicExpressionTypeImpl.toJaxbModel(concreteTopic)); }
@Override public final EndpointReferenceType getSubscriptionReference() { return WsaUtils.fromJaxbModelEndpointToApiEndpoint(this.jaxbTypeObj.getSubscriptionReference(), this.getClass()); }
@Override public final EndpointReferenceType getProducerReference() { return WsaUtils.fromJaxbModelEndpointToApiEndpoint(this.jaxbTypeObj.getProducerReference(),this.getClass()); }
public Object copyTo(Object target) { final CopyBuilder copyBuilder = new JAXBCopyBuilder(); return copyTo(target, copyBuilder); }
public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof NotificationMessageHolderType)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } final NotificationMessageHolderType that = ((NotificationMessageHolderType) object); equalsBuilder.append(this.getSubscriptionReference(), that.getSubscriptionReference()); equalsBuilder.append(this.getTopic(), that.getTopic()); equalsBuilder.append(this.getProducerReference(), that.getProducerReference()); equalsBuilder.append(this.getMessage(), that.getMessage()); }
/** * Default constructor */ protected NotificationMessageHolderTypeImpl(Message message) { this.jaxbTypeObj = WsnbJAXBContext.WSNB_JAXB_FACTORY.createNotificationMessageHolderType(); this.jaxbTypeObj.setMessage(NotificationMessageHolderTypeImpl.MessageImpl.toJaxbModel(message)); }
public TopicExpressionType getTopic() throws WSNotificationException { return new TopicExpressionTypeImpl(this.model.getTopic(), null); }
public void setSubscriptionReference(EndpointReferenceType ref) { ((AbstractSchemaElementImpl<?>)ref).setParent(this); this.eprSubscription = ref; this.model.setSubscriptionReference((com.ebmwebsourcing.wsstar.jaxb.addressing.EndpointReferenceType) ((AbstractSchemaElementImpl<?>) ref).getModel()); }
/** * Create an instance of {@link NotificationMessageHolderType } * */ public NotificationMessageHolderType createNotificationMessageHolderType() { return new NotificationMessageHolderType(); }
public void setProducerReference(EndpointReferenceType ref) { ((AbstractSchemaElementImpl<?>)ref).setParent(this); this.eprProducer = ref; this.model.setProducerReference((com.ebmwebsourcing.wsstar.jaxb.addressing.EndpointReferenceType) ((AbstractSchemaElementImpl<?>) ref).getModel()); }