Examples of requiredText()


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

    protected void parseConfiguration(XmlElement configElement) {
        XmlElement nameElement = configElement.element(null, NAME_TAG);
        if (nameElement != null) {
            // If the name is set here, this node has been configured.
            this.configured = true;
            this.configuredName = nameElement.requiredText();
        }
        XmlElement descElement = configElement.element(null, DESCRIPTION_TAG);
        if (descElement != null) {
            this.description = descElement.requiredText();
        }
View Full Code Here

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

            this.configured = true;
            this.configuredName = nameElement.requiredText();
        }
        XmlElement descElement = configElement.element(null, DESCRIPTION_TAG);
        if (descElement != null) {
            this.description = descElement.requiredText();
        }
        XmlElement typeElement = configElement.element(null,
                DATA_TYPE_QNAME_TAG);
        if (typeElement != null) {
            String qnameText = typeElement.requiredText();
View Full Code Here

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

            this.description = descElement.requiredText();
        }
        XmlElement typeElement = configElement.element(null,
                DATA_TYPE_QNAME_TAG);
        if (typeElement != null) {
            String qnameText = typeElement.requiredText();
            if (qnameText != null && !qnameText.equals("")) {
                this.parameterType = QName.valueOf(qnameText);
            }
        }
        XmlElement metadataElement = configElement.element(null, METADATA_TAG);
View Full Code Here

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

        if (this.annotation != null) {
            XmlElement documentationElement = this.annotation.element(null,
                    WSConstants.DOCUMENTATION_TAG);
            if (documentationElement != null) {
                // Sets the documentation.
                this.description = documentationElement.requiredText();
            }
            this.appinfo = this.annotation.element(null,
                    WSConstants.APPINFO_TAG);
        }
View Full Code Here

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

            throw new IllegalArgumentException("null");
        }
        XmlElement timestampEl = event.element(WOR_NS, TIMESTAMP_TAG);
        if (timestampEl == null)
            return null;
        String timestamp = timestampEl.requiredText();
        DcDate date = DcDate.create(timestamp);
        return new Date(date.getTimeInMillis());
    }

    /**
 
View Full Code Here

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

            throw new IllegalArgumentException("null");
        }
        String description = null;
        XmlElement descElement = event.element(WOR_NS, DESCRIPTION_TAG);
        if (descElement != null) {
            description = descElement.requiredText();
        }

        if (description == null || description.length() == 0) {
            // It might be a data-related notification
            XmlElement dataProduct = event.element(WOR_NS, DATA_PRODUCT_TAG);
View Full Code Here

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

        if (event == null) {
            throw new IllegalArgumentException("null");
        }
        XmlElement locationEl = event.element(WOR_NS, LOCATION_TAG);
        if (locationEl != null) {
            String location = locationEl.requiredText();
            return location;
        } else {
            return null;
        }
    }
View Full Code Here

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

        if (type != EventType.RESOURCE_MAPPING) {
            throw new IllegalArgumentException(
                    "Event must have resourceMapping type instead of " + type);
        }
        XmlElement mappedResource = event.element(MAPPED_RESOURCE_TAG);
        String resource = mappedResource.requiredText();
        return resource;
    }

    /**
     * Gets the retry count from the event.
View Full Code Here

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

        if (type != EventType.RESOURCE_MAPPING) {
            throw new IllegalArgumentException(
                    "Event must have resourceMapping type instead of " + type);
        }
        XmlElement retryCountElement = event.element(RETRY_STATUS_COUNT_TAG);
        String retryCount = retryCountElement.requiredText();
        return retryCount;
    }

    /**
     * Gets the workflow instance ID.
View Full Code Here

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

            // Get template ID from WSDL
            WsdlPortType portType = this.wsdl.getPortType(portTypeQName
                    .getLocalPart());
            XmlElement templateIDElement = portType.xml().element(
                    GPEL_NAMESPACE, WORKFLOW_TEMPLATE_ID_TAG);
            String templateIDString = templateIDElement.requiredText();
            this.templateID = new URI(templateIDString);
        } catch (URISyntaxException e) {
            throw new ComponentException(e);
        }
    }
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.