@Override public final Document writeGetCurrentMessageResponseAsDOM( GetCurrentMessageResponse 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.GetCurrentMessageResponse> element = new JAXBElement<com.ebmwebsourcing.wsstar.jaxb.notification.base.GetCurrentMessageResponse>(WsnbConstants.GET_CURRENT_MESSAGE_RESPONSE_QNAME, com.ebmwebsourcing.wsstar.jaxb.notification.base.GetCurrentMessageResponse.class,((GetCurrentMessageResponseImpl)value).getJaxbTypeObj()); marshaller.marshal(element, result); } catch (final JAXBException ex) { throw new WsnbException(WsrfbfUtils.getBindingExMessage(value), ex); } return result; }
@Override public final Document writeSubscribeResponseAsDOM(SubscribeResponse 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.SubscribeResponse> element = new JAXBElement<com.ebmwebsourcing.wsstar.jaxb.notification.base.SubscribeResponse>(WsnbConstants.SUBSCRIBE_RESPONSE_QNAME, com.ebmwebsourcing.wsstar.jaxb.notification.base.SubscribeResponse.class, SubscribeResponseImpl.toJaxbModel(value)); marshaller.marshal(element, result); } catch (final JAXBException ex) { throw new WsnbException(WsrfbfUtils.getBindingExMessage(value), ex); } return result; }
@Override public final Document writeUseRawAsDOM(UseRaw value) throws WsnbException { Document result = null; if (value instanceof UseRawImpl){ 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.UseRaw> element = new JAXBElement<com.ebmwebsourcing.wsstar.jaxb.notification.base.UseRaw>(WsnbConstants.USERAW_QNAME, com.ebmwebsourcing.wsstar.jaxb.notification.base.UseRaw.class,((UseRawImpl)value).getJaxbTypeObj()); marshaller.marshal(element, result); } catch (final JAXBException ex) { throw new WsnbException(WsrfbfUtils.getBindingExMessage(value), ex); } } return result; }
@Override public final Document writeDestroyAsDOM(Destroy value) throws WsrfrlException { Document result = null; if (value instanceof DestroyImpl){ try { Marshaller marshaller = this.resourceLifetimeJaxbContext.createWSResourceLifetimeMarshaller(); result = WsstarCommonUtils.getNamespaceDocumentBuilder().newDocument(); // TODO : Check if it is a Thread safe method final JAXBElement<com.ebmwebsourcing.wsstar.jaxb.resource.resourcelifetime.Destroy> element = new JAXBElement<com.ebmwebsourcing.wsstar.jaxb.resource.resourcelifetime.Destroy>(WsrfrlConstants.DESTROY_QNAME, com.ebmwebsourcing.wsstar.jaxb.resource.resourcelifetime.Destroy.class, ((DestroyImpl)value).getJaxbTypeObj()); marshaller.marshal(element, result); } catch (final JAXBException ex) { throw new WsrfrlException(WsrfbfUtils.getBindingExMessage(value), ex); } } return result; }
@Override public final Document writeUnsubscribeAsDOM(Unsubscribe value) throws WsnbException { Document result = null; if (value instanceof UnsubscribeImpl){ 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.Unsubscribe> element = new JAXBElement<com.ebmwebsourcing.wsstar.jaxb.notification.base.Unsubscribe>(WsnbConstants.UNSUBSCRIBE_QNAME, com.ebmwebsourcing.wsstar.jaxb.notification.base.Unsubscribe.class,((UnsubscribeImpl)value).getJaxbTypeObj()); marshaller.marshal(element, result); } catch (final JAXBException ex) { throw new WsnbException(WsrfbfUtils.getBindingExMessage(value), ex); } } return result; }
@Override public final Document writeSubscriptionPolicyTypeAsDOM( SubscriptionPolicyType 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.SubscriptionPolicyType> element = WsnbJAXBContext.WSNB_JAXB_FACTORY.createSubscriptionPolicy(SubscriptionPolicyTypeImpl.toJaxbModel(value)); marshaller.marshal(element, result); } catch (final JAXBException ex) { throw new WsnbException(WsrfbfUtils.getBindingExMessage(value), ex); } return result; }
@Override public final Document writeMessageContentExpressionAsDOM(MessageContentExpression 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.createMessageContent(MessageContentExpressionImpl.toJaxbModel(value)); marshaller.marshal(element, result); } catch (final JAXBException ex) { throw new WsnbException(WsrfbfUtils.getBindingExMessage(value), ex); } return result; }
@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; }
@Override public final Document writeInvalidTopicExpressionFaultTypeAsDOM( InvalidTopicExpressionFaultType value) throws WsnbException { Document result = null; if (value instanceof InvalidTopicExpressionFaultTypeImpl){ 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.InvalidTopicExpressionFaultType> element = WsnbJAXBContext.WSNB_JAXB_FACTORY.createInvalidTopicExpressionFault(InvalidTopicExpressionFaultTypeImpl.toJaxbModel(value)); marshaller.marshal(element, result); } catch (final JAXBException ex) { throw new WsnbException(WsrfbfUtils.getBindingExMessage(value), ex); } } return result; }
@Override public final Document writeTopicNotSupportedFaultTypeAsDOM( TopicNotSupportedFaultType value) throws WsnbException { Document result = null; if (value instanceof TopicNotSupportedFaultTypeImpl){ 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.TopicNotSupportedFaultType> element = WsnbJAXBContext.WSNB_JAXB_FACTORY.createTopicNotSupportedFault(TopicNotSupportedFaultTypeImpl.toJaxbModel(value)); marshaller.marshal(element, result); } catch (final JAXBException ex) { throw new WsnbException(WsrfbfUtils.getBindingExMessage(value), ex); } } return result; }
@Override public final Document writeResourceNotDestroyedFaultTypeAsDOM( ResourceNotDestroyedFaultType value) throws WsrfrlException { Document result = null; if (value instanceof ResourceNotDestroyedFaultTypeImpl){ try { Marshaller marshaller = this.resourceLifetimeJaxbContext.createWSResourceLifetimeMarshaller(); result = WsstarCommonUtils.getNamespaceDocumentBuilder().newDocument(); // TODO : Check if it is a Thread safe method final JAXBElement<com.ebmwebsourcing.wsstar.jaxb.resource.resourcelifetime.ResourceNotDestroyedFaultType> element = WsrfrlJAXBContext.WSRFRL_JAXB_FACTORY.createResourceNotDestroyedFault(ResourceNotDestroyedFaultTypeImpl.toJaxbModel(value)); marshaller.marshal(element, result); } catch (final JAXBException ex) { throw new WsrfrlException(WsrfbfUtils.getBindingExMessage(value), ex); } } return result; }
@Override public final Document writeTerminationTimeAsDOM(TerminationTime value) throws WsrfrlException { Document result = null; if (value instanceof TerminationTimeImpl){ try { Marshaller marshaller = this.resourceLifetimeJaxbContext.createWSResourceLifetimeMarshaller(); result = WsstarCommonUtils.getNamespaceDocumentBuilder().newDocument(); // TODO : Check if it is a Thread safe method final JAXBElement<com.ebmwebsourcing.wsstar.jaxb.resource.resourcelifetime.TerminationTime> element = WsrfrlJAXBContext.WSRFRL_JAXB_FACTORY.createTerminationTime(TerminationTimeImpl.toJaxbModel(value)); marshaller.marshal(element, result); } catch (final JAXBException ex) { throw new WsrfrlException(WsrfbfUtils.getBindingExMessage(value), ex); } } return result; }
@Override public final Document writeUnableToSetTerminationTimeFaultTypeAsDOM( UnableToSetTerminationTimeFaultType value) throws WsrfrlException { Document result = null; if (value instanceof UnableToSetTerminationTimeFaultTypeImpl){ try { Marshaller marshaller = this.resourceLifetimeJaxbContext.createWSResourceLifetimeMarshaller(); result = WsstarCommonUtils.getNamespaceDocumentBuilder().newDocument(); // TODO : Check if it is a Thread safe method final JAXBElement<com.ebmwebsourcing.wsstar.jaxb.resource.resourcelifetime.UnableToSetTerminationTimeFaultType> element = WsrfrlJAXBContext.WSRFRL_JAXB_FACTORY.createUnableToSetTerminationTimeFault(UnableToSetTerminationTimeFaultTypeImpl.toJaxbModel(value)); marshaller.marshal(element, result); } catch (final JAXBException ex) { throw new WsrfrlException(WsrfbfUtils.getBindingExMessage(value), ex); } } return result; }
@Override public final Document writeResumeFailedFaultTypeAsDOM(ResumeFailedFaultType value) throws WsnbException { Document result = null; if (value instanceof ResumeFailedFaultTypeImpl){ 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.ResumeFailedFaultType> element = WsnbJAXBContext.WSNB_JAXB_FACTORY.createResumeFailedFault(ResumeFailedFaultTypeImpl.toJaxbModel(value)); marshaller.marshal(element, result); } catch (final JAXBException ex) { throw new WsnbException(WsrfbfUtils.getBindingExMessage(value), ex); } } return result; }
@Override public final Document writeUnableToGetMessagesFaultTypeAsDOM( UnableToGetMessagesFaultType value) throws WsnbException { Document result = null; if (value instanceof UnableToGetMessagesFaultTypeImpl){ 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.UnableToGetMessagesFaultType> element = WsnbJAXBContext.WSNB_JAXB_FACTORY.createUnableToGetMessagesFault(UnableToGetMessagesFaultTypeImpl.toJaxbModel(value)); marshaller.marshal(element, result); } catch (final JAXBException ex) { throw new WsnbException(WsrfbfUtils.getBindingExMessage(value), ex); } } return result; }
@Override public final Document writeUnrecognizedPolicyRequestFaultTypeAsDOM( UnrecognizedPolicyRequestFaultType value) throws WsnbException { Document result = null; if (value instanceof UnrecognizedPolicyRequestFaultTypeImpl){ 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.UnrecognizedPolicyRequestFaultType> element = WsnbJAXBContext.WSNB_JAXB_FACTORY.createUnrecognizedPolicyRequestFault(UnrecognizedPolicyRequestFaultTypeImpl.toJaxbModel(value)); marshaller.marshal(element, result); } catch (final JAXBException ex) { throw new WsnbException(WsrfbfUtils.getBindingExMessage(value), ex); } } return result; }
@Override public final Document writeMultipleTopicsSpecifiedFaultTypeAsDOM( MultipleTopicsSpecifiedFaultType value) throws WsnbException { Document result = null; if (value instanceof MultipleTopicsSpecifiedFaultTypeImpl){ 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.MultipleTopicsSpecifiedFaultType> element = WsnbJAXBContext.WSNB_JAXB_FACTORY.createMultipleTopicsSpecifiedFault(MultipleTopicsSpecifiedFaultTypeImpl.toJaxbModel(value)); marshaller.marshal(element, result); } catch (final JAXBException ex) { throw new WsnbException(WsrfbfUtils.getBindingExMessage(value), ex); } } return result; }
@Override public final Document writeInvalidFilterFaultTypeAsDOM( InvalidFilterFaultType value) throws WsnbException { Document result = null; if (value instanceof InvalidFilterFaultTypeImpl){ 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.InvalidFilterFaultType> element = WsnbJAXBContext.WSNB_JAXB_FACTORY.createInvalidFilterFault(InvalidFilterFaultTypeImpl.toJaxbModel(value)); marshaller.marshal(element, result); } catch (final JAXBException ex) { throw new WsnbException(WsrfbfUtils.getBindingExMessage(value), ex); } } return result; }
@Override public final Document writeNoCurrentMessageOnTopicFaultTypeAsDOM( NoCurrentMessageOnTopicFaultType value) throws WsnbException { Document result = null; if (value instanceof NoCurrentMessageOnTopicFaultTypeImpl){ 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.NoCurrentMessageOnTopicFaultType> element = WsnbJAXBContext.WSNB_JAXB_FACTORY.createNoCurrentMessageOnTopicFault(NoCurrentMessageOnTopicFaultTypeImpl.toJaxbModel(value)); marshaller.marshal(element, result); } catch (final JAXBException ex) { throw new WsnbException(WsrfbfUtils.getBindingExMessage(value), ex); } } return result; }
@Override public final Document writeInvalidMessageContentExpressionFaultTypeAsDOM( InvalidMessageContentExpressionFaultType value) throws WsnbException { Document result = null; if (value instanceof InvalidMessageContentExpressionFaultTypeImpl){ 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.InvalidMessageContentExpressionFaultType> element = WsnbJAXBContext.WSNB_JAXB_FACTORY.createInvalidMessageContentExpressionFault( InvalidMessageContentExpressionFaultTypeImpl.toJaxbModel(value)); marshaller.marshal(element, result); } catch (final JAXBException ex) { throw new WsnbException(WsrfbfUtils.getBindingExMessage(value), ex); } } return result; }