當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。