作者:最最后的力气撑起最灿烂的微笑 | 来源:互联网 | 2023-09-16 10:33
本文整理了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());