Examples of InvalidInputFormatException


Examples of org.intalio.tempo.workflow.util.xml.InvalidInputFormatException

        if (containerElement == null) {
            throw new RequiredArgumentException("containerElement");
        }
        Iterator<OMElement> it = containerElement.getChildElements();
        if (!it.hasNext()) {
            throw new InvalidInputFormatException("Payload container element must contain exactly one child element");
        }
        Document result = null;
        OMElement firstPayloadElement = it.next();
        if (it.hasNext()) {
            throw new InvalidInputFormatException("Task payload must consist of exactly one element.");
        } else {
            result = new XmlTooling().convertOMToDOM(firstPayloadElement);
        }
        return result;
    }
View Full Code Here

Examples of org.intalio.tempo.workflow.util.xml.InvalidInputFormatException

            throw new RequiredArgumentException("containerElement");
        }
        XmlCursor payloadCursor = containerElement.newCursor();
        try {
            if (!payloadCursor.toFirstChild()) {
                throw new InvalidInputFormatException("No taskmetadata element");
            }
            QName qName = payloadCursor.getName();
            if (qName == null || qName.getNamespaceURI() == null || qName.getNamespaceURI().trim().length() == 0) {
                throw new InvalidInputFormatException("No namespace defined");
            }
        } finally {
            payloadCursor.dispose();
        }
    }
View Full Code Here

Examples of org.intalio.tempo.workflow.util.xml.InvalidInputFormatException

        if (name == null) {
            throw new RequiredArgumentException("name");
        }
        Class<? extends Task> typeClass = _typeMap.getInverse(name.toUpperCase());
        if (typeClass == null) {
            throw new InvalidInputFormatException("Invalid task type name: '" + name + "'");
        }
        return typeClass;
    }
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.