Package org.xmlpull.infoset

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


        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

        EventType type = getType(event);
        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

        EventType type = getType(event);
        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

      }
            XmlElement part = soapBody
                    .element(wsdlPortTypeOperation.getName());
            XmlElement parameter = part.element(nodeID);
            // TODO support complex type.
            String value = parameter.requiredText();
            return value;
        }
        // TODO
        String message = "Couldn't find a notification of about the input with nodeID, "
                + nodeID;
View Full Code Here

            XmlElement body = result.element(MonitorUtil.BODY);
            XmlElement soapBody = body.element(XmlConstants.S_BODY);
            XmlElement part = soapBody.element(messageName);
            XmlElement parameter = part.element(parameterName);
            // TODO support complex type.
            String value = parameter.requiredText();
            return value;
        }
        // TODO
        String message = "Couldn't find a notification of the output from the service with nodeID, "
                + nodeID;
View Full Code Here

            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

            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

        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

        EventType type = getType(event);
        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

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.