Examples of ProcessingElementTypeType


Examples of eu.admire.dispel.parser.types.ProcessingElementTypeType

        }
        if (!(var.getType() instanceof ProcessingElementTypeType))
        {
            throw new TypeMismatchException("ProcessingElementTypeType", var.getValue());
        }
        ProcessingElementTypeType type = (ProcessingElementTypeType)var.getType();
        SimpleProcessingElementDescriptor descriptor = null;
        if (type.getDescriptor() != null)
        {
            descriptor =
                new SimpleProcessingElementDescriptor(
                        null, TypeUtilities.cloneDescriptor(type.getDescriptor()), null);
            descriptor.addSuperType(mExecutionState.getNamespaceManager().resolve(text));
        }
        mType = new ProcessingElementTypeType(descriptor);
    }
View Full Code Here

Examples of eu.admire.dispel.parser.types.ProcessingElementTypeType

        if (!(var.getType() instanceof ProcessingElementTypeType))
        {
            throw new TypeMismatchException(
                    "ProcessingElementTypeType", var.getValue());
        }
        ProcessingElementTypeType type = (ProcessingElementTypeType)var.getType();
        SimpleProcessingElementDescriptor descriptor = null;
        if (type.getDescriptor() != null)
        {
            descriptor =
                new SimpleProcessingElementDescriptor(null, type.getDescriptor(), null);
            descriptor.addSuperType(
                    mExecutionState.getNamespaceManager().resolve(text));
        }
        mType = new ProcessingElementTypeType(descriptor);
    }
View Full Code Here

Examples of eu.admire.dispel.parser.types.ProcessingElementTypeType

            {
              String[] parts = name.split("\\.");
              executionState.getVariables().put(
                        parts[parts.length-1], // simple name
                        new Variable(
                                new ProcessingElementTypeType(((ProcessingElementType)pe).getDescriptor()),
                                pe));
            }
            catch (TypeMismatchException e)
            {
                // shouldn't happen but we never know...
View Full Code Here

Examples of eu.admire.dispel.parser.types.ProcessingElementTypeType

        mSupertype = text;
    }
   
    public Type getType()
    {
       return new ProcessingElementTypeType(getDescriptor());
    }
View Full Code Here

Examples of eu.admire.dispel.parser.types.ProcessingElementTypeType

                mPE.addAssertion(with.getExpressionAssertion());
            }
            break;
        case GENERIC_PE:
        {
            ProcessingElementTypeType type = ((PETypeStrategy)strategy).getPEType();
            mPE = new ProcessingElementType();
            mPE.setDescriptor(type.getDescriptor());
            mPE.setName(qualifiedName);
            mType = type;
            mExecutionState.getVariables().put(mName, new Variable(type, mPE));
            mExecutionState.getUsedProcessingElements().registerType(qualifiedName, mPE);
            mExecutionState.getNamespaceManager().addUsingDeclaration(qualifiedName);
            break;
        }
        case CONNECTION:
        {
            SType stype = ((ConnectionTypeStrategy)strategy).getSType();
            ConnectionType type = new ConnectionType();
            type.setSType(stype);
            mExecutionState.getUsedProcessingElements().registerType(
                    qualifiedName, type);
            mExecutionState.getNamespaceManager().addUsingDeclaration(qualifiedName);
            break;
        }
View Full Code Here

Examples of eu.admire.dispel.parser.types.ProcessingElementTypeType

        if (type instanceof ProcessingElementType)
        {
            // PE types are registered as variables
            // other types too?
            ProcessingElementType pe = (ProcessingElementType)type;
            ProcessingElementTypeType petype =
                new ProcessingElementTypeType(pe.getDescriptor());
            mType = petype;
            mExecutionState.getVariables().put(mName, new Variable(petype, type));
        }
    }
View Full Code Here

Examples of eu.admire.dispel.parser.types.ProcessingElementTypeType

            dispel.append(getSimpleName(type.getName()));
            usedTypes.add(type.getName());
        }
        else if (type instanceof ProcessingElementTypeType)
        {
            ProcessingElementTypeType proc = (ProcessingElementTypeType)type;
            ProcessingElementDescriptor desc = proc.getDescriptor();
            if (desc.getName() != null)
            {
                String simpleName = getSimpleName(desc.getName());
                usedTypes.add(simpleName);
                dispel.append("PE<");
View Full Code Here

Examples of eu.admire.dispel.parser.types.ProcessingElementTypeType

   
    public ProcessingElementTypeType getPEType()
    {
        ProcessingElementDescriptor descriptor =
            new SimpleProcessingElementDescriptor(mInputs, mOutputs, null);
        return new ProcessingElementTypeType(descriptor);
    }
View Full Code Here

Examples of eu.admire.dispel.parser.types.ProcessingElementTypeType

        }
        if (!(var.getType() instanceof ProcessingElementTypeType))
        {
            throw new TypeMismatchException("ProcessingElementTypeType", var.getValue());
        }
        ProcessingElementTypeType type = (ProcessingElementTypeType)var.getType();
        SimpleProcessingElementDescriptor descriptor = null;
        if (type.getDescriptor() != null)
        {
            descriptor =
                new SimpleProcessingElementDescriptor(null, type.getDescriptor(), null);
            descriptor.addSuperType(mExecutionState.getNamespaceManager().resolve(text));
        }
        mType = new ProcessingElementTypeType(descriptor);
    }
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.