@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 Document writeProducerPropertiesExpressionAsDOM(ProducerPropertiesExpression value) throws WsnbException { Document result = null; try { Marshaller marshaller = this.wsnbJaxbContext.createWSNotificationMarshaller(); result = WsstarCommonUtils.getNamespaceDocumentBuilder().newDocument(); // TODO : Check if it is a Thread safe method final JAXBElement<com.ebmwebsourcing.wsstar.jaxb.notification.base.QueryExpressionType> element = WsnbJAXBContext.WSNB_JAXB_FACTORY.createProducerProperties(ProducerPropertiesExpressionImpl.toJaxbModel(value)); marshaller.marshal(element, result); } catch (final JAXBException ex) { throw new WsnbException(WsrfbfUtils.getBindingExMessage(value), ex); } return result; }
if (producerPropertiesExpressions != null){ for (ProducerPropertiesExpression producerPropertiesExpression : producerPropertiesExpressions) { jaxbTypeObj.getAny().add(WsnbJAXBContext.WSNB_JAXB_FACTORY.createProducerProperties( ProducerPropertiesExpressionImpl.toJaxbModel(producerPropertiesExpression)));