org.apache.ws.commons.schema.XmlSchemaSimpleContentRestriction类的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(5.4k)|赞(0)|评价(0)|浏览(98)

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

XmlSchemaSimpleContentRestriction介绍

[英]Class for simple types that are derived by restriction. Restricts the range of values for the element to a subset of the inherited simple types. Represents the World Wide Web Consortium (W3C) restriction element for simple content.
[中]

代码示例

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

= (XmlSchemaSimpleContentRestriction)simpleContent.getContent();
base = restrict.getBaseType();
if (restrict.getBaseTypeName() != null) {
  basetype = processPrimitiveType(restrict.getBaseTypeName());
  base = getSchemaType(restrict.getBaseTypeName());
  basetype = convertSchemaToCorbaType(base, base.getQName(), base, null, false);
  typeMappingType.getStructOrExceptionOrUnion().add(basetype);
attrMembers = processAttributesAsMembers(restrict.getAttributes(), uri);

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

private XmlSchemaSimpleContentRestriction handleSimpleContentRestriction(
    XmlSchema schema, Element restrictionEl, Element schemaEl) {
  XmlSchemaSimpleContentRestriction restriction = new XmlSchemaSimpleContentRestriction();
          schemaEl);
    } else if (el.getLocalName().equals("annotation")) {
      restriction.setAnnotation(handleAnnotation(el));
    } else {
      XmlSchemaFacet facet = XmlSchemaFacet.construct(el);

代码示例来源:origin: apache/axis2-java

if (!isAlreadyProcessed(restriction.getBaseTypeName())) {
                        restriction.getBaseTypeName(),
                        COMPONENT_TYPE);
  if (resolvedSchema == null) {
    throw new SchemaCompilationException("can not find type " +
                       restriction.getBaseTypeName()
                       + " from the parent schema " +
                       parentSchema.getTargetNamespace());
  } else {
    XmlSchemaType type = resolvedSchema.getTypeByName(restriction.getBaseTypeName());
processSimpleRestrictionBaseType(restriction.getBaseTypeName(),
                 restriction.getBaseTypeName(),
                 metaInfHolder,
                 parentSchema);
metaInfHolder.setSimple(true);
if (!SchemaConstants.XSD_BOOLEAN.equals(restriction.getBaseTypeName())) {
  processFacets(restriction.getFacets(), restriction.getBaseTypeName(), metaInfHolder,
         parentSchema);

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

} else if (content instanceof XmlSchemaSimpleContentRestriction) {
  XmlSchemaSimpleContentRestriction restriction = (XmlSchemaSimpleContentRestriction)content;
  XmlSchemaUtils.addImportIfNeeded(schema, restriction.getBaseTypeName());
  addCrossImportsAttributeList(schema, restriction.getAttributes());

代码示例来源:origin: org.apache.axis2/axis2-adb-codegen

restriction.getBaseTypeName(), resolvedSchema);

代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs

} else if (content instanceof XmlSchemaSimpleContentRestriction) {
  XmlSchemaSimpleContentRestriction restriction = (XmlSchemaSimpleContentRestriction)content;
  XmlSchemaUtils.addImportIfNeeded(schema, restriction.getBaseTypeName());
  addCrossImportsAttributeList(schema, restriction.getAttributes());

代码示例来源:origin: apache/axis2-java

restriction.getBaseTypeName(), resolvedSchema);

代码示例来源:origin: org.apache.cxf/cxf-api

} else if (content instanceof XmlSchemaSimpleContentRestriction) {
  XmlSchemaSimpleContentRestriction restriction = (XmlSchemaSimpleContentRestriction)content;
  XmlSchemaUtils.addImportIfNeeded(schema, restriction.getBaseTypeName());
  addCrossImportsAttributeList(schema, restriction.getAttributes());

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

private XmlSchemaSimpleContentRestriction handleSimpleContentRestriction(
    XmlSchema schema, Element restrictionEl, Element schemaEl) {
  XmlSchemaSimpleContentRestriction restriction = new XmlSchemaSimpleContentRestriction();
          schemaEl);
    } else if (el.getLocalName().equals("annotation")) {
      restriction.setAnnotation(handleAnnotation(el));
    } else {
      XmlSchemaFacet facet = XmlSchemaFacet.construct(el);

代码示例来源:origin: org.apache.axis2/axis2-adb-codegen

if (!isAlreadyProcessed(restriction.getBaseTypeName())) {
                        restriction.getBaseTypeName(),
                        COMPONENT_TYPE);
  if (resolvedSchema == null) {
    throw new SchemaCompilationException("can not find type " +
                       restriction.getBaseTypeName()
                       + " from the parent schema " +
                       parentSchema.getTargetNamespace());
  } else {
    XmlSchemaType type = resolvedSchema.getTypeByName(restriction.getBaseTypeName());
processSimpleRestrictionBaseType(restriction.getBaseTypeName(),
                 restriction.getBaseTypeName(),
                 metaInfHolder,
                 parentSchema);
metaInfHolder.setSimple(true);
if (!SchemaConstants.XSD_BOOLEAN.equals(restriction.getBaseTypeName())) {
  processFacets(restriction.getFacets(), restriction.getBaseTypeName(), metaInfHolder,
         parentSchema);

代码示例来源:origin: org.apache.cxf/cxf-common-utilities

} else if (content instanceof XmlSchemaSimpleContentRestriction) {
  XmlSchemaSimpleContentRestriction restriction = (XmlSchemaSimpleContentRestriction)content;
  XmlSchemaUtils.addImportIfNeeded(schema, restriction.getBaseTypeName());
  addCrossImportsAttributeList(schema, restriction.getAttributes());

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

new XmlSchemaSimpleContentRestriction();
      handleAnyAttribute(schema, el, schemaEl);
} else if (el.getLocalName().equals("annotation")) {
  restriction.setAnnotation(handleAnnotation(el));
} else {
  XmlSchemaFacet facet = XmlSchemaFacet.construct(el);

代码示例来源:origin: org.apache.cxf/cxf-core

} else if (content instanceof XmlSchemaSimpleContentRestriction) {
  XmlSchemaSimpleContentRestriction restriction = (XmlSchemaSimpleContentRestriction)content;
  XmlSchemaUtils.addImportIfNeeded(schema, restriction.getBaseTypeName());
  addCrossImportsAttributeList(schema, restriction.getAttributes());

相关文章