public Object copyTo(Object target, CopyBuilder copyBuilder) { final FilterType copy = ((target == null)?new FilterType():((FilterType) target)); { 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; }
public int hashCode() { final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder(); hashCode(hashCodeBuilder); return hashCodeBuilder.toHashCode(); }
public void toString(ToStringBuilder toStringBuilder) { { List<Object> theAny; theAny = this.getAny(); toStringBuilder.append("any", theAny); } }
/** * Create an instance of {@link FilterType } * */ public FilterType createFilterType() { return new FilterType(); }
public String toString() { final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this); toString(toStringBuilder); return toStringBuilder.toString(); }
public boolean equals(Object object) { if (!(object instanceof FilterType)) { 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 hashCode(HashCodeBuilder hashCodeBuilder) { hashCodeBuilder.append(this.getAny()); }
/** * Create an instance of {@link FilterType } * */ public FilterType createFilterType() { return new FilterType(); }
public List<QueryExpressionType> getMessageContentList() throws WSNotificationException { final List<QueryExpressionType> msgContent = new ArrayList<QueryExpressionType>(); final List<Object> list = this.model.getAny(); if (list != null) { for (final Object item : list) { if (item instanceof JAXBElement<?> && ((JAXBElement<?>) item).getValue() instanceof com.ebmwebsourcing.wsstar.jaxb.notification.base.QueryExpressionType) { final com.ebmwebsourcing.wsstar.jaxb.notification.base.QueryExpressionType topExpModel = (com.ebmwebsourcing.wsstar.jaxb.notification.base.QueryExpressionType) ((JAXBElement<?>) item).getValue(); msgContent.add(new QueryExpressionTypeImpl(topExpModel, this)); } } } return msgContent; }
@Override public final List<TopicExpressionType> getTopicExpressions() { List<TopicExpressionType> topicExpressions = null; final List<Object> anyFromModel = this.jaxbTypeObj.getAny(); if (anyFromModel != null) { topicExpressions = new ArrayList<TopicExpressionType>(); for (final Object item : anyFromModel) { TopicExpressionType currentTopicExpression = null; if (item instanceof JAXBElement<?> && ((JAXBElement<?>) item).getValue() instanceof com.ebmwebsourcing.wsstar.jaxb.notification.base.TopicExpressionType) { com.ebmwebsourcing.wsstar.jaxb.notification.base.TopicExpressionType jaxbObj = (com.ebmwebsourcing.wsstar.jaxb.notification.base.TopicExpressionType)((JAXBElement<?>) item).getValue(); currentTopicExpression = new TopicExpressionTypeImpl(jaxbObj); topicExpressions.add(currentTopicExpression); } } } return topicExpressions; }
@Override public final void addProducerPropertiesExpression(ProducerPropertiesExpression value) { final List<Object> anyFromModel = this.jaxbTypeObj.getAny(); if (anyFromModel != null) { anyFromModel.add(WsnbJAXBContext.WSNB_JAXB_FACTORY.createProducerProperties(ProducerPropertiesExpressionImpl.toJaxbModel(value))); } }
@Override public final void addTopicExpression(TopicExpressionType value) { final List<Object> anyFromModel = this.jaxbTypeObj.getAny(); if (anyFromModel != null) { anyFromModel.add(WsnbJAXBContext.WSNB_JAXB_FACTORY.createTopicExpression(TopicExpressionTypeImpl.toJaxbModel(value))); } }
@Override public final void addMessageContentExpression(MessageContentExpression value) { final List<Object> anyFromModel = this.jaxbTypeObj.getAny(); if (anyFromModel != null) { anyFromModel.add(WsnbJAXBContext.WSNB_JAXB_FACTORY.createMessageContent(MessageContentExpressionImpl.toJaxbModel(value))); } }
@Override public final List<MessageContentExpression> getMessageContentExpressions() { List<MessageContentExpression> messageContentExpressions = null; final List<Object> anyFromModel = this.jaxbTypeObj.getAny(); if (anyFromModel != null) { messageContentExpressions = new ArrayList<MessageContentExpression>(); for (final Object item : anyFromModel) { if (item instanceof JAXBElement<?> && (((JAXBElement<?>) item).getValue() instanceof com.ebmwebsourcing.wsstar.jaxb.notification.base.QueryExpressionType) && ((JAXBElement<?>)item).getName().equals(WsnbConstants.MESSAGE_CONTENT_QNAME)) { messageContentExpressions.add(new MessageContentExpressionImpl( (com.ebmwebsourcing.wsstar.jaxb.notification.base.QueryExpressionType)((JAXBElement<?>) item).getValue())); } } } return messageContentExpressions; }
@Override public final List<ProducerPropertiesExpression> getProducerPropertiesExpressions() { List<ProducerPropertiesExpression> producerPropertiesExpressions = null; final List<Object> anyFromModel = this.jaxbTypeObj.getAny(); if (anyFromModel != null) { producerPropertiesExpressions = new ArrayList<ProducerPropertiesExpression>(); for (final Object item : anyFromModel) { if (item instanceof JAXBElement<?> && (((JAXBElement<?>) item).getValue() instanceof com.ebmwebsourcing.wsstar.jaxb.notification.base.QueryExpressionType) && ((JAXBElement<?>)item).getName().equals(WsnbConstants.PRODUCER_PROPERTIES_QNAME)) { producerPropertiesExpressions.add(new ProducerPropertiesExpressionImpl( (com.ebmwebsourcing.wsstar.jaxb.notification.base.QueryExpressionType)((JAXBElement<?>) item).getValue())); } } } return producerPropertiesExpressions; }
public void addMessageContent(final QueryExpressionType messageContent) throws WSNotificationException { ((AbstractSchemaElementImpl<?>) messageContent).setParent(this); final List<Object> anyFromModel = this.model.getAny(); if (anyFromModel != null) { anyFromModel.add(WSNotificationFactory.getInstance().createMessageContent(messageContent)); } }
public void setTopicExpression(final TopicExpressionType topicExpr) throws WSNotificationException { ((AbstractSchemaElementImpl<?>) topicExpr).setParent(this); final List<Object> anyFromModel = this.model.getAny(); if (anyFromModel != null) { anyFromModel.add(WSNotificationFactory.getInstance().createTopicExpressionType(topicExpr)); } }
public TopicExpressionType getTopicExpression() throws WSNotificationException { final List<Object> list = this.model.getAny(); TopicExpressionType currentTopExp = null; if (list != null) { for (final Object item : list) { if (item instanceof JAXBElement<?> && ((JAXBElement<?>) item).getValue() instanceof com.ebmwebsourcing.wsstar.jaxb.notification.base.TopicExpressionType) { final com.ebmwebsourcing.wsstar.jaxb.notification.base.TopicExpressionType topExpModel = (com.ebmwebsourcing.wsstar.jaxb.notification.base.TopicExpressionType) ((JAXBElement<?>) item).getValue(); currentTopExp = new TopicExpressionTypeImpl(topExpModel, this); final Map<QName, String> objFromModel = topExpModel.getOtherAttributes(); final Set<QName> nsSet = objFromModel.keySet(); if (nsSet != null) { for (final QName nameItem : nsSet) { currentTopExp.addTopicNameSpace(nameItem.getLocalPart(), nameItem.getNamespaceURI()); } } } } } return currentTopExp; }