当前位置: 首页>>代码示例>>Java>>正文


Java XmlSchemaAnyAttribute类代码示例

本文整理汇总了Java中org.apache.ws.commons.schema.XmlSchemaAnyAttribute的典型用法代码示例。如果您正苦于以下问题:Java XmlSchemaAnyAttribute类的具体用法?Java XmlSchemaAnyAttribute怎么用?Java XmlSchemaAnyAttribute使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


XmlSchemaAnyAttribute类属于org.apache.ws.commons.schema包,在下文中一共展示了XmlSchemaAnyAttribute类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: walkSimpleContentExtension

import org.apache.ws.commons.schema.XmlSchemaAnyAttribute; //导入依赖的package包/类
protected void walkSimpleContentExtension(XmlSchema xmlSchema, XmlSchemaSimpleContentExtension obj) {
	walkAnnotated(xmlSchema, obj);
	QName baseTypeName = obj.getBaseTypeName();
	if ((baseTypeName != null) && deep) {
		walkByTypeName(xmlSchema, baseTypeName);
	}
	
	XmlSchemaObjectCollection attributes = obj.getAttributes();
       for (int i = 0; i < attributes.getCount(); i++) {
           XmlSchemaObject attribute = attributes.getItem(i);
           if (attribute instanceof XmlSchemaAttribute) {
           	walkAttribute(xmlSchema, (XmlSchemaAttribute)attribute);
           } else if (attribute instanceof XmlSchemaAttributeGroupRef) {
           	walkAttributeGroupRef(xmlSchema, (XmlSchemaAttributeGroupRef)attribute);
           }
       }
	XmlSchemaAnyAttribute xmlSchemaAnyAttribute = obj.getAnyAttribute();
	if (xmlSchemaAnyAttribute != null) {
		walkAnyAttribute(xmlSchema, xmlSchemaAnyAttribute);
	}
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:22,代码来源:XmlSchemaWalker.java

示例2: walkAttributeGroup

import org.apache.ws.commons.schema.XmlSchemaAnyAttribute; //导入依赖的package包/类
protected void walkAttributeGroup(XmlSchema xmlSchema, XmlSchemaAttributeGroup obj) {
	walkAnnotated(xmlSchema, obj);
	XmlSchemaObjectCollection  attributes = obj.getAttributes();
       for (int i = 0; i < attributes.getCount(); i++) {
           XmlSchemaObject attribute = attributes.getItem(i);
           if (attribute instanceof XmlSchemaAttribute) {
           	walkAttribute(xmlSchema, (XmlSchemaAttribute)attribute);
           } else if (attribute instanceof XmlSchemaAttributeGroupRef) {
           	walkAttributeGroupRef(xmlSchema, (XmlSchemaAttributeGroupRef)attribute);
           }
       }
       XmlSchemaAnyAttribute xmlSchemaAnyAttribute = obj.getAnyAttribute();
       if (xmlSchemaAnyAttribute != null) {
       	walkAnyAttribute(xmlSchema, xmlSchemaAnyAttribute);
       }
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:17,代码来源:XmlSchemaWalker.java

示例3: processAnyAttribute

import org.apache.ws.commons.schema.XmlSchemaAnyAttribute; //导入依赖的package包/类
/**
 * Handle any attribute
 *
 * @param metainf
 */
private void processAnyAttribute(BeanWriterMetaInfoHolder metainf, XmlSchemaAnyAttribute anyAtt) {

    //The best thing we can do here is to add a set of OMAttributes
    //since attributes do not have the notion of minoccurs/maxoccurs the
    //safest option here is to have an OMAttribute array
    QName qName = new QName(EXTRA_ATTRIBUTE_FIELD_NAME);
    metainf.registerMapping(qName,
            null,
            writer.getDefaultAttribArrayClassName(),//always generate an array of
            //OMAttributes
            SchemaConstants.ANY_TYPE);
    metainf.addtStatus(qName, SchemaConstants.ATTRIBUTE_TYPE);
    metainf.addtStatus(qName, SchemaConstants.ARRAY_TYPE);

}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:21,代码来源:SchemaCompiler.java

示例4: walkSimpleContentRestriction

import org.apache.ws.commons.schema.XmlSchemaAnyAttribute; //导入依赖的package包/类
protected void walkSimpleContentRestriction(XmlSchema xmlSchema, XmlSchemaSimpleContentRestriction obj) {
	walkAnnotated(xmlSchema, obj);
	QName baseTypeName = obj.getBaseTypeName();
	if ((baseTypeName != null) && deep) {
		walkByTypeName(xmlSchema, baseTypeName);
	}
	
	XmlSchemaObjectCollection attributes = obj.getAttributes();
       for (int i = 0; i < attributes.getCount(); i++) {
           XmlSchemaObject attribute = attributes.getItem(i);
           if (attribute instanceof XmlSchemaAttribute) {
           	walkAttribute(xmlSchema, (XmlSchemaAttribute)attribute);
           } else if (attribute instanceof XmlSchemaAttributeGroupRef) {
           	walkAttributeGroupRef(xmlSchema, (XmlSchemaAttributeGroupRef)attribute);
           }
       }
	XmlSchemaSimpleType xmlSchemaSimpleType = obj.getBaseType();
	if (xmlSchemaSimpleType != null) {
		walkSimpleType(xmlSchema, xmlSchemaSimpleType);
	}
	XmlSchemaAnyAttribute xmlSchemaAnyAttribute = obj.getAnyAttribute();
	if (xmlSchemaAnyAttribute != null) {
		walkAnyAttribute(xmlSchema, xmlSchemaAnyAttribute);
	}
       XmlSchemaObjectCollection facets = obj.getFacets();
       for (int i = 0; i < facets.getCount(); i++) {
       	XmlSchemaObject facet = facets.getItem(i);
       	walkFacet(xmlSchema, (XmlSchemaFacet)facet);
       }
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:31,代码来源:XmlSchemaWalker.java

示例5: walkComplexContentExtension

import org.apache.ws.commons.schema.XmlSchemaAnyAttribute; //导入依赖的package包/类
protected void walkComplexContentExtension(XmlSchema xmlSchema, XmlSchemaComplexContentExtension obj) {
	walkAnnotated(xmlSchema, obj);
	QName baseTypeName = obj.getBaseTypeName();
	if ((baseTypeName != null) && deep) {
		walkByTypeName(xmlSchema, baseTypeName);
	}
	
	XmlSchemaParticle xmlSchemaParticle = obj.getParticle();
	if (xmlSchemaParticle != null) {
        if (xmlSchemaParticle instanceof XmlSchemaSequence) {
        	walkSequence(xmlSchema, (XmlSchemaSequence)xmlSchemaParticle);
        } else if (xmlSchemaParticle instanceof XmlSchemaChoice) {
        	walkChoice(xmlSchema, (XmlSchemaChoice)xmlSchemaParticle);
        } else if (xmlSchemaParticle instanceof XmlSchemaAll) {
        	walkAll(xmlSchema, (XmlSchemaAll)xmlSchemaParticle);
        } else if (xmlSchemaParticle instanceof XmlSchemaGroupRef) {
        	walkGroupRef(xmlSchema, (XmlSchemaGroupRef)xmlSchemaParticle);
        }
	}
	
	XmlSchemaObjectCollection attributes = obj.getAttributes();
       for (int i = 0; i < attributes.getCount(); i++) {
           XmlSchemaObject attribute = attributes.getItem(i);
           if (attribute instanceof XmlSchemaAttribute) {
           	walkAttribute(xmlSchema, (XmlSchemaAttribute)attribute);
           } else if (attribute instanceof XmlSchemaAttributeGroupRef) {
           	walkAttributeGroupRef(xmlSchema, (XmlSchemaAttributeGroupRef)attribute);
           }
       }
	XmlSchemaAnyAttribute xmlSchemaAnyAttribute = obj.getAnyAttribute();
	if (xmlSchemaAnyAttribute != null) {
		walkAnyAttribute(xmlSchema, xmlSchemaAnyAttribute);
	}
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:35,代码来源:XmlSchemaWalker.java

示例6: walkComplexContentRestriction

import org.apache.ws.commons.schema.XmlSchemaAnyAttribute; //导入依赖的package包/类
protected void walkComplexContentRestriction(XmlSchema xmlSchema, XmlSchemaComplexContentRestriction obj) {
	walkAnnotated(xmlSchema, obj);
	QName baseTypeName = obj.getBaseTypeName();
	if ((baseTypeName != null) && deep) {
		walkByTypeName(xmlSchema, baseTypeName);
	}
	
	XmlSchemaParticle xmlSchemaParticle = obj.getParticle();
	if (xmlSchemaParticle != null) {
        if (xmlSchemaParticle instanceof XmlSchemaSequence) {
        	walkSequence(xmlSchema, (XmlSchemaSequence)xmlSchemaParticle);
        } else if (xmlSchemaParticle instanceof XmlSchemaChoice) {
        	walkChoice(xmlSchema, (XmlSchemaChoice)xmlSchemaParticle);
        } else if (xmlSchemaParticle instanceof XmlSchemaAll) {
        	walkAll(xmlSchema, (XmlSchemaAll)xmlSchemaParticle);
        } else if (xmlSchemaParticle instanceof XmlSchemaGroupRef) {
        	walkGroupRef(xmlSchema, (XmlSchemaGroupRef)xmlSchemaParticle);
        }
	}
	
	XmlSchemaObjectCollection attributes = obj.getAttributes();
       for (int i = 0; i < attributes.getCount(); i++) {
           XmlSchemaObject attribute = attributes.getItem(i);
           if (attribute instanceof XmlSchemaAttribute) {
           	walkAttribute(xmlSchema, (XmlSchemaAttribute)attribute);
           } else if (attribute instanceof XmlSchemaAttributeGroupRef) {
           	walkAttributeGroupRef(xmlSchema, (XmlSchemaAttributeGroupRef)attribute);
           }
       }
	XmlSchemaAnyAttribute xmlSchemaAnyAttribute = obj.getAnyAttribute();
	if (xmlSchemaAnyAttribute != null) {
		walkAnyAttribute(xmlSchema, xmlSchemaAnyAttribute);
	}
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:35,代码来源:XmlSchemaWalker.java

示例7: processComplexType

import org.apache.ws.commons.schema.XmlSchemaAnyAttribute; //导入依赖的package包/类
private BeanWriterMetaInfoHolder processComplexType(
        QName parentElementQName,
        XmlSchemaComplexType complexType,
        XmlSchema parentSchema) throws SchemaCompilationException {
    XmlSchemaParticle particle = complexType.getParticle();
    BeanWriterMetaInfoHolder metaInfHolder = new BeanWriterMetaInfoHolder();
    if (particle != null) {
        //Process the particle
        processParticle(parentElementQName, particle, metaInfHolder, parentSchema);
    }

    //process attributes - first look for the explicit attributes
    processAttributes(complexType.getAttributes(),metaInfHolder,parentSchema);

    //process any attribute
    //somehow the xml schema parser does not seem to pickup the any attribute!!
    XmlSchemaAnyAttribute anyAtt = complexType.getAnyAttribute();
    if (anyAtt != null) {
        processAnyAttribute(metaInfHolder, anyAtt);
    }


    //process content ,either  complex or simple
    if (complexType.getContentModel() != null) {
        processContentModel(complexType.getContentModel(),
                metaInfHolder,
                parentSchema);
    }
    return metaInfHolder;
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:31,代码来源:SchemaCompiler.java

示例8: walkAnyAttribute

import org.apache.ws.commons.schema.XmlSchemaAnyAttribute; //导入依赖的package包/类
@Override
protected void walkAnyAttribute(XmlSchema xmlSchema, XmlSchemaAnyAttribute obj) {
	if (on(obj)) {
		super.walkAnyAttribute(xmlSchema, obj);
	}
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:7,代码来源:XmlSchemaWalker.java

示例9: walk

import org.apache.ws.commons.schema.XmlSchemaAnyAttribute; //导入依赖的package包/类
protected void walk(XmlSchema xmlSchema, XmlSchemaObject obj) {
       if (obj instanceof XmlSchema) {
       	walk((XmlSchema) obj);
       } else if (obj instanceof XmlSchemaElement) {
       	walkElement(xmlSchema, (XmlSchemaElement) obj);
       } else if (obj instanceof XmlSchemaSimpleType) {
       	walkSimpleType(xmlSchema, (XmlSchemaSimpleType) obj);
       } else if (obj instanceof XmlSchemaSimpleTypeRestriction) {
       	walkSimpleTypeRestriction(xmlSchema, (XmlSchemaSimpleTypeRestriction) obj);
       } else if (obj instanceof XmlSchemaSimpleTypeList) {
       	walkSimpleTypeList(xmlSchema, (XmlSchemaSimpleTypeList) obj);
       } else if (obj instanceof XmlSchemaSimpleTypeUnion) {
       	walkSimpleTypeUnion(xmlSchema, (XmlSchemaSimpleTypeUnion) obj);
       } else if (obj instanceof XmlSchemaComplexType) {
       	walkComplexType(xmlSchema, (XmlSchemaComplexType) obj);
       } else if (obj instanceof XmlSchemaGroupRef) {
       	walkGroupRef(xmlSchema, (XmlSchemaGroupRef) obj);
       } else if (obj instanceof XmlSchemaIdentityConstraint) {
       	walkIdentityConstraint(xmlSchema, (XmlSchemaIdentityConstraint) obj);
       } else if (obj instanceof XmlSchemaImport) {
       	walkImport(xmlSchema, (XmlSchemaImport) obj);
       } else if (obj instanceof XmlSchemaInclude) {
       	walkInclude(xmlSchema, (XmlSchemaInclude) obj);
       } else if (obj instanceof XmlSchemaAll) {
       	walkAll(xmlSchema, (XmlSchemaAll) obj);
       } else if (obj instanceof XmlSchemaAnnotation) {
       	walkAnnotation(xmlSchema, (XmlSchemaAnnotation) obj);
       } else if (obj instanceof XmlSchemaDocumentation) {
       	walkDocumentation(xmlSchema, (XmlSchemaDocumentation) obj);
       } else if (obj instanceof XmlSchemaAppInfo) {
       	walkAppInfo(xmlSchema, (XmlSchemaAppInfo) obj);
       } else if (obj instanceof XmlSchemaChoice) {
       	walkChoice(xmlSchema, (XmlSchemaChoice) obj);
       } else if (obj instanceof XmlSchemaSequence) {
       	walkSequence(xmlSchema, (XmlSchemaSequence) obj);
       } else if (obj instanceof XmlSchemaAny) {
       	walkAny(xmlSchema, (XmlSchemaAny) obj);
       } else if (obj instanceof XmlSchemaSimpleContent) {
       	walkSimpleContent(xmlSchema, (XmlSchemaSimpleContent) obj);
       } else if (obj instanceof XmlSchemaSimpleContentRestriction) {
       	walkSimpleContentRestriction(xmlSchema, (XmlSchemaSimpleContentRestriction) obj);
       } else if (obj instanceof XmlSchemaFacet) {
       	walkFacet(xmlSchema, (XmlSchemaFacet) obj);
       } else if (obj instanceof XmlSchemaXPath) {
       	walkField(xmlSchema, (XmlSchemaXPath) obj);
       } else if (obj instanceof XmlSchemaAttributeGroupRef) {
       	walkAttributeGroupRef(xmlSchema, (XmlSchemaAttributeGroupRef) obj);
       } else if (obj instanceof XmlSchemaSimpleContentExtension) {
       	walkSimpleContentExtension(xmlSchema, (XmlSchemaSimpleContentExtension) obj);
       } else if (obj instanceof XmlSchemaAnyAttribute) {
       	walkAnyAttribute(xmlSchema, (XmlSchemaAnyAttribute) obj);
       } else if (obj instanceof XmlSchemaComplexContent) {
       	walkComplexContent(xmlSchema, (XmlSchemaComplexContent) obj);
       } else if (obj instanceof XmlSchemaComplexContentExtension) {
       	walkComplexContentExtension(xmlSchema, (XmlSchemaComplexContentExtension) obj);
       } else if (obj instanceof XmlSchemaComplexContentRestriction) {
       	walkComplexContentRestriction(xmlSchema, (XmlSchemaComplexContentRestriction) obj);
       } else if (obj instanceof XmlSchemaGroup) {
       	walkGroup(xmlSchema, (XmlSchemaGroup) obj);
       } else if (obj instanceof XmlSchemaAttributeGroup) {
       	walkAttributeGroup(xmlSchema, (XmlSchemaAttributeGroup) obj);
       } else if (obj instanceof XmlSchemaAttribute) {
       	walkAttribute(xmlSchema, (XmlSchemaAttribute) obj);
       } else if (obj instanceof XmlSchemaRedefine) {
       	walkRedefine(xmlSchema, (XmlSchemaRedefine) obj);
       }
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:68,代码来源:XmlSchemaWalker.java


注:本文中的org.apache.ws.commons.schema.XmlSchemaAnyAttribute类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。