Examples of addAnnotation()


Examples of eu.admire.dispel.engine.RegisteredObject.addAnnotation()

        {
            for (Entry<String, Expression> annotation : annotations.entrySet())
            {
                Object value =
                    annotation.getValue().evaluate(mExecutionState.getVariables());
                reg.addAnnotation(annotation.getKey(), value);
            }
            mRegistered.put(qName, reg);
        }
        else
        {
View Full Code Here

Examples of eu.admire.dispel.graph.ExternalInputNode.addAnnotation()

               
        // insert an external input node which connects to the results
        ExternalInputNode externalInput =
            new ExternalInputNode(transferName, mRootGateway);
        target.replaceInput(name, index, externalInput.getOutput());
        externalInput.addAnnotation(AnnotationKeys.GATEWAY, targetGateway);
        graph.add(externalInput);
    }
   
    private void replaceTarget(
            Connection connection,
View Full Code Here

Examples of eu.admire.dispel.graph.ExternalOutputNode.addAnnotation()

            new ExternalOutputNode(transferName, mRootGateway);
        RequestNodeInput newInput =
            new SingleRequestNodeInput(externalOutput, ExternalOutputNode.INPUT_NAME, 0);
        replaceTarget(connection, target, newInput);
        externalOutput.getAllInputs().get(ExternalOutputNode.INPUT_NAME).put(0, connection);
        externalOutput.addAnnotation(AnnotationKeys.GATEWAY, sourceGateway);
        graph.add(externalOutput);
               
        // insert an external input node which connects to the results
        ExternalInputNode externalInput =
            new ExternalInputNode(transferName, mRootGateway);
View Full Code Here

Examples of eu.admire.dispel.graph.LiteralValuesNode.addAnnotation()

    }
   
    public void testLiteralTupleTypeWithRest() throws Exception
    {
        LiteralValuesNode literal = new LiteralValuesNode();
        literal.addAnnotation(AnnotationKeys.LOCATION, mLocation);
        literal.add(ListMarker.END);
        Map<String, Object> tuple = new HashMap<String, Object>();
        tuple.put("a", 10);
        tuple.put("b", "test");
        literal.add(tuple);
View Full Code Here

Examples of eu.admire.dispel.graph.ProcessingElementNode.addAnnotation()

    {
        GatewayLocation gw1 = new SimpleGatewayLocation("GWA", "EPR");
        GatewayLocation gw2 = new SimpleGatewayLocation("GWB", "EPR");
        Graph graph = new Graph();
        ProcessingElementNode a = new ProcessingElementNode("A");
        a.addAnnotation(AnnotationKeys.GATEWAY, gw1);
        ProcessingElementNode b = new ProcessingElementNode("B");
        b.addAnnotation(AnnotationKeys.GATEWAY, gw1);
        ProcessingElementNode c = new ProcessingElementNode("C");
        c.addAnnotation(AnnotationKeys.GATEWAY, gw2);
        b.connectInput("in", 0, a.getOutput("out", 0));
View Full Code Here

Examples of eu.admire.dispel.graph.RequestNode.addAnnotation()

            value = variable.getValue(mPEVariableArrayIndices);
        }
        if (value instanceof RequestNode)
        {
            RequestNode node = (RequestNode)value;
            node.addAnnotation(mAnnotationKey, mAnnotationValue);
        }
        else
        {
            throw new TypeMismatchException("ProcessingElement", value);
        }
View Full Code Here

Examples of eu.admire.dispel.graph.ResultNode.addAnnotation()

        ProcessingElementNode node2 = new ProcessingElementNode("2");
        node2.addAnnotation(AnnotationKeys.LOCATION, location1);
        ProcessingElementNode node3 = new ProcessingElementNode("3");
        node3.addAnnotation(AnnotationKeys.LOCATION, location2);
        ResultNode result = new ResultNode("name");
        result.addAnnotation(AnnotationKeys.LOCATION, location2);
        node1.connectOutput("output", 0, node2.getInput("input", 0));
        node2.connectOutput("output", 0, node3.getInput("input", 0));
        node3.connectOutput("output", 0, result.getInput());
        Graph graph = new Graph();
        graph.add(node1);
View Full Code Here

Examples of eu.admire.dispel.parser.types.DomainType.addAnnotation()

   
    public DomainType getType()
    {
        DomainType domainType = new DomainType(mDomainType);
        List<Object> expressions = new ArrayList<Object>();
        domainType.addAnnotation(
                AnnotationKeys.ASSERTION_EXPRESSIONS, expressions);
        for (WithAssertionStrategy assertion : mAssertions)
        {
            if (assertion.getAnnotationKey() != null)
            {
View Full Code Here

Examples of javassist.bytecode.AnnotationsAttribute.addAnnotation()

        }
       
        final javassist.bytecode.annotation.Annotation copy = toJavassistAnnotation(annotation);
       
       
        attribute.addAnnotation(copy);
       
        classFile.addAttribute(attribute);
       
    }
   
View Full Code Here

Examples of mf.org.apache.xerces.impl.xs.SchemaGrammar.addAnnotation()

                }
                else if (componentType.equals(SchemaSymbols.ELT_SIMPLETYPE)) {
                    fSimpleTypeTraverser.traverseGlobal(globalComp, currSchemaDoc, currSG);
                }
                else if (componentType.equals(SchemaSymbols.ELT_ANNOTATION)) {
                    currSG.addAnnotation(fElementTraverser.traverseAnnotationDecl(globalComp, currSchemaDoc.getSchemaAttrs(), true, currSchemaDoc));
                    sawAnnotation = true;
                }
                else {
                    reportSchemaError("s4s-elt-invalid-content.1", new Object [] {SchemaSymbols.ELT_SCHEMA, DOMUtil.getLocalName(globalComp)}, globalComp);
                }
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.