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

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

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

XmlSchemaComplexContentRestriction介绍

[英]Class for complex types with a complex content model that are derived by restriction. Restricts the contents of the complex type to a subset of the inherited complex type. Represents the World Wide Web Consortium (W3C) restriction element for complex content.
[中]为具有通过限制派生的复杂内容模型的复杂类型初始化。将复杂类型的内容限制为继承的复杂类型的子集。代表用于复杂内容的万维网联盟(W3C)限制元素。

代码示例

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

protected Struct processComplexContentStruct(XmlSchemaComplexContent complex, QName defaultName,
                       Struct corbaStruct, QName schematypeName)
  throws Exception {
  if (complex.getContent() instanceof XmlSchemaComplexContentExtension) {
    XmlSchemaComplexContentExtension extype
      = (XmlSchemaComplexContentExtension)complex.getContent();
    QName extName = extype.getBaseTypeName();
    corbaStruct = processComplexContentStructParticle(extype.getParticle(), defaultName, corbaStruct,
                           schematypeName, extName, extype.getAttributes());
  } else {
    if (complex.getContent() instanceof XmlSchemaComplexContentRestriction) {
      XmlSchemaComplexContentRestriction extype
        = (XmlSchemaComplexContentRestriction)complex.getContent();
      QName extName = extype.getBaseTypeName();
      corbaStruct =
        processComplexContentStructParticle(extype.getParticle(), defaultName,
                        corbaStruct, schematypeName,
                        extName, extype.getAttributes());
    }
  }
  return corbaStruct;
}

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

private XmlSchemaComplexContentRestriction handleComplexContentRestriction(
    XmlSchema schema, Element restrictionEl, Element schemaEl) {
  XmlSchemaComplexContentRestriction restriction = new XmlSchemaComplexContentRestriction();
          schemaEl);
    } else if (el.getLocalName().equals("annotation")) {
      restriction.setAnnotation(handleAnnotation(el));

代码示例来源:origin: org.apache.openejb/openejb-axis

final XmlSchemaObjectCollection attributes = restriction.getAttributes();
for (final Iterator iterator = attributes.getIterator(); iterator.hasNext(); ) {
  final Object item = iterator.next();
final XmlSchemaParticle particle = restriction.getParticle();
if (particle instanceof XmlSchemaSequence) {
  final XmlSchemaSequence sequence = (XmlSchemaSequence) particle;

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

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

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

if (!isAlreadyProcessed(restriction.getBaseTypeName())) {
                        restriction.getBaseTypeName(),
                        COMPONENT_TYPE);
  if (resolvedSchema == null) {
    throw new SchemaCompilationException("can not find the complex type " +
                       restriction.getBaseTypeName()
                       + " from the parent type " +
                       parentSchema.getTargetNamespace());
  } else {
    XmlSchemaType type = resolvedSchema.getTypeByName(restriction.getBaseTypeName());
    if (type instanceof XmlSchemaComplexType) {
      XmlSchemaComplexType complexType = (XmlSchemaComplexType) type;
copyMetaInfoHierarchy(metaInfHolder, restriction.getBaseTypeName(), parentSchema);
processParticle(restriction.getBaseTypeName(), restriction.getParticle(), metaInfHolder,
        parentSchema);
processAttributes(restriction.getAttributes(), metaInfHolder, parentSchema);
XmlSchemaAnyAttribute anyAtt = restriction.getAnyAttribute();
if (anyAtt != null) {
  processAnyAttribute(metaInfHolder, anyAtt);
String className = findClassName(restriction.getBaseTypeName(), false);
  metaInfHolder.setRestrictionClassName(findClassName(restriction.getBaseTypeName(),
                            false));

代码示例来源:origin: org.apache.openejb/openejb-axis

private static boolean isSoapArray(final XmlSchemaComplexType complexType) {
  // Soap arrays are based on complex content restriction
  final XmlSchemaContentModel contentModel = complexType.getContentModel();
  if (contentModel == null) {
    return false;
  }
  final XmlSchemaContent content = contentModel.getContent();
  if (!(content instanceof XmlSchemaComplexContentRestriction)) {
    return false;
  }
  final XmlSchemaComplexContentRestriction restriction = (XmlSchemaComplexContentRestriction) content;
  return SOAP_ARRAY.equals(restriction.getBaseTypeName());
}

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

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

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

if (!isAlreadyProcessed(restriction.getBaseTypeName())) {
                        restriction.getBaseTypeName(),
                        COMPONENT_TYPE);
  if (resolvedSchema == null) {
    throw new SchemaCompilationException("can not find the complex type " +
                       restriction.getBaseTypeName()
                       + " from the parent type " +
                       parentSchema.getTargetNamespace());
  } else {
    XmlSchemaType type = resolvedSchema.getTypeByName(restriction.getBaseTypeName());
    if (type instanceof XmlSchemaComplexType) {
      XmlSchemaComplexType complexType = (XmlSchemaComplexType) type;
copyMetaInfoHierarchy(metaInfHolder, restriction.getBaseTypeName(), parentSchema);
processParticle(restriction.getBaseTypeName(), restriction.getParticle(), metaInfHolder,
        parentSchema);
processAttributes(restriction.getAttributes(), metaInfHolder, parentSchema);
XmlSchemaAnyAttribute anyAtt = restriction.getAnyAttribute();
if (anyAtt != null) {
  processAnyAttribute(metaInfHolder, anyAtt);
String className = findClassName(restriction.getBaseTypeName(), false);
  metaInfHolder.setRestrictionClassName(findClassName(restriction.getBaseTypeName(),
                            false));

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

restriction.getBaseTypeName(),
resolvedSchema);

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

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

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

restriction.getBaseTypeName(),
resolvedSchema);

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

private XmlSchemaComplexContentRestriction handleComplexContentRestriction(
    XmlSchema schema, Element restrictionEl, Element schemaEl) {
  XmlSchemaComplexContentRestriction restriction = new XmlSchemaComplexContentRestriction();
          schemaEl);
    } else if (el.getLocalName().equals("annotation")) {
      restriction.setAnnotation(handleAnnotation(el));

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

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

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

new XmlSchemaComplexContentRestriction();
      handleAnyAttribute(schema, el, schemaEl);
} else if (el.getLocalName().equals("annotation")) {
  restriction.setAnnotation(handleAnnotation(el));

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

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

相关文章