Package org.intalio.tempo.workflow.util

Examples of org.intalio.tempo.workflow.util.RequiredArgumentException


        return result;
    }

    public void pushElementBack(OMElement element) {
        if (element == null) {
            throw new RequiredArgumentException("element");
        }
        _queue.add(element);
    }
View Full Code Here


  private String _namespacePrefix;

  protected XmlBeanUnmarshaller(String namespaceURI, String namespacePrefix) {
    if (namespaceURI == null) {
      throw new RequiredArgumentException("namespaceURI");
    }
    if (namespacePrefix == null) {
      throw new RequiredArgumentException("namespacePrefix");
    }
    _namespaceURI = namespaceURI;
    _namespacePrefix = namespacePrefix;
  }
View Full Code Here

        }
    }

    private Task unmarshalTaskFromMetadata(TaskMetadata taskMetadata) throws XmlValueOutOfRangeException {
        if (taskMetadata == null) {
            throw new RequiredArgumentException("rootElement");
        }
        checkNS(taskMetadata);

        String taskID = taskMetadata.getTaskId();
        if (taskID == null) {
View Full Code Here

        return acl;
    }

    private void checkTaskPayload(XmlObject containerElement) throws InvalidInputFormatException {
        if (containerElement == null) {
            throw new RequiredArgumentException("containerElement");
        }
        XmlCursor payloadCursor = containerElement.newCursor();
        try {
            if (!payloadCursor.toFirstChild()) {
                throw new InvalidInputFormatException("Payload container element must contain exactly one child element");
View Full Code Here

    }

    // for compatibility usage
    private Document unmarshalTaskPayload(OMElement containerElement) throws 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");
        }
View Full Code Here

        }
    }

    private Task unmarshalFullTask(XmlObject rootElement) throws InvalidInputFormatException {
        if (rootElement == null) {
            throw new RequiredArgumentException("rootElement");
        }
        Task resultTask = null;

        requireElement(rootElement, "metadata");
View Full Code Here

    }

    private void checkNS(XmlObject containerElement) throws InvalidInputFormatException {
        if (containerElement == null) {
            throw new RequiredArgumentException("containerElement");
        }
        XmlCursor payloadCursor = containerElement.newCursor();
        try {
            if (!payloadCursor.toFirstChild()) {
                throw new InvalidInputFormatException("No taskmetadata element");
View Full Code Here

        _typeMap.put(Notification.class, TaskType.NOTIFICATION.name());
    }

    public static String getTypeClassName(Class<? extends Task> taskClass) {
        if (taskClass == null) {
            throw new RequiredArgumentException("taskClass");
        }
        Object result = _typeMap.get(taskClass);
        if (result == null) {
            throw new IllegalArgumentException("Unknown class type: " + taskClass.getName());
        }
View Full Code Here

        }
    }

    public static Class<? extends Task> getTypeClassByName(String name) throws 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 + "'");
        }
View Full Code Here

        return _processID;
    }

    public void setProcessID(String processID) {
        if (processID == null) {
            throw new RequiredArgumentException("processID");
        }
        _processID = processID;
    }
View Full Code Here

TOP

Related Classes of org.intalio.tempo.workflow.util.RequiredArgumentException

Copyright © 2018 www.massapicom. 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.