Examples of XmlSchemaContentModel


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

    XmlSchemaObjectCollection attributes = complexType.getAttributes();
    if(attributes!=null)
      processAttributes(attributes);
   
    // contentModel
    XmlSchemaContentModel contentModel = complexType.getContentModel();
    if(contentModel!=null) {
      XmlSchemaContent content = contentModel.getContent();
      if(content instanceof XmlSchemaComplexContentExtension)
        processComplexContentExtension((XmlSchemaComplexContentExtension)content);
      else if(content instanceof XmlSchemaComplexContentRestriction)
        throw new RuntimeException("ComplexContentRestriction are not supported");
     
View Full Code Here

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

        assert target != null;
        return target;
    }

    public static QName getBaseType(XmlSchemaComplexType type) {
        XmlSchemaContentModel model = type.getContentModel();
        if (model == null) {
            return null;
        }
        XmlSchemaContent content = model.getContent();
        if (content == null) {
            return null;
        }
       
        if (!(content instanceof XmlSchemaComplexContentExtension)) {
View Full Code Here

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

        XmlSchemaComplexContentExtension ext = (XmlSchemaComplexContentExtension)content;
        return ext.getBaseTypeName();       
    }

    public static XmlSchemaObjectCollection getContentAttributes(XmlSchemaComplexType type) {
        XmlSchemaContentModel model = type.getContentModel();
        if (model == null) {
            return null;
        }
        XmlSchemaContent content = model.getContent();
        if (content == null) {
            return null;
        }
        if (!(content instanceof XmlSchemaComplexContentExtension)) {
            return null;
View Full Code Here

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

            return results;
        }
    }

    public static XmlSchemaSequence getContentSequence(XmlSchemaComplexType type) {
        XmlSchemaContentModel model = type.getContentModel();
        if (model == null) {
            return null;
        }
        XmlSchemaContent content = model.getContent();
        if (content == null) {
            return null;
        }
        if (!(content instanceof XmlSchemaComplexContentExtension)) {
            return null;
View Full Code Here

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

  public static boolean isArrayWrapper(XmlSchemaComplexType complexType) {
    if(complexType==null) return false;
    if(complexType.getAttributes().getCount()>0) return false;
    XmlSchemaObjectCollection items = null;
   
    XmlSchemaContentModel contentModel = complexType.getContentModel();
   
    if(contentModel!=null)
      return false;

    XmlSchemaParticle particle = complexType.getParticle();
View Full Code Here

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

  private static JavaQName getParentType(XmlSchemaType type) {
    if(type instanceof XmlSchemaSimpleType) {
      return JavaQNameImpl.getInstance(Object.class);
    } else {
      XmlSchemaComplexType complexType = (XmlSchemaComplexType)type;
      XmlSchemaContentModel contentModel = complexType.getContentModel();
     
      if(contentModel!=null) {
        if(contentModel instanceof XmlSchemaSimpleContent) {
          return JavaQNameImpl.getInstance(Object.class);
        } else {
          XmlSchemaContent content = contentModel.getContent();
          if(content instanceof XmlSchemaComplexContentExtension) {
            XmlSchemaComplexContentExtension ext = (XmlSchemaComplexContentExtension)content;
            return JavaSourceUtils.toJavaQName(ext.getBaseTypeName());
          } else {
            XmlSchemaComplexContentRestriction rest = (XmlSchemaComplexContentRestriction)content;
View Full Code Here

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

                    XmlSchemaChoice choice = (XmlSchemaChoice)particle;
                    return choice.getItems().getIterator();
                }
            }
            if (cpt.getContentModel() != null) {
                XmlSchemaContentModel xscm = (XmlSchemaContentModel)cpt.getContentModel();
                if (xscm instanceof XmlSchemaComplexContent) {
                    XmlSchemaComplexContent xscc = (XmlSchemaComplexContent)xscm;
                    
                    XmlSchemaComplexContentExtension ext = null;
                    if (xscc.getContent() instanceof XmlSchemaComplexContentExtension) {
View Full Code Here

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

                // see whether this type is also extended from some other type first
                // if so proceed to set their parents as well.
                if (type instanceof XmlSchemaComplexType) {
                    XmlSchemaComplexType complexType = (XmlSchemaComplexType) type;
                    if (complexType.getContentModel() != null) {
                        XmlSchemaContentModel content = complexType.getContentModel();
                        if (content instanceof XmlSchemaComplexContent) {
                            XmlSchemaComplexContent complexContent =
                                    (XmlSchemaComplexContent) content;
                            if (complexContent.getContent() instanceof XmlSchemaComplexContentExtension) {
                                XmlSchemaComplexContentExtension extension =
View Full Code Here

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

        assert target != null;
        return target;
    }

    public static QName getBaseType(XmlSchemaComplexType type) {
        XmlSchemaContentModel model = type.getContentModel();
        if (model == null) {
            return null;
        }
        XmlSchemaContent content = model.getContent();
        if (content == null) {
            return null;
        }

        if (!(content instanceof XmlSchemaComplexContentExtension)) {
View Full Code Here

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

        XmlSchemaComplexContentExtension ext = (XmlSchemaComplexContentExtension)content;
        return ext.getBaseTypeName();
    }

    public static List<XmlSchemaAttributeOrGroupRef> getContentAttributes(XmlSchemaComplexType type) {
        XmlSchemaContentModel model = type.getContentModel();
        if (model == null) {
            return null;
        }
        XmlSchemaContent content = model.getContent();
        if (content == null) {
            return null;
        }
        if (!(content instanceof XmlSchemaComplexContentExtension)) {
            return null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.