Package org.apache.ws.commons.schema

Examples of org.apache.ws.commons.schema.XmlSchemaAttributeGroup


            if (resolvedSchema == null) {
                throw new SchemaCompilationException("can not find the attribute group reference name " +
                                                     attributeGroupRefName + " from the parent schema " +
                                                     parentSchema.getTargetNamespace());
            } else {
                XmlSchemaAttributeGroup xmlSchemaAttributeGroup =
                        resolvedSchema.getAttributeGroups().get(attributeGroupRefName);
                if (xmlSchemaAttributeGroup != null) {
                    processGroupAttributes(xmlSchemaAttributeGroup.getAttributes(), metaInfHolder,
                                           resolvedSchema);
                } else {
                    throw new SchemaCompilationException("Can not find an attribute group for group reference "
                                                         + attributeGroupRefName.getLocalPart());
                }
View Full Code Here


  protected void processAttributeGroupRef(XmlSchemaAttributeGroupRef attributeGroupRef) {
    if(log.isDebugEnabled())
      log.debug("  processAttributeGroupRef "+attributeGroupRef.getRefName().getLocalPart());
   
    String name = attributeGroupRef.getRefName().toString();
    XmlSchemaAttributeGroup attributeGroup = (XmlSchemaAttributeGroup)attributeGroups.get(name);
    processAttributes(attributeGroup.getAttributes());
  }
View Full Code Here

   * @param tableAttributes
   */
  protected void processAttributeGroups(XmlSchemaObjectTable tableAttributes) {
    for(Iterator it=tableAttributes.getNames();it.hasNext();) {
      QName qname = (QName)it.next();
      XmlSchemaAttributeGroup attributeGroup = (XmlSchemaAttributeGroup)tableAttributes.getItem(qname);
      addAttributeGroup(attributeGroup);
    }
  }
View Full Code Here

           XmlSchema resolvedSchema = getParentSchema(parentSchema,attributeGroupRefName,COMPONENT_ATTRIBUTE_GROUP);
            if (resolvedSchema == null) {
                throw new SchemaCompilationException("can not find the attribute group reference name " +
                        attributeGroupRefName + " from the parent schema " + parentSchema.getTargetNamespace());
            } else {
                XmlSchemaAttributeGroup xmlSchemaAttributeGroup =
                        (XmlSchemaAttributeGroup) resolvedSchema.getAttributeGroups().getItem(attributeGroupRefName);
                if (xmlSchemaAttributeGroup != null) {
                    processAttributes(xmlSchemaAttributeGroup.getAttributes(), metaInfHolder, resolvedSchema);
                } else {
                    throw new SchemaCompilationException("Can not find an attribute group for group reference "
                            + attributeGroupRefName.getLocalPart());
                }
            }
View Full Code Here

           XmlSchema resolvedSchema = getParentSchema(parentSchema,attributeGroupRefName,COMPONENT_ATTRIBUTE_GROUP);
            if (resolvedSchema == null) {
                throw new SchemaCompilationException("can not find the attribute group reference name " +
                        attributeGroupRefName + " from the parent schema " + parentSchema.getTargetNamespace());
            } else {
                XmlSchemaAttributeGroup xmlSchemaAttributeGroup =
                        (XmlSchemaAttributeGroup) resolvedSchema.getAttributeGroups().getItem(attributeGroupRefName);
                if (xmlSchemaAttributeGroup != null) {
                    processAttributes(xmlSchemaAttributeGroup.getAttributes(), metaInfHolder, resolvedSchema);
                } else {
                    throw new SchemaCompilationException("Can not find an attribute group for group reference "
                            + attributeGroupRefName.getLocalPart());
                }
            }
View Full Code Here

        for (Iterator<QName> i = xsot.keySet().iterator(); i.hasNext();) {
            assertEquals("AttribGroup", (i.next()).getLocalPart());
        }

        XmlSchemaAttributeGroup xsag = null;
        for (Iterator<XmlSchemaAttributeGroup> i = xsot.values().iterator(); i.hasNext();) {
            xsag = (XmlSchemaAttributeGroup)i.next();
        }

        assertNotNull(xsag);
        assertEquals("AttribGroup", xsag.getName());
        List<XmlSchemaAttributeGroupMember> attributes = xsag.getAttributes();

        Set<String> s = new HashSet<String>();
        s.add("type");
        s.add("units");
        for (Iterator i = attributes.iterator(); i.hasNext();) {
View Full Code Here

           XmlSchema resolvedSchema = getParentSchema(parentSchema,attributeGroupRefName,COMPONENT_ATTRIBUTE_GROUP);
            if (resolvedSchema == null) {
                throw new SchemaCompilationException("can not find the attribute group reference name " +
                        attributeGroupRefName + " from the parent schema " + parentSchema.getTargetNamespace());
            } else {
                XmlSchemaAttributeGroup xmlSchemaAttributeGroup =
                        (XmlSchemaAttributeGroup) resolvedSchema.getAttributeGroups().getItem(attributeGroupRefName);
                if (xmlSchemaAttributeGroup != null) {
                    processAttributes(xmlSchemaAttributeGroup.getAttributes(), metaInfHolder, resolvedSchema);
                } else {
                    throw new SchemaCompilationException("Can not find an attribute group for group reference "
                            + attributeGroupRefName.getLocalPart());
                }
            }
View Full Code Here

           XmlSchema resolvedSchema = getParentSchema(parentSchema,attributeGroupRefName,COMPONENT_ATTRIBUTE_GROUP);
            if (resolvedSchema == null) {
                throw new SchemaCompilationException("can not find the attribute group reference name " +
                        attributeGroupRefName + " from the parent schema " + parentSchema.getTargetNamespace());
            } else {
                XmlSchemaAttributeGroup xmlSchemaAttributeGroup =
                        (XmlSchemaAttributeGroup) resolvedSchema.getAttributeGroups().getItem(attributeGroupRefName);
                if (xmlSchemaAttributeGroup != null) {
                    processAttributes(xmlSchemaAttributeGroup.getAttributes(), metaInfHolder, resolvedSchema);
                } else {
                    throw new SchemaCompilationException("Can not find an attribute group for group reference "
                            + attributeGroupRefName.getLocalPart());
                }
            }
View Full Code Here

        for (Iterator i = xsot.getNames(); i.hasNext(); ) {
            assertEquals("AttribGroup", (String)i.next());
        }

        XmlSchemaAttributeGroup xsag = null;
        for (Iterator i = xsot.getValues(); i.hasNext(); ) {
            xsag = (XmlSchemaAttributeGroup)i.next();
        }
        assertEquals("AttribGroup", xsag.getName());
        xsoc = xsag.getAttributes();

        Set s = new HashSet();
        s.add("type");
        s.add("units");
        for (Iterator i  = xsoc.getIterator(); i.hasNext(); ) {
View Full Code Here

        for (Iterator<QName> i = xsot.keySet().iterator(); i.hasNext();) {
            assertEquals("AttribGroup", (i.next()).getLocalPart());
        }

        XmlSchemaAttributeGroup xsag = null;
        for (Iterator<XmlSchemaAttributeGroup> i = xsot.values().iterator(); i.hasNext();) {
            xsag = (XmlSchemaAttributeGroup)i.next();
        }

        assertNotNull(xsag);
        assertEquals("AttribGroup", xsag.getName());
        List<XmlSchemaAttributeGroupMember> attributes = xsag.getAttributes();

        Set<String> s = new HashSet<String>();
        s.add("type");
        s.add("units");
        for (Iterator<XmlSchemaAttributeGroupMember> i = attributes.iterator(); i.hasNext();) {
View Full Code Here

TOP

Related Classes of org.apache.ws.commons.schema.XmlSchemaAttributeGroup

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.