gpt4 book ai didi

com.ebmwebsourcing.wsstar.common.utils.WsstarCommonUtils.getNamespaceDocumentBuilder()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-23 01:05:05 29 4
gpt4 key购买 nike

本文整理了Java中com.ebmwebsourcing.wsstar.common.utils.WsstarCommonUtils.getNamespaceDocumentBuilder()方法的一些代码示例,展示了WsstarCommonUtils.getNamespaceDocumentBuilder()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WsstarCommonUtils.getNamespaceDocumentBuilder()方法的具体详情如下:
包路径:com.ebmwebsourcing.wsstar.common.utils.WsstarCommonUtils
类名称:WsstarCommonUtils
方法名:getNamespaceDocumentBuilder

WsstarCommonUtils.getNamespaceDocumentBuilder介绍

[英]DocumentBuilder as thread local, supporting XML namespaces.

The document builder is the one provided by #NAMESPACE_DOCUMENT_BUILDER_THREAD_LOCAL.
[中]DocumentBuilder作为本地线程,支持XML名称空间。
文档生成器由#名称空间_文档_生成器_线程_本地提供。

代码示例

代码示例来源:origin: com.ebmwebsourcing.wsstar/wsn-b-datatypes-jaxbimpl

@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;
}

代码示例来源:origin: com.ebmwebsourcing.wsstar/wsn-b-datatypes-jaxbimpl

@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;
}

代码示例来源:origin: com.ebmwebsourcing.wsstar/wstop-datatypes-jaxbimpl

@Override
public final Document writeTopicTypeAsDOM(TopicType value) throws WstopException {
  Document result = null;
  if (value instanceof TopicTypeImpl){
    try {
      Marshaller marshaller = this.topicsJaxbContext.createWSTopicsMarshaller();
      result = WsstarCommonUtils.getNamespaceDocumentBuilder().newDocument();
      // TODO : Check if it is a Thread safe method
      final JAXBElement<com.ebmwebsourcing.wsstar.jaxb.notification.topics.TopicType> element =
        new JAXBElement<com.ebmwebsourcing.wsstar.jaxb.notification.topics.TopicType>(WstopConstants.TOPIC_QNAME,
            com.ebmwebsourcing.wsstar.jaxb.notification.topics.TopicType.class,((TopicTypeImpl)value).getJaxbTypeObj());
        
      marshaller.marshal(element, result);            
    } catch (final JAXBException ex) {
      throw new WstopException(WstopUtils.getBindingExMessage(value), ex);
    } 
  }
  return result;			
}

代码示例来源:origin: com.ebmwebsourcing.wsstar/wsn-b-datatypes-jaxbimpl

@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;	
}

代码示例来源:origin: com.ebmwebsourcing.wsstar/wsn-b-datatypes-jaxbimpl

@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;
}

代码示例来源:origin: com.ebmwebsourcing.wsstar/wsn-b-datatypes-jaxbimpl

@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;
}

代码示例来源:origin: com.ebmwebsourcing.wsstar/wsn-b-datatypes-jaxbimpl

@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;
}

代码示例来源:origin: com.ebmwebsourcing.wsstar/wstop-datatypes-jaxbimpl

@Override
public final Document writeTopicSetTypeAsDOM(TopicSetType value)
    throws WstopException {
  Document result = null;
  if (value instanceof TopicSetTypeImpl){
    try {
      Marshaller marshaller = this.topicsJaxbContext.createWSTopicsMarshaller();
      result = WsstarCommonUtils.getNamespaceDocumentBuilder().newDocument();
      // TODO : Check if it is a Thread safe method
      final JAXBElement<com.ebmwebsourcing.wsstar.jaxb.notification.topics.TopicSetType> element =
        WstopJAXBContext.WSTOP_JAXB_FACTORY.createTopicSet(TopicSetTypeImpl.toJaxbModel(value));
        
      marshaller.marshal(element, result);            
    } catch (final JAXBException ex) {
      throw new WstopException(WstopUtils.getBindingExMessage(value), ex);
    } 
  }
  return result;	
}

代码示例来源:origin: com.ebmwebsourcing.wsstar/wsn-b-datatypes-jaxbimpl

@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;	
}

代码示例来源:origin: com.ebmwebsourcing.wsstar/wsn-b-datatypes-jaxbimpl

@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;	
}

代码示例来源:origin: com.ebmwebsourcing.wsstar/wsrf-rl-datatypes-jaxbimpl

@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;	
}

代码示例来源:origin: com.ebmwebsourcing.wsstar/wsrf-rl-datatypes-jaxbimpl

@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;	
}

代码示例来源:origin: com.ebmwebsourcing.wsstar/wsrf-rl-datatypes-jaxbimpl

@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;		
}

代码示例来源:origin: com.ebmwebsourcing.wsstar/wsn-b-datatypes-jaxbimpl

@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;	
}

代码示例来源:origin: com.ebmwebsourcing.wsstar/wsn-b-datatypes-jaxbimpl

@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;	
}

代码示例来源:origin: com.ebmwebsourcing.wsstar/wsn-b-datatypes-jaxbimpl

@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;	
}

代码示例来源:origin: com.ebmwebsourcing.wsstar/wsn-b-datatypes-jaxbimpl

@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;	
}

代码示例来源:origin: com.ebmwebsourcing.wsstar/wstop-datatypes-jaxbimpl

@Override
public final Document writeTopicNamespaceTypeAsDOM(TopicNamespaceType value)
    throws WstopException {
  Document result = null;
  
  if (value instanceof TopicNamespaceTypeImpl){
    try {
      Marshaller marshaller = this.topicsJaxbContext.createWSTopicsMarshaller();
      result = WsstarCommonUtils.getNamespaceDocumentBuilder().newDocument();
      // TODO : Check if it is a Thread safe method
      final JAXBElement<com.ebmwebsourcing.wsstar.jaxb.notification.topics.TopicNamespaceType> element =
        WstopJAXBContext.WSTOP_JAXB_FACTORY.createTopicNamespace(TopicNamespaceTypeImpl.toJaxbModel(value));
        
      marshaller.marshal(element, result);            
    } catch (final JAXBException ex) {
      throw new WstopException(WstopUtils.getBindingExMessage(value), ex);
    } 
  }
  return result;	
}

代码示例来源:origin: com.ebmwebsourcing.wsstar/wsn-b-datatypes-jaxbimpl

@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;	
}

代码示例来源:origin: com.ebmwebsourcing.wsstar/wsn-b-datatypes-jaxbimpl

@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;	
}

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com