Package org.apache.ws.jaxme.xs.xml

Examples of org.apache.ws.jaxme.xs.xml.XsTTopLevelElement


    protected XsTTopLevelElement createElement(XsESchema pSchema, String pName,
                                               String pModel,
                                               DTDAttribute[] pAttributes,
                                               Locator pLocator)
            throws SAXException {
        XsTTopLevelElement result = pSchema.createElement();
        result.setName(new XsNCName(getLocalPart(pName)));
        XsGAttrDecls attrDecls;
        if ("EMPTY".equals(pModel)) {
          attrDecls = result.createComplexType();
        } else if ("ANY".equals(pModel)) {
            XsQName qName = XSAnyType.getInstance().getName();
            qName = new XsQName(qName.getNamespaceURI(), qName.getLocalName(), "xs");
          if (pAttributes.length == 0) {
                result.setType(qName);
                attrDecls = null;
            } else {
                XsTComplexType complexType = result.createComplexType();
                XsEComplexContent complexContent = complexType.createComplexContent();
                XsTExtensionType extensionType = complexContent.createExtension();
                extensionType.setBase(qName);
                attrDecls = extensionType;
            }
View Full Code Here


      mySchema.add(factory.newXSGroup(mySchema, group));
    } else if (pChild instanceof XsTAttributeGroup) {
      XsTAttributeGroup attributeGroup = (XsTAttributeGroup) pChild;
      mySchema.add(factory.newXSAttributeGroup(mySchema, attributeGroup));
    } else if (pChild instanceof XsTTopLevelElement) {
      XsTTopLevelElement element = (XsTTopLevelElement) pChild;
      mySchema.add(factory.newXSElement(mySchema, element));
    } else if (pChild instanceof XsTAttribute) {
      XsTAttribute attribute = (XsTAttribute) pChild;
      mySchema.add(factory.newXSAttribute(mySchema, attribute));
    } else if (pChild instanceof XsENotation) {
View Full Code Here

      mySchema.add(factory.newXSGroup(mySchema, group));
    } else if (pChild instanceof XsTAttributeGroup) {
      XsTAttributeGroup attributeGroup = (XsTAttributeGroup) pChild;
      mySchema.add(factory.newXSAttributeGroup(mySchema, attributeGroup));
    } else if (pChild instanceof XsTTopLevelElement) {
      XsTTopLevelElement element = (XsTTopLevelElement) pChild;
      mySchema.add(factory.newXSElement(mySchema, element));
    } else if (pChild instanceof XsTAttribute) {
      XsTAttribute attribute = (XsTAttribute) pChild;
      mySchema.add(factory.newXSAttribute(mySchema, attribute));
    } else if (pChild instanceof XsENotation) {
View Full Code Here

      mySchema.add(factory.newXSGroup(mySchema, group));
    } else if (pChild instanceof XsTAttributeGroup) {
      XsTAttributeGroup attributeGroup = (XsTAttributeGroup) pChild;
      mySchema.add(factory.newXSAttributeGroup(mySchema, attributeGroup));
    } else if (pChild instanceof XsTTopLevelElement) {
      XsTTopLevelElement element = (XsTTopLevelElement) pChild;
      mySchema.add(factory.newXSElement(mySchema, element));
    } else if (pChild instanceof XsTAttribute) {
      XsTAttribute attribute = (XsTAttribute) pChild;
      mySchema.add(factory.newXSAttribute(mySchema, attribute));
    } else if (pChild instanceof XsENotation) {
View Full Code Here

      mySchema.add(factory.newXSGroup(mySchema, group));
    } else if (pChild instanceof XsTAttributeGroup) {
      XsTAttributeGroup attributeGroup = (XsTAttributeGroup) pChild;
      mySchema.add(factory.newXSAttributeGroup(mySchema, attributeGroup));
    } else if (pChild instanceof XsTTopLevelElement) {
      XsTTopLevelElement element = (XsTTopLevelElement) pChild;
      mySchema.add(factory.newXSElement(mySchema, element));
    } else if (pChild instanceof XsTAttribute) {
      XsTAttribute attribute = (XsTAttribute) pChild;
      mySchema.add(factory.newXSAttribute(mySchema, attribute));
    } else if (pChild instanceof XsENotation) {
View Full Code Here

    protected XsTTopLevelElement createElement(XsESchema pSchema, String pName,
                                               String pModel,
                                               DTDAttribute[] pAttributes,
                                               Locator pLocator)
            throws SAXException {
        XsTTopLevelElement result = pSchema.createElement();
        result.setName(new XsNCName(getLocalPart(pName)));
        final XsGAttrDecls attrDecls;
        if ("EMPTY".equals(pModel)) {
          attrDecls = result.createComplexType();
        } else if ("ANY".equals(pModel)) {
            XsQName qName = XSAnyType.getInstance().getName();
            qName = new XsQName(qName.getNamespaceURI(), qName.getLocalName(), "xs");
          if (pAttributes.length == 0) {
                result.setType(qName);
                attrDecls = null;
            } else {
                XsTComplexType complexType = result.createComplexType();
                XsEComplexContent complexContent = complexType.createComplexContent();
                XsTExtensionType extensionType = complexContent.createExtension();
                extensionType.setBase(qName);
                attrDecls = extensionType;
            }
View Full Code Here

      mySchema.add(factory.newXSGroup(mySchema, group));
    } else if (pChild instanceof XsTAttributeGroup) {
      XsTAttributeGroup attributeGroup = (XsTAttributeGroup) pChild;
      mySchema.add(factory.newXSAttributeGroup(mySchema, attributeGroup));
    } else if (pChild instanceof XsTTopLevelElement) {
      XsTTopLevelElement element = (XsTTopLevelElement) pChild;
      mySchema.add(factory.newXSElement(mySchema, element));
    } else if (pChild instanceof XsTAttribute) {
      XsTAttribute attribute = (XsTAttribute) pChild;
      mySchema.add(factory.newXSAttribute(mySchema, attribute));
    } else if (pChild instanceof XsENotation) {
View Full Code Here

    protected XsTTopLevelElement createElement(XsESchema pSchema, String pName,
                                               String pModel,
                                               DTDAttribute[] pAttributes,
                                               Locator pLocator)
            throws SAXException {
        XsTTopLevelElement result = pSchema.createElement();
        result.setName(new XsNCName(getLocalPart(pName)));
        XsGAttrDecls attrDecls;
        if ("EMPTY".equals(pModel)) {
          attrDecls = result.createComplexType();
        } else if ("ANY".equals(pModel)) {
            XsQName qName = XSAnyType.getInstance().getName();
            qName = new XsQName(qName.getNamespaceURI(), qName.getLocalName(), "xs");
          if (pAttributes.length == 0) {
                result.setType(qName);
                attrDecls = null;
            } else {
                XsTComplexType complexType = result.createComplexType();
                XsEComplexContent complexContent = complexType.createComplexContent();
                XsTExtensionType extensionType = complexContent.createExtension();
                extensionType.setBase(qName);
                attrDecls = extensionType;
            }
View Full Code Here

      mySchema.add(factory.newXSGroup(mySchema, group));
    } else if (pChild instanceof XsTAttributeGroup) {
      XsTAttributeGroup attributeGroup = (XsTAttributeGroup) pChild;
      mySchema.add(factory.newXSAttributeGroup(mySchema, attributeGroup));
    } else if (pChild instanceof XsTTopLevelElement) {
      XsTTopLevelElement element = (XsTTopLevelElement) pChild;
      mySchema.add(factory.newXSElement(mySchema, element));
    } else if (pChild instanceof XsTAttribute) {
      XsTAttribute attribute = (XsTAttribute) pChild;
      mySchema.add(factory.newXSAttribute(mySchema, attribute));
    } else if (pChild instanceof XsENotation) {
View Full Code Here

      mySchema.add(factory.newXSGroup(mySchema, group));
    } else if (pChild instanceof XsTAttributeGroup) {
      XsTAttributeGroup attributeGroup = (XsTAttributeGroup) pChild;
      mySchema.add(factory.newXSAttributeGroup(mySchema, attributeGroup));
    } else if (pChild instanceof XsTTopLevelElement) {
      XsTTopLevelElement element = (XsTTopLevelElement) pChild;
      mySchema.add(factory.newXSElement(mySchema, element));
    } else if (pChild instanceof XsTAttribute) {
      XsTAttribute attribute = (XsTAttribute) pChild;
      mySchema.add(factory.newXSAttribute(mySchema, attribute));
    } else if (pChild instanceof XsENotation) {
View Full Code Here

TOP

Related Classes of org.apache.ws.jaxme.xs.xml.XsTTopLevelElement

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.