Package com.puppetlabs.geppetto.pp

Examples of com.puppetlabs.geppetto.pp.VirtualCollectQuery


        if(result == null)
          result = defaultCase(theEObject);
        return result;
      }
      case PPPackage.VIRTUAL_COLLECT_QUERY: {
        VirtualCollectQuery virtualCollectQuery = (VirtualCollectQuery) theEObject;
        T result = caseVirtualCollectQuery(virtualCollectQuery);
        if(result == null)
          result = caseUnaryExpression(virtualCollectQuery);
        if(result == null)
          result = caseICollectQuery(virtualCollectQuery);
View Full Code Here


    EqualityExpression predicate = pf.createEqualityExpression();
    predicate.setLeftExpr(createNameOrReference("name"));
    predicate.setOpName("==");
    predicate.setRightExpr(createNameOrReference("Luke"));

    VirtualCollectQuery q = pf.createVirtualCollectQuery();
    q.setExpr(predicate);
    ce.setQuery(q);

    // -- add some attributes
    AttributeOperations aos = pf.createAttributeOperations();
    aos.getAttributes().add(createAttributeDefinition("role", "jedi"));
View Full Code Here

    EqualityExpression predicate = pf.createEqualityExpression();
    predicate.setLeftExpr(createNameOrReference("name"));
    predicate.setOpName("==");
    predicate.setRightExpr(createNameOrReference("Luke"));

    VirtualCollectQuery q = pf.createVirtualCollectQuery();
    q.setExpr(predicate);
    ce.setQuery(q);

    // -- test without attributes
    tester.validator().checkCollectExpression(ce);
    tester.diagnose().assertOK();
View Full Code Here

    EqualityExpression predicate = pf.createEqualityExpression();
    predicate.setLeftExpr(createNameOrReference("name"));
    predicate.setOpName("==");
    predicate.setRightExpr(createNameOrReference("Luke"));

    VirtualCollectQuery q = pf.createVirtualCollectQuery();
    q.setExpr(predicate);
    ce.setQuery(q);

    rel2.setRightExpr(ce);

    tester.validator().checkRelationshipExpression(rel2);
View Full Code Here

TOP

Related Classes of com.puppetlabs.geppetto.pp.VirtualCollectQuery

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.