List uses = attGrp.getAttributeUses();
public void visitAttributeGroupDefinition(XSDAttributeGroupDefinition attributeGroup) { if (attributeGroup.getAttributeUses() != null) { for (Iterator iter = attributeGroup.getAttributeUses().iterator(); iter.hasNext(); ) { XSDAttributeUse attrUse = (XSDAttributeUse)iter.next(); visitAttributeDeclaration(attrUse.getContent()); } } }
public boolean visit(XSDTypeDefinition type) { //simple types dont have attributes if (type instanceof XSDSimpleTypeDefinition) { return true; } XSDComplexTypeDefinition cType = (XSDComplexTypeDefinition) type; //get all the attribute content (groups,or uses) and add to q List attContent = cType.getAttributeContents(); for (Iterator itr = attContent.iterator(); itr.hasNext();) { XSDAttributeGroupContent content = (XSDAttributeGroupContent) itr.next(); if (content instanceof XSDAttributeUse) { //an attribute, add it to the list XSDAttributeUse use = (XSDAttributeUse) content; attributes.add(use.getAttributeDeclaration()); } else if (content instanceof XSDAttributeGroupDefinition) { //attribute group, add all atts in group to list XSDAttributeGroupDefinition attGrp = (XSDAttributeGroupDefinition) content; if (attGrp.isAttributeGroupDefinitionReference()) { attGrp = attGrp.getResolvedAttributeGroupDefinition(); } List uses = attGrp.getAttributeUses(); for (Iterator aitr = uses.iterator(); aitr.hasNext();) { XSDAttributeUse use = (XSDAttributeUse) aitr.next(); attributes.add(use.getAttributeDeclaration()); } } } return true; } };
public boolean visit(XSDTypeDefinition type) { //simple types dont have attributes if (type instanceof XSDSimpleTypeDefinition) { return true; } XSDComplexTypeDefinition cType = (XSDComplexTypeDefinition) type; //get all the attribute content (groups,or uses) and add to q List attContent = cType.getAttributeContents(); for (Iterator itr = attContent.iterator(); itr.hasNext();) { XSDAttributeGroupContent content = (XSDAttributeGroupContent) itr.next(); if (content instanceof XSDAttributeUse) { //an attribute, add it to the list XSDAttributeUse use = (XSDAttributeUse) content; attributes.add(use.getAttributeDeclaration()); } else if (content instanceof XSDAttributeGroupDefinition) { //attribute group, add all atts in group to list XSDAttributeGroupDefinition attGrp = (XSDAttributeGroupDefinition) content; if (attGrp.isAttributeGroupDefinitionReference()) { attGrp = attGrp.getResolvedAttributeGroupDefinition(); } List uses = attGrp.getAttributeUses(); for (Iterator aitr = uses.iterator(); aitr.hasNext();) { XSDAttributeUse use = (XSDAttributeUse) aitr.next(); attributes.add(use.getAttributeDeclaration()); } } } return true; } };
((XSDAttributeGroupDefinition)xsdAttributeGroupContent).getResolvedAttributeGroupDefinition(); ((XSDConcreteComponentImpl)xsdAttributeGroupDefinition).analyze(); result.addAll(xsdAttributeGroupDefinition.getAttributeUses());
((XSDAttributeGroupDefinition)xsdAttributeGroupContent).getResolvedAttributeGroupDefinition(); ((XSDConcreteComponentImpl)xsdAttributeGroupDefinition).analyze(); result.addAll(xsdAttributeGroupDefinition.getAttributeUses());
public void visitAttributeGroupDefinition(XSDAttributeGroupDefinition attributeGroup) EList list = attributeGroup.getAttributeUses(); if (list != null)
siblings = group.getAttributeUses();
((XSDConcreteComponentImpl)xsdAttributeGroupDefinition, xsdAttributeGroupDefinition.getAttributeWildcardContent(), otherXSDAttributeGroupDefinition.getAttributeUses(), xsdAttributeGroupDefinition.getAttributeUses(), otherXSDAttributeGroupDefinition.getAttributeWildcard(), xsdAttributeGroupDefinition.getAttributeWildcard());
Iterator i = ((XSDAttributeGroupDefinition) parent).getResolvedAttributeGroupDefinition().getAttributeUses().iterator(); while (i.hasNext())
((XSDConcreteComponentImpl)xsdAttributeGroupDefinition, xsdAttributeGroupDefinition.getAttributeWildcardContent(), otherXSDAttributeGroupDefinition.getAttributeUses(), xsdAttributeGroupDefinition.getAttributeUses(), otherXSDAttributeGroupDefinition.getAttributeWildcard(), xsdAttributeGroupDefinition.getAttributeWildcard());