Examples of addCase()


Examples of org.apache.ode.bpel.rtrep.v1.OSwitch.addCase()

        for (IfActivity.Case ccase : switchDef.getCases()) {
            OSwitch.OCase ocase = new OSwitch.OCase(_context.getOProcess());
            ocase.activity = _context.compile(ccase.getActivity());
            ocase.expression = first ? _context.compileExpr(switchDef.getCondition())
                    : (ccase.getCondition() == null ? _context.constantExpr(true) : _context.compileExpr(ccase.getCondition()));
            oswitch.addCase(ocase);
            first = false;
        }
    }
}
View Full Code Here

Examples of org.apache.ode.bpel.rtrep.v1.OSwitch.addCase()

    for (SwitchActivity.Case ccase : switchDef.getCases()) {
      OSwitch.OCase ocase = new OSwitch.OCase(_context.getOProcess());
      ocase.activity = _context.compile(ccase.getActivity());
      ocase.expression = (ccase.getCondition() == null ? _context.constantExpr(true) : _context.compileExpr(ccase.getCondition()));
      oswitch.addCase(ocase);
    }
  }
}
View Full Code Here

Examples of org.apache.ode.bpel.rtrep.v2.OSwitch.addCase()

        boolean first = true;
        if (switchDef.getActivity() != null) {
            OSwitch.OCase ocase = new OSwitch.OCase(_context.getOProcess());
            ocase.activity = _context.compile(switchDef.getActivity());
            ocase.expression = _context.compileExpr(switchDef.getCondition());
            oswitch.addCase(ocase);
            first = false;
        }

        for (IfActivity.Case ccase : switchDef.getCases()) {
            OSwitch.OCase ocase = new OSwitch.OCase(_context.getOProcess());
View Full Code Here

Examples of org.apache.ode.bpel.rtrep.v2.OSwitch.addCase()

        for (IfActivity.Case ccase : switchDef.getCases()) {
            OSwitch.OCase ocase = new OSwitch.OCase(_context.getOProcess());
            ocase.activity = _context.compile(ccase.getActivity());
            ocase.expression = first ? _context.compileExpr(switchDef.getCondition())
                    : (ccase.getCondition() == null ? _context.constantExpr(true) : _context.compileExpr(ccase.getCondition()));
            oswitch.addCase(ocase);
            first = false;
        }
    }
}
View Full Code Here

Examples of org.apache.ode.bpel.rtrep.v2.OSwitch.addCase()

    for (SwitchActivity.Case ccase : switchDef.getCases()) {
      OSwitch.OCase ocase = new OSwitch.OCase(_context.getOProcess());
      ocase.activity = _context.compile(ccase.getActivity());
      ocase.expression = (ccase.getCondition() == null ? _context.constantExpr(true) : _context.compileExpr(ccase.getCondition()));
      oswitch.addCase(ocase);
    }
  }
}
View Full Code Here

Examples of org.apache.stanbol.enhancer.nlp.morpho.MorphoFeatures.addCase()

        enhancer.addAnnotation(NlpAnnotations.POS_ANNOTATION, Value.value(
            new PosTag("PN", Pos.ProperNoun),0.95));
        enhancer.addAnnotation(NlpAnnotations.POS_ANNOTATION, Value.value(
            new PosTag("N", LexicalCategory.Noun),0.87));
        MorphoFeatures morpho = new MorphoFeatures("enhance");
        morpho.addCase(new CaseTag("test-case-1",Case.Comitative));
        morpho.addCase(new CaseTag("test-case-2",Case.Abessive));
        morpho.addDefinitness(Definitness.Definite);
        morpho.addPerson(Person.First);
        morpho.addPos(new PosTag("PN", Pos.ProperNoun));
        morpho.addGender(new GenderTag("test-gender", Gender.Masculine));
View Full Code Here

Examples of org.apache.synapse.mediators.filters.SwitchMediator.addCase()

                log.error(msg);
                throw new SynapseException(msg);
            }
            aCase.setCaseMediator(AnonymousListMediatorFactory.createAnonymousListMediator(
                    caseElem, properties));
            switchMediator.addCase(aCase);
        }
        iter = elem.getChildrenWithName(DEFAULT_Q);
        while (iter.hasNext()) {
            SwitchCase aCase = new SwitchCase();
            aCase.setCaseMediator(AnonymousListMediatorFactory.createAnonymousListMediator(
View Full Code Here

Examples of org.apache.synapse.mediators.filters.SwitchMediator.addCase()

                MediatorFactoryFinder.getInstance().getMediator((OMElement) iter.next()));
        }

        iter = elem.getChildrenWithName(DEFAULT_Q);
        while (iter.hasNext()) {
            switchMediator.addCase((SwitchCaseMediator)
                MediatorFactoryFinder.getInstance().getMediator((OMElement) iter.next()));
            break; // add only the *first* default if multiple are specified, ignore rest if any
        }

        return switchMediator;
View Full Code Here

Examples of org.apache.synapse.mediators.filters.SwitchMediator.addCase()

        // set its common attributes such as tracing etc
        initMediator(switchMediator,elem);

        Iterator iter = elem.getChildrenWithName(CASE_Q);
        while (iter.hasNext()) {
            switchMediator.addCase((SwitchCaseMediator)
                MediatorFactoryFinder.getInstance().getMediator((OMElement) iter.next()));
        }

        iter = elem.getChildrenWithName(DEFAULT_Q);
        while (iter.hasNext()) {
View Full Code Here

Examples of org.apache.synapse.mediators.filters.SwitchMediator.addCase()

            }
        }

        Iterator iter = elem.getChildrenWithName(CASE_Q);
        while (iter.hasNext()) {
            switchMediator.addCase((SwitchCaseMediator)
                MediatorFactoryFinder.getInstance().getMediator((OMElement) iter.next()));
        }

        iter = elem.getChildrenWithName(DEFAULT_Q);
        while (iter.hasNext()) {
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.