热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

org.apache.ws.commons.schema.XmlSchemaAppInfo.setMarkup()方法的使用及代码示例

本文整理了Java中org.apache.ws.commons.schema.XmlSchemaAppInfo.setMarkup()方法的一些代码示例,展示了

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

XmlSchemaAppInfo.setMarkup介绍

暂无

代码示例

代码示例来源:origin: org.apache.ws.commons.schema/XmlSchema

/**
* create new XmlSchemaAppinfo and add value goten from element
* to this obj
* @param content
*/
XmlSchemaAppInfo handleAppInfo(Element content) {
XmlSchemaAppInfo appInfo = new XmlSchemaAppInfo();
NodeList markup = new DocumentFragmentNodeList(content);
if (!content.hasAttribute("source") && markup.getLength() == 0) {
return null;
}
appInfo.setSource(getAttribute(content, "source"));
appInfo.setMarkup(markup);
return appInfo;
}

代码示例来源:origin: org.apache.ws.schema/XmlSchema

/**
* create new XmlSchemaAppinfo and add value goten from element
* to this obj
* @param content
*/
XmlSchemaAppInfo handleAppInfo(Element content) {
XmlSchemaAppInfo appInfo = new XmlSchemaAppInfo();
NodeList markup = new DocumentFragmentNodeList(content);
if (!content.hasAttribute("source") && markup.getLength() == 0) {
return null;
}
appInfo.setSource(getAttribute(content, "source"));
appInfo.setMarkup(markup);
return appInfo;
}

代码示例来源:origin: org.apache.ws/com.springsource.org.apache.ws.commons.schema

/**
* create new XmlSchemaAppinfo and add value goten from element
* to this obj
* @param content
*/
XmlSchemaAppInfo handleAppInfo(Element content) {
XmlSchemaAppInfo appInfo = new XmlSchemaAppInfo();
NodeList markup = getChildren(content);
if (!content.hasAttribute("source") &&
(markup == null || markup.getLength() <= 0)) {
return null;
}
appInfo.setSource(getAttribute(content, "source"));
appInfo.setMarkup(markup);
return appInfo;
}

代码示例来源:origin: com.legsem.legstar/legstar-jaxbgen

/**
* Create a typesafeEnumMember markup. This provides a legal java identifier
* for an enumeration value. Since these are constant values, we follow the
* naming convention for static fields (all uppercase).
*
* @param jaxbNamespace the JAXB namespace
* @param jaxbNamespacePrefix the JAXB namespace prefix
* @param enumerationFacet the enumeration facet to annotate
* @param value the enumeration value.
*/
protected void injectJaxbTypeSafeEnumMemberAnnotation(
final String jaxbNamespace, final String jaxbNamespacePrefix,
final XmlSchemaEnumerationFacet enumerationFacet, final String value) {
XmlSchemaAppInfo appInfo = getXmlSchemaAppInfo(enumerationFacet);
DocumentFragment markupParent = getMarkupParent(appInfo);
Element typesafeEnumMemberEl = getElement(markupParent, jaxbNamespace,
jaxbNamespacePrefix, JAXB_TYPESAFEENUMMEMBER);
typesafeEnumMemberEl.setAttribute(
JAXB_TYPESAFEENUMMEMBER_NAME,
DEFAULT_ENUMERATION_MEMBER_PREFIX
+ NameUtil.toVariableName(value).toUpperCase());
appInfo.setMarkup(markupParent.getChildNodes());
}

代码示例来源:origin: com.legsem.legstar/legstar-jaxbgen

/**
* Create a typesafeEnumClass markup. This marks the simple Type as eligible
* to become a separate Enum class.
*
* @param jaxbNamespace the JAXB namespace
* @param jaxbNamespacePrefix the JAXB namespace prefix
* @param xsdSimpleType the simple type to annotate
* @param elementName the name of the element whose simple type we are
* dealing with.
*/
protected void injectJaxbTypeSafeEnumClassAnnotation(
final String jaxbNamespace, final String jaxbNamespacePrefix,
final XmlSchemaSimpleType xsdSimpleType, final String elementName) {
XmlSchemaAppInfo appInfo = getXmlSchemaAppInfo(xsdSimpleType);
DocumentFragment markupParent = getMarkupParent(appInfo);
Element typesafeEnumClassEl = getElement(markupParent, jaxbNamespace,
jaxbNamespacePrefix, JAXB_TYPESAFEENUMCLASS);
typesafeEnumClassEl.setAttribute(JAXB_TYPESAFEENUMCLASS_NAME,
NameUtil.toClassName(elementName));
appInfo.setMarkup(markupParent.getChildNodes());
}

代码示例来源:origin: com.legsem.legstar/legstar-xsd2cob

appInfo.setMarkup(markup);
schemaObject.setAnnotation(annotation);

代码示例来源:origin: apache/cxf

appInfo.setMarkup(el.getChildNodes());
} catch (ParserConfigurationException ex) {
throw new RuntimeException("[ObjectReferenceVisitor: error creating endpoint schema]");

代码示例来源:origin: com.legsem.legstar/legstar-jaxbgen

jaxbNamespacePrefix);
appInfo.setMarkup(markupParent.getChildNodes());

推荐阅读
  • Iamtryingtomakeaclassthatwillreadatextfileofnamesintoanarray,thenreturnthatarra ... [详细]
  • Java太阳系小游戏分析和源码详解
    本文介绍了一个基于Java的太阳系小游戏的分析和源码详解。通过对面向对象的知识的学习和实践,作者实现了太阳系各行星绕太阳转的效果。文章详细介绍了游戏的设计思路和源码结构,包括工具类、常量、图片加载、面板等。通过这个小游戏的制作,读者可以巩固和应用所学的知识,如类的继承、方法的重载与重写、多态和封装等。 ... [详细]
  • Java序列化对象传给PHP的方法及原理解析
    本文介绍了Java序列化对象传给PHP的方法及原理,包括Java对象传递的方式、序列化的方式、PHP中的序列化用法介绍、Java是否能反序列化PHP的数据、Java序列化的原理以及解决Java序列化中的问题。同时还解释了序列化的概念和作用,以及代码执行序列化所需要的权限。最后指出,序列化会将对象实例的所有字段都进行序列化,使得数据能够被表示为实例的序列化数据,但只有能够解释该格式的代码才能够确定数据的内容。 ... [详细]
  • Spring特性实现接口多类的动态调用详解
    本文详细介绍了如何使用Spring特性实现接口多类的动态调用。通过对Spring IoC容器的基础类BeanFactory和ApplicationContext的介绍,以及getBeansOfType方法的应用,解决了在实际工作中遇到的接口及多个实现类的问题。同时,文章还提到了SPI使用的不便之处,并介绍了借助ApplicationContext实现需求的方法。阅读本文,你将了解到Spring特性的实现原理和实际应用方式。 ... [详细]
  • 本文讨论了一个关于cuowu类的问题,作者在使用cuowu类时遇到了错误提示和使用AdjustmentListener的问题。文章提供了16个解决方案,并给出了两个可能导致错误的原因。 ... [详细]
  • Java学习笔记之面向对象编程(OOP)
    本文介绍了Java学习笔记中的面向对象编程(OOP)内容,包括OOP的三大特性(封装、继承、多态)和五大原则(单一职责原则、开放封闭原则、里式替换原则、依赖倒置原则)。通过学习OOP,可以提高代码复用性、拓展性和安全性。 ... [详细]
  • Spring常用注解(绝对经典),全靠这份Java知识点PDF大全
    本文介绍了Spring常用注解和注入bean的注解,包括@Bean、@Autowired、@Inject等,同时提供了一个Java知识点PDF大全的资源链接。其中详细介绍了ColorFactoryBean的使用,以及@Autowired和@Inject的区别和用法。此外,还提到了@Required属性的配置和使用。 ... [详细]
  • 开发笔记:spring boot项目打成war包部署到服务器的步骤与注意事项
    本文介绍了将spring boot项目打成war包并部署到服务器的步骤与注意事项。通过本文的学习,读者可以了解到如何将spring boot项目打包成war包,并成功地部署到服务器上。 ... [详细]
  • 微软头条实习生分享深度学习自学指南
    本文介绍了一位微软头条实习生自学深度学习的经验分享,包括学习资源推荐、重要基础知识的学习要点等。作者强调了学好Python和数学基础的重要性,并提供了一些建议。 ... [详细]
  • vue使用
    关键词: ... [详细]
  • 原文地址:https:www.cnblogs.combaoyipSpringBoot_YML.html1.在springboot中,有两种配置文件,一种 ... [详细]
  • 标题: ... [详细]
  • r2dbc配置多数据源
    R2dbc配置多数据源问题根据官网配置r2dbc连接mysql多数据源所遇到的问题pom配置可以参考官网,不过我这样配置会报错我并没有这样配置将以下内容添加到pom.xml文件d ... [详细]
  • SpringBoot整合SpringSecurity+JWT实现单点登录
    SpringBoot整合SpringSecurity+JWT实现单点登录,Go语言社区,Golang程序员人脉社 ... [详细]
  • Activiti7流程定义开发笔记
    本文介绍了Activiti7流程定义的开发笔记,包括流程定义的概念、使用activiti-explorer和activiti-eclipse-designer进行建模的方式,以及生成流程图的方法。还介绍了流程定义部署的概念和步骤,包括将bpmn和png文件添加部署到activiti数据库中的方法,以及使用ZIP包进行部署的方式。同时还提到了activiti.cfg.xml文件的作用。 ... [详细]
author-avatar
最最后的力气撑起最灿烂的微笑
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有