本文整理了Java中org.apache.ws.commons.schema.XmlSchemaSimpleContentExtension.getBaseTypeName()
方法的一些代码示例,展示了XmlSchemaSimpleContentExtension.getBaseTypeName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlSchemaSimpleContentExtension.getBaseTypeName()
方法的具体详情如下:
包路径:org.apache.ws.commons.schema.XmlSchemaSimpleContentExtension
类名称:XmlSchemaSimpleContentExtension
方法名:getBaseTypeName
暂无
代码示例来源:origin: apache/cxf
/**
* Return true for xsd:base64Binary or simple restrictions of it, as in the xmime stock type.
* @param type
* @return
*/
public static boolean mtomCandidateType(XmlSchemaType type) {
if (type == null) {
return false;
}
if (Constants.XSD_BASE64.equals(type.getQName())) {
return true;
}
// there could be some disagreement whether the following is a good enough test.
// what if 'base64binary' was extended in some crazy way? At runtime, either it has
// an xop:Include or it doesn't.
if (type instanceof XmlSchemaComplexType) {
XmlSchemaComplexType complexType = (XmlSchemaComplexType)type;
if (complexType.getContentModel() instanceof XmlSchemaSimpleContent) {
XmlSchemaSimpleContent content = (XmlSchemaSimpleContent)complexType.getContentModel();
if (content.getContent() instanceof XmlSchemaSimpleContentExtension) {
XmlSchemaSimpleContentExtension extension =
(XmlSchemaSimpleContentExtension)content.getContent();
if (Constants.XSD_BASE64.equals(extension.getBaseTypeName())) {
return true;
}
}
}
}
return false;
}
代码示例来源:origin: apache/cxf
(XmlSchemaSimpleContentExtension)simpleContent.getContent();
if (ext.getBaseTypeName() != null) {
basetype = processPrimitiveType(ext.getBaseTypeName());
base = getSchemaType(ext.getBaseTypeName());
basetype = convertSchemaToCorbaType(base, base.getQName(), base, null, false);
代码示例来源:origin: apache/axis2-java
if (!isAlreadyProcessed(extension.getBaseTypeName())) {
XmlSchema resolvedSchema = getParentSchema(parentSchema, extension.getBaseTypeName(),
COMPONENT_TYPE);
if (resolvedSchema == null) {
throw new SchemaCompilationException("can not find type " +
extension.getBaseTypeName()
+ " from the parent schema " +
parentSchema.getTargetNamespace());
} else {
XmlSchemaType type = resolvedSchema.getTypeByName(extension.getBaseTypeName());
if (type instanceof XmlSchemaComplexType) {
XmlSchemaComplexType complexType = (XmlSchemaComplexType) type;
processSimpleExtensionBaseType(extension.getBaseTypeName(), metaInfHolder, parentSchema);
代码示例来源:origin: org.apache.axis2/axis2-adb-codegen
if (!isAlreadyProcessed(extension.getBaseTypeName())) {
XmlSchema resolvedSchema = getParentSchema(parentSchema, extension.getBaseTypeName(),
COMPONENT_TYPE);
if (resolvedSchema == null) {
throw new SchemaCompilationException("can not find type " +
extension.getBaseTypeName()
+ " from the parent schema " +
parentSchema.getTargetNamespace());
} else {
XmlSchemaType type = resolvedSchema.getTypeByName(extension.getBaseTypeName());
if (type instanceof XmlSchemaComplexType) {
XmlSchemaComplexType complexType = (XmlSchemaComplexType) type;
processSimpleExtensionBaseType(extension.getBaseTypeName(), metaInfHolder, parentSchema);
代码示例来源:origin: org.apache.axis2/axis2-adb-codegen
extension.getBaseTypeName(), resolvedSchema);
代码示例来源:origin: apache/axis2-java
extension.getBaseTypeName(), resolvedSchema);
代码示例来源:origin: apache/cxf
} else if (content instanceof XmlSchemaSimpleContentExtension) {
XmlSchemaSimpleContentExtension extension = (XmlSchemaSimpleContentExtension)content;
XmlSchemaUtils.addImportIfNeeded(schema, extension.getBaseTypeName());
addCrossImportsAttributeList(schema, extension.getAttributes());
} else if (content instanceof XmlSchemaSimpleContentRestriction) {
代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs
} else if (content instanceof XmlSchemaSimpleContentExtension) {
XmlSchemaSimpleContentExtension extension = (XmlSchemaSimpleContentExtension)content;
XmlSchemaUtils.addImportIfNeeded(schema, extension.getBaseTypeName());
addCrossImportsAttributeList(schema, extension.getAttributes());
} else if (content instanceof XmlSchemaSimpleContentRestriction) {
代码示例来源:origin: org.apache.cxf/cxf-api
} else if (content instanceof XmlSchemaSimpleContentExtension) {
XmlSchemaSimpleContentExtension extension = (XmlSchemaSimpleContentExtension)content;
XmlSchemaUtils.addImportIfNeeded(schema, extension.getBaseTypeName());
addCrossImportsAttributeList(schema, extension.getAttributes());
} else if (content instanceof XmlSchemaSimpleContentRestriction) {
代码示例来源:origin: org.apache.cxf/cxf-core
} else if (content instanceof XmlSchemaSimpleContentExtension) {
XmlSchemaSimpleContentExtension extension = (XmlSchemaSimpleContentExtension)content;
XmlSchemaUtils.addImportIfNeeded(schema, extension.getBaseTypeName());
addCrossImportsAttributeList(schema, extension.getAttributes());
} else if (content instanceof XmlSchemaSimpleContentRestriction) {
代码示例来源:origin: org.apache.cxf/cxf-common-utilities
} else if (content instanceof XmlSchemaSimpleContentExtension) {
XmlSchemaSimpleContentExtension extension = (XmlSchemaSimpleContentExtension)content;
XmlSchemaUtils.addImportIfNeeded(schema, extension.getBaseTypeName());
addCrossImportsAttributeList(schema, extension.getAttributes());
} else if (content instanceof XmlSchemaSimpleContentRestriction) {
内容来源于网络,如有侵权,请联系作者删除!