Examples of XmlElementImpl


Examples of com.izforge.izpack.adaptator.impl.XMLElementImpl

   * @param  panelRoot  The tree to put the data in.
   */
  public void makeXMLData(IXMLElement panelRoot)
  {
    // Data path markup
    IXMLElement ipath = new XMLElementImpl("teamdatapath", panelRoot);
    ipath.setContent(idata.getVariable(TEAM_DATA_PATH));
    panelRoot.addChild(ipath);
  }
View Full Code Here

Examples of com.izforge.izpack.adaptator.impl.XMLElementImpl

   * @param  panelRoot  The tree to put the data in.
   */
  public void makeXMLData(IXMLElement panelRoot)
  {
    // Data path markup
    IXMLElement ipath = new XMLElementImpl("datapath", panelRoot);
    ipath.setContent(idata.getVariable(DATA_PATH));
    panelRoot.addChild(ipath);
  }
View Full Code Here

Examples of org.apache.axis2.rmi.metadata.xml.impl.XmlElementImpl

        if (!this.type.isSchemaGenerated()) {
            this.type.generateSchema(configurator, schemaMap);
        }

        this.element = new XmlElementImpl(!this.isArray && this.type.getJavaClass().isPrimitive());
        this.element.setName(this.name);
        this.element.setNamespace(this.namespace);
        this.element.setType(this.type.getXmlType());
        this.element.setArray(this.isArray);
View Full Code Here

Examples of org.apache.axis2.rmi.metadata.xml.impl.XmlElementImpl

        }
    }

    public void generateSchema(Configurator configurator, Map schemaMap) throws SchemaGenerationException {
        super.generateSchema(configurator, schemaMap);
        this.element = new XmlElementImpl(!this.isArray && this.type.getJavaClass().isPrimitive());
        this.element.setName(this.name);
        this.element.setNamespace(this.namespace);
        this.element.setTopElement(false);
        this.element.setType(this.type.getXmlType());
        this.element.setArray(this.isArray);
View Full Code Here

Examples of org.apache.axis2.rmi.metadata.xml.impl.XmlElementImpl

    public void generateSchema(Configurator configurator,
                               Map schemaMap)
            throws SchemaGenerationException {
        // here we have to send the XmlElement correctly
       this.isSchemaGenerated = true;
       this.element = new XmlElementImpl(!this.isArray && this.type.getJavaClass().isPrimitive());
       this.element.setName(this.name);
       this.element.setNamespace(this.namespace);
       this.element.setTopElement(false);

       if (!this.type.isSchemaGenerated()){
View Full Code Here

Examples of org.apache.axis2.rmi.metadata.xml.impl.XmlElementImpl


        if (!configurator.isBare()) {

            // generating the input element
            this.inputElement = new XmlElementImpl(false);
            this.inputElement.setName(this.name);
            this.inputElement.setNamespace(this.namespace);
            this.inputElement.setTopElement(true);
            xmlSchema.addElement(this.inputElement);

            // set the complex type for this element
            XmlType xmlType = new XmlTypeImpl();
            xmlType.setAnonymous(true);
            xmlType.setSimpleType(false);

            Parameter parameter;
            for (Iterator iter = this.inputParameters.iterator(); iter.hasNext();) {
                parameter = (Parameter) iter.next();
                if (!parameter.isSchemaGenerated()){
                   parameter.generateSchema(configurator,schemaMap);
                }
                parameter.getElement().setTopElement(false);
                xmlType.addElement(parameter.getElement());
                QName elementTypeQName = parameter.getElement().getType().getQname();
                if (!xmlSchema.containsNamespace(elementTypeQName.getNamespaceURI())) {
                    // if the element namespace does not exists we have to add it
                    if (!elementTypeQName.getNamespaceURI().equals(Constants.URI_2001_SCHEMA_XSD)) {
                        XmlImport xmlImport = new XmlImport(elementTypeQName.getNamespaceURI());
                        xmlSchema.addImport(xmlImport);
                    }
                    xmlSchema.addNamespace(elementTypeQName.getNamespaceURI());
                }
            }

            this.inputElement.setType(xmlType);

            // generate the output Element
            this.outPutElement = new XmlElementImpl(false);
            this.outPutElement.setName(this.name + "Response");
            this.outPutElement.setNamespace(this.namespace);
            this.outPutElement.setTopElement(true);
            xmlSchema.addElement(this.outPutElement);
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.