Package org.apache.ws.commons.schema

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


        }
       
        if (stype instanceof XmlSchemaComplexType) {
            //only one element inside the XmlSchemaComplexType
            XmlSchemaComplexType ctype = (XmlSchemaComplexType) stype;
            XmlSchemaGroupBase group = (XmlSchemaGroupBase) ctype.getParticle();
            el = (XmlSchemaElement) group.getItems().getItem(0);
        } else {
            el = (XmlSchemaElement) schemaType;
        }
        return el;
    }
View Full Code Here


       
        return true;
    }

  private static boolean containsAnonymousTypes(XmlSchemaComplexType ct) {
    XmlSchemaGroupBase particle = (XmlSchemaGroupBase)ct.getParticle();
    if (particle == null) {
      return false;
    }
   
    XmlSchemaObjectCollection items = particle.getItems();
    for (int i = 0; i < items.getCount(); i++) {
      XmlSchemaObject item = items.getItem(i);
      if (item instanceof XmlSchemaElement) {
        XmlSchemaElement el = (XmlSchemaElement) item;
       
View Full Code Here

    private void processGroup(XmlSchemaGroup xmlSchemaGroup,
                              QName schemaGroupQName,
                              XmlSchema parentSchema) throws SchemaCompilationException {

        // find the group base item
        XmlSchemaGroupBase xmlSchemaGroupBase = xmlSchemaGroup.getParticle();
        if (xmlSchemaGroupBase != null){
            if (xmlSchemaGroupBase instanceof XmlSchemaSequence){
                XmlSchemaSequence xmlSchemaSequence = (XmlSchemaSequence) xmlSchemaGroupBase;
                if (xmlSchemaSequence.getItems().getCount() > 0) {
                    BeanWriterMetaInfoHolder beanWriterMetaInfoHolder = new BeanWriterMetaInfoHolder();
View Full Code Here

TOP

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

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.