Examples of toXml()


Examples of nu.xom.Node.toXML()

    public static void list(Node node) {
       
        for (int i = 0; i < node.getChildCount(); i++) {          
            Node child = node.getChild(i);
            if (child instanceof ProcessingInstruction) {
                System.out.println(child.toXML());
            }
            else {
                list(child);  
            }
        }
View Full Code Here

Examples of nu.xom.ProcessingInstruction.toXML()

    public Nodes makeProcessingInstruction(
      String target, String data) {
        ProcessingInstruction pi
          = new ProcessingInstruction(target, data);
        System.out.println(pi.toXML());
        return empty;
    }

    public static void main(String[] args) {
 
View Full Code Here

Examples of nu.xom.Text.toXML()

        Text t = new Text("name");
       
        // Things that shouldn't cause an exception
        for (int i = 0; i < easyCases.length; i++) {
            t.setValue(easyCases[i]);  
            assertEquals(easyCases[i], t.toXML());
        }
       
        t.setValue("<>");
        assertEquals("&lt;&gt;", t.toXML());
        t.setValue("&amp;");
View Full Code Here

Examples of org.adfemg.datacontrol.xml.provider.typemap.TypeMapper.toXml()

    private String getDynamicParameterXmlString(final DynamicParameter dynamicParam, final DataRequest request) {
        // get dynamic param value and typemapper
        TypeMapper typeMapper = request.getTypeMapper();
        Object dynaParamValue = request.getDynamicParamValues().get(dynamicParam.getName());
        // convert value to XML presentation
        String xmlValue = typeMapper.toXml(dynaParamValue, dynamicParam.getXmlType());
        return xmlValue;
    }

    private DynamicParameter findDynamicParameter(final String paramName, final Set<DynamicParameter> params) {
        if (params == null) {
View Full Code Here

Examples of org.apache.airavata.commons.gfac.type.ApplicationDeploymentDescription.toXML()

    }

    public String getDeploymentDescription(String serviceId, String hostId)
            throws RegistryException{
        ApplicationDeploymentDescription deploymentDescription = registry.getDeploymentDescription(serviceId, hostId);
        return  deploymentDescription.toXML();
    }

    public String getHostDescription(String hostId) throws RegistryException{
        HostDescription hostDescription = registry.getHostDescription(hostId);
        return hostDescription.toXML();
View Full Code Here

Examples of org.apache.airavata.commons.gfac.type.HostDescription.toXML()

        return  deploymentDescription.toXML();
    }

    public String getHostDescription(String hostId) throws RegistryException{
        HostDescription hostDescription = registry.getHostDescription(hostId);
        return hostDescription.toXML();
    }

    public String saveHostDescription(HostDescription host)throws RegistryException{
        return registry.saveHostDescription(host);
    }
View Full Code Here

Examples of org.apache.airavata.commons.gfac.type.ServiceDescription.toXML()

        return registry.saveWorkflowExecutionMetadata(experimentId,metadata);
    }

    public String getServiceDescription(String serviceId) throws RegistryException{
        ServiceDescription serviceDescription = registry.getServiceDescription(serviceId);
        return serviceDescription.toXML();
    }

    public String getDeploymentDescription(String serviceId, String hostId)
            throws RegistryException{
        ApplicationDeploymentDescription deploymentDescription = registry.getDeploymentDescription(serviceId, hostId);
View Full Code Here

Examples of org.apache.airavata.gsi.ssh.api.job.JobDescriptor.toXML()

                log.info("Successfully retrieved the Security Context");
            }
            // This installed path is a mandetory field, because this could change based on the computing resource
            JobDescriptor jobDescriptor = GFACGSISSHUtils.createJobDescriptor(jobExecutionContext, app, cluster);

            log.info(jobDescriptor.toXML());
            data.append("jobDesc=").append(jobDescriptor.toXML());
            jobDetails.setJobDescription(jobDescriptor.toXML());

            String jobID = cluster.submitBatchJob(jobDescriptor);
            jobExecutionContext.setJobDetails(jobDetails);
View Full Code Here

Examples of org.apache.airavata.workflow.model.component.ws.WSComponent.toXML()

        Collection<XmlElement> wsdls = new ArrayList<XmlElement>();
        for (Node node : this.graph.getNodes()) {
            if (node instanceof WSNode) {
                WSNode wsNode = (WSNode) node;
                WSComponent component = wsNode.getComponent();
                wsdls.add(component.toXML());
            }
        }
        return wsdls;
    }
View Full Code Here

Examples of org.apache.airavata.workflow.model.wf.Workflow.toXML()

                workflowId = StringUtil.convertToJavaIdentifier(workflowId);

                QName workflowQName = new QName(XBayaConstants.OGCE_WORKFLOW_NS, workflowId);

                String workflowAsString = XMLUtil.xmlElementToString(workflow.toXML());
                String owner = this.engine.getConfiguration().getRegistryUserName();

                AiravataAPI registry = this.connectToRegistry();
                if (registry.getWorkflowManager().isWorkflowExists(workflow.getName())){
                registry.getWorkflowManager().updateWorkflow(workflow.getName(), workflowAsString);
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.