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

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

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

XmlSchemaSimpleContentExtension.getBaseTypeName介绍

暂无

代码示例

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

  1. /**
  2. * Return true for xsd:base64Binary or simple restrictions of it, as in the xmime stock type.
  3. * @param type
  4. * @return
  5. */
  6. public static boolean mtomCandidateType(XmlSchemaType type) {
  7. if (type == null) {
  8. return false;
  9. }
  10. if (Constants.XSD_BASE64.equals(type.getQName())) {
  11. return true;
  12. }
  13. // there could be some disagreement whether the following is a good enough test.
  14. // what if 'base64binary' was extended in some crazy way? At runtime, either it has
  15. // an xop:Include or it doesn't.
  16. if (type instanceof XmlSchemaComplexType) {
  17. XmlSchemaComplexType complexType = (XmlSchemaComplexType)type;
  18. if (complexType.getContentModel() instanceof XmlSchemaSimpleContent) {
  19. XmlSchemaSimpleContent content = (XmlSchemaSimpleContent)complexType.getContentModel();
  20. if (content.getContent() instanceof XmlSchemaSimpleContentExtension) {
  21. XmlSchemaSimpleContentExtension extension =
  22. (XmlSchemaSimpleContentExtension)content.getContent();
  23. if (Constants.XSD_BASE64.equals(extension.getBaseTypeName())) {
  24. return true;
  25. }
  26. }
  27. }
  28. }
  29. return false;
  30. }

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

  1. (XmlSchemaSimpleContentExtension)simpleContent.getContent();
  2. if (ext.getBaseTypeName() != null) {
  3. basetype = processPrimitiveType(ext.getBaseTypeName());
  4. base = getSchemaType(ext.getBaseTypeName());
  5. basetype = convertSchemaToCorbaType(base, base.getQName(), base, null, false);

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

  1. if (!isAlreadyProcessed(extension.getBaseTypeName())) {
  2. XmlSchema resolvedSchema = getParentSchema(parentSchema, extension.getBaseTypeName(),
  3. COMPONENT_TYPE);
  4. if (resolvedSchema == null) {
  5. throw new SchemaCompilationException("can not find type " +
  6. extension.getBaseTypeName()
  7. + " from the parent schema " +
  8. parentSchema.getTargetNamespace());
  9. } else {
  10. XmlSchemaType type = resolvedSchema.getTypeByName(extension.getBaseTypeName());
  11. if (type instanceof XmlSchemaComplexType) {
  12. XmlSchemaComplexType complexType = (XmlSchemaComplexType) type;
  13. processSimpleExtensionBaseType(extension.getBaseTypeName(), metaInfHolder, parentSchema);

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

  1. if (!isAlreadyProcessed(extension.getBaseTypeName())) {
  2. XmlSchema resolvedSchema = getParentSchema(parentSchema, extension.getBaseTypeName(),
  3. COMPONENT_TYPE);
  4. if (resolvedSchema == null) {
  5. throw new SchemaCompilationException("can not find type " +
  6. extension.getBaseTypeName()
  7. + " from the parent schema " +
  8. parentSchema.getTargetNamespace());
  9. } else {
  10. XmlSchemaType type = resolvedSchema.getTypeByName(extension.getBaseTypeName());
  11. if (type instanceof XmlSchemaComplexType) {
  12. XmlSchemaComplexType complexType = (XmlSchemaComplexType) type;
  13. processSimpleExtensionBaseType(extension.getBaseTypeName(), metaInfHolder, parentSchema);

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

  1. extension.getBaseTypeName(), resolvedSchema);

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

  1. extension.getBaseTypeName(), resolvedSchema);

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

  1. } else if (content instanceof XmlSchemaSimpleContentExtension) {
  2. XmlSchemaSimpleContentExtension extension = (XmlSchemaSimpleContentExtension)content;
  3. XmlSchemaUtils.addImportIfNeeded(schema, extension.getBaseTypeName());
  4. addCrossImportsAttributeList(schema, extension.getAttributes());
  5. } else if (content instanceof XmlSchemaSimpleContentRestriction) {

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

  1. } else if (content instanceof XmlSchemaSimpleContentExtension) {
  2. XmlSchemaSimpleContentExtension extension = (XmlSchemaSimpleContentExtension)content;
  3. XmlSchemaUtils.addImportIfNeeded(schema, extension.getBaseTypeName());
  4. addCrossImportsAttributeList(schema, extension.getAttributes());
  5. } else if (content instanceof XmlSchemaSimpleContentRestriction) {

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

  1. } else if (content instanceof XmlSchemaSimpleContentExtension) {
  2. XmlSchemaSimpleContentExtension extension = (XmlSchemaSimpleContentExtension)content;
  3. XmlSchemaUtils.addImportIfNeeded(schema, extension.getBaseTypeName());
  4. addCrossImportsAttributeList(schema, extension.getAttributes());
  5. } else if (content instanceof XmlSchemaSimpleContentRestriction) {

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

  1. } else if (content instanceof XmlSchemaSimpleContentExtension) {
  2. XmlSchemaSimpleContentExtension extension = (XmlSchemaSimpleContentExtension)content;
  3. XmlSchemaUtils.addImportIfNeeded(schema, extension.getBaseTypeName());
  4. addCrossImportsAttributeList(schema, extension.getAttributes());
  5. } else if (content instanceof XmlSchemaSimpleContentRestriction) {

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

  1. } else if (content instanceof XmlSchemaSimpleContentExtension) {
  2. XmlSchemaSimpleContentExtension extension = (XmlSchemaSimpleContentExtension)content;
  3. XmlSchemaUtils.addImportIfNeeded(schema, extension.getBaseTypeName());
  4. addCrossImportsAttributeList(schema, extension.getAttributes());
  5. } else if (content instanceof XmlSchemaSimpleContentRestriction) {

相关文章