Package eu.admire.dispel.parser.exception

Examples of eu.admire.dispel.parser.exception.UnresolvedVariableException


        throws Exception
    {
        eu.admire.dispel.parser.types.Variable variable = variables.get(mName);
        if (variable == null)
        {
            throw new UnresolvedVariableException(mName);
        }
        if (mExpressions.isEmpty())
        {
            if (mProperty != null)
            {
View Full Code Here


                Object value;
                Variable variable =
                    mExecutionState.getVariables().get(connection.mPE);
                if (variable == null)
                {
                    throw new UnresolvedVariableException(connection.mPE);
                }
                value = variable.getValue(connection.mArrayIndices);
                if (value instanceof RequestNode)
                {
                    RequestNode node = (RequestNode)value;
                    mConnection = node.getOutput(connection.mName, connection.mIndex.intValue());
                }
                else
                {
                    throw new TypeMismatchException("ProcessingElement", value);
                }
            }
            break;
        }
        case INPUT:
        {
            ConnectionStrategy connection = (ConnectionStrategy)strategy;
            if (connection.mConnectionVar != null)
            {
                Connection c = (Connection) connection.mConnectionVar.getValue(connection.mArrayIndices);
                if (c == null ||
                        !(c.getSource() instanceof LiteralValuesNode &&
                                mConnection.getSource() instanceof LiteralValuesNode))
                {
                    connection.mConnectionVar.setValue(mConnection, connection.mArrayIndices);
                }
                else
                {
                    LiteralValuesNode literal = (LiteralValuesNode) c.getSource();
                    LiteralValuesNode current = (LiteralValuesNode) mConnection.getSource();
                    literal.add(current.getValues());
                }
            }
            else
            {
                Object value;
                Variable variable =
                    mExecutionState.getVariables().get(connection.mPE);
                if (variable == null)
                {
                    throw new UnresolvedVariableException(connection.mPE);
                }
                value = variable.getValue(connection.mArrayIndices);
                if (value instanceof RequestNode)
                {
                    RequestNode node = (RequestNode)value;
View Full Code Here

    public void setConnection(String name) throws UnresolvedVariableException
    {
        mConnectionVar = mExecutionState.getVariables().get(name);
        if (mConnectionVar == null)
        {
            throw new UnresolvedVariableException(name);
        }
    }
View Full Code Here

    public void setConnection(String name) throws UnresolvedVariableException
    {
        mConnectionVar = mExecutionState.getVariables().get(name);
        if (mConnectionVar == null)
        {
            throw new UnresolvedVariableException(name);
        }
    }
View Full Code Here

        {
            Object value;
            Variable variable = mExecutionState.getVariables().get(mPE);
            if (variable == null)
            {
                throw new UnresolvedVariableException(mPE);
            }
            if (mArrayIndices == null)
            {
                value = variable.getValue();
            }
View Full Code Here

        Object value;
        Variable variable =
            mExecutionState.getVariables().get(mPEVariableName);
        if (variable == null)
        {
            throw new UnresolvedVariableException(mPEVariableName);
        }
        if (mPEVariableArrayIndices == null)
        {
            value = variable.getValue();
        }
View Full Code Here

            }
            mRegistered.put(qName, reg);
        }
        else
        {
            throw new UnresolvedVariableException(name);
        }
    }
View Full Code Here

                {
                    mIndices = Collections.emptyList();
                }
                if (!mExecutionState.getVariables().containsKey(mName))
                {
                    throw new UnresolvedVariableException(mName);
                }
                mVariable = mExecutionState.getVariables().get(mName);
                break;
        }
    }
View Full Code Here

TOP

Related Classes of eu.admire.dispel.parser.exception.UnresolvedVariableException

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.