Examples of requiredText()


Examples of org.xmlpull.infoset.XmlElement.requiredText()

                    GPEL_NAMESPACE, WORKFLOW_TEMPLATE_ID_TAG);
            if (templateIDElement == null) {
                // Not a workflow
                return null;
            } else {
                String templateIDString = templateIDElement.requiredText();
                URI templateID = new URI(templateIDString);
                return templateID;
            }
        } catch (URISyntaxException e) {
            throw new ComponentException(e);
View Full Code Here

Examples of org.xmlpull.infoset.XmlElement.requiredText()

    bindComponents();

    // Image
    XmlElement imageElement = workflowElement.element(IMAGE_TAG);
    if (imageElement != null) {
      String base64 = imageElement.requiredText();
      byte[] bytes = Base64.decodeBase64(base64.getBytes());
      try {
        this.image = ImageIO.read(new ByteArrayInputStream(bytes));
      } catch (IOException e) {
        // This should not happen and it's OK that image is broken. We
View Full Code Here

Examples of org.xmlpull.infoset.XmlElement.requiredText()

    }

    XmlElement bpelElement = workflowElement.element(BPEL_TAG);
    if (bpelElement != null) {
      try {
        String bpelString = bpelElement.requiredText();
        XmlNamespace gpelNS = XmlInfosetBuilder.newInstance()
            .newNamespace(BPELScript.GPEL, BPELScript.GPELNS);
        GpelConstants.GPEL_NS = gpelNS;
        this.gpelProcess = new GpelProcess(
            XMLUtil.stringToXmlElement(bpelString));
View Full Code Here

Examples of org.xmlpull.infoset.XmlElement.requiredText()

    XmlElement workflowWSDLElement = workflowElement
        .element(WORKFLOW_WSDL_TAG);
    if (workflowWSDLElement != null) {
      try {
        String wsdlText = workflowWSDLElement.requiredText();
        this.workflowWSDL = new WsdlDefinitions(
            XMLUtil.stringToXmlElement(wsdlText));
      } catch (RuntimeException e) {
        String error = "Failed to parse the workflow WSDL.";
        throw new GraphException(error, e);
View Full Code Here

Examples of org.xmlpull.infoset.XmlElement.requiredText()

     *
     * @param portElement
     */
    protected void parse(XmlElement portElement) {
        XmlElement idElement = portElement.element(GraphSchema.PORT_ID_TAG);
        this.id = idElement.requiredText();

        XmlElement nameElement = portElement.element(GraphSchema.PORT_NAME_TAG);
        if (nameElement != null) {
            // TODO control ports might have name?
            this.name = nameElement.requiredText();
View Full Code Here

Examples of org.xmlpull.infoset.XmlElement.requiredText()

        this.id = idElement.requiredText();

        XmlElement nameElement = portElement.element(GraphSchema.PORT_NAME_TAG);
        if (nameElement != null) {
            // TODO control ports might have name?
            this.name = nameElement.requiredText();
        }

        XmlElement nodeElement = portElement.element(GraphSchema.PORT_NODE_TAG);
        this.nodeID = nodeElement.requiredText();
    }
View Full Code Here

Examples of org.xmlpull.infoset.XmlElement.requiredText()

            // TODO control ports might have name?
            this.name = nameElement.requiredText();
        }

        XmlElement nodeElement = portElement.element(GraphSchema.PORT_NODE_TAG);
        this.nodeID = nodeElement.requiredText();
    }

    /**
     * @return the XML representation of this Port
     */
 
View Full Code Here

Examples of org.xmlpull.infoset.XmlElement.requiredText()

   * @param nodeElement
   * @throws GraphException
   */
  protected void parse(XmlElement nodeElement) throws GraphException {
    XmlElement idElement = nodeElement.element(GraphSchema.NODE_ID_TAG);
    this.id = idElement.requiredText();

    XmlElement nameElement = nodeElement.element(GraphSchema.NODE_NAME_TAG);
    this.name = nameElement.requiredText();

//    XmlElement labelElement = nodeElement
View Full Code Here

Examples of org.xmlpull.infoset.XmlElement.requiredText()

  protected void parse(XmlElement nodeElement) throws GraphException {
    XmlElement idElement = nodeElement.element(GraphSchema.NODE_ID_TAG);
    this.id = idElement.requiredText();

    XmlElement nameElement = nodeElement.element(GraphSchema.NODE_NAME_TAG);
    this.name = nameElement.requiredText();

//    XmlElement labelElement = nodeElement
//        .element(GraphSchema.NODE_STREAM_LABEL_TAG);
//    if (null != labelElement) {
//      this.label = labelElement.requiredText();
View Full Code Here

Examples of org.xmlpull.infoset.XmlElement.requiredText()

    }

    XmlElement controlInPortElement = nodeElement
        .element(GraphSchema.NODE_CONTROL_IN_PORT_TAG);
    if (controlInPortElement != null) {
      this.controlInPortID = controlInPortElement.requiredText();
    }

    Iterable<XmlElement> controlOutPortElements = nodeElement.elements(
        null, GraphSchema.NODE_CONTROL_OUT_PORT_TAG);
    for (XmlElement controlOutPort : controlOutPortElements) {
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.