Examples of Case


Examples of nexj.core.meta.integration.service.Case

               return "Case";
            }

            public void exportActivity(Activity activity) throws IOException
            {
               Case c = (Case)activity;

               if (c.getMessage() != null)
               {
                  m_writer.writeAttribute("message", c.getMessage().getName());
               }

               m_writer.closeElement();

               exportSequence(activity);
View Full Code Here

Examples of nexj.core.meta.integration.service.Case

                     return "Case";
                  }

                  public Branch createBranch()
                  {
                     return new Case();
                  }

                  public void loadActivity(Element element, Activity activity)
                  {
                     String sMessage = XMLUtil.getStringAttr(element, "message");
View Full Code Here

Examples of org.apache.ws.jaxme.sqls.Case

        } else if (pPart instanceof ColumnReference
                ||  pPart instanceof Value
                ||  pPart instanceof RawSQLCode) {
            // Ignore me
        } else if (pPart instanceof Case) {
            Case casePart = (Case) pPart;
            addPart(casePart.getCheckedValue());
            Object o = casePart.getElseValue();
            if (o != null) {
              addPart(o);
            }
            Case.When[] whens = casePart.getWhens();
            for (int i = 0;  i < whens.length;  i++) {
              Case.When when = whens[i];
              addPart(when.getCondition());
                addPart(when.getValue());
            }
View Full Code Here

Examples of org.candle.decompiler.intermediate.expression.Case

    for(int i=0, j=handles.length; i<j; i++) {
      InstructionHandle ih = handles[i];
      int match = matches[i];

      Resolved resolved = new Resolved(line.getInstruction(), BasicType.INT, ""+match);
      Case caseEntry = new Case(line.getInstruction(), ih, resolved);
      cases.add(caseEntry);
    }
   
    if(select.getTarget()!=null) {
      DefaultCase defaultCase = new DefaultCase(line.getInstruction(), select.getTarget());
View Full Code Here

Examples of org.jitterbit.util.string.Case

    }

    private void convertMappings() throws Exception {
        String newSourceSchema = null;
        String newTargetSchema = null;
        Case toCase = null;
        if (inputTransform != null) {
            newSourceSchema = inputTransform.getNewSchemaName();
            toCase = inputTransform.getNewCase();
        }
        if (outputTransform != null) {
            newTargetSchema = outputTransform.getNewSchemaName();
            assert toCase == null || toCase == outputTransform.getNewCase();
            toCase = outputTransform.getNewCase();
        }
        if (toCase == null) {
            throw new RuntimeException("One of inputTransform or outputTransform must be set");
        }
        for (Element mapping : Elements.matching("Entity/Mappings/Mapping", dom)) {
            Element script = KongaXmlUtils.getFirstElementChildOfName(mapping, "konga.string");
            if (script != null) {
                String mapString = KongaXmlUtils.getElementValue(script);
                String convertedMapString = Transform.switchCaseOwnerForDbDataElement(
                                mapString, toCase, toCase.convert(newSourceSchema), toCase.convert(newTargetSchema));
                script.setTextContent(convertedMapString);
            }
        }
    }
View Full Code Here

Examples of org.jooq.Case

        assertEquals(1, j);
    }

    @Test
    public void testCaseValueFunction() throws Exception {
        Case decode = decode();
        CaseValueStep<Integer> value = decode.value(FIELD_ID1);
        CaseWhenStep<Integer, String> c = value.when(1, "one");

        assertEquals("case \"TABLE1\".\"ID1\" when 1 then 'one' end", r_refI().render(c));
        assertEquals("case \"TABLE1\".\"ID1\" when ? then ? end", r_ref().render(c));
        assertEquals("case \"TABLE1\".\"ID1\" when 1 then 'one' end", r_decI().render(c));
View Full Code Here

Examples of org.jooq.Case

        context.assertIsSatisfied();
    }

    @Test
    public void testCaseConditionFunction() throws Exception {
        Case decode = decode();
        CaseConditionStep<String> c = decode.when(FIELD_ID1.equal(1), "one");

        assertEquals("case when \"TABLE1\".\"ID1\" = 1 then 'one' end", r_refI().render(c));
        assertEquals("case when \"TABLE1\".\"ID1\" = ? then ? end", r_ref().render(c));
        assertEquals("case when \"TABLE1\".\"ID1\" = 1 then 'one' end", r_decI().render(c));
        assertEquals("case when \"TABLE1\".\"ID1\" = ? then ? end", r_dec().render(c));
View Full Code Here

Examples of org.rascalmpl.ast.Case

 
  public static List<CaseBlock> precompute(List<Case> cases) {
    ArrayList<CaseBlock> blocks = new ArrayList<CaseBlock>(cases.size());
   
    for (int i = 0; i < cases.size(); i++) {
      Case c = cases.get(i);
      if (isConcreteSyntaxPattern(c)) {
        ConcreteBlock b = new ConcreteBlock();
        b.add(c);
        for (int j = i + 1; j < cases.size(); j++) {
          Case d = cases.get(j);
          if (isConcreteSyntaxPattern(d) && !isIUPTRPattern(d)) {
            b.add(d);
            i++;
          } else {
            break;
          }
        }
        blocks.add(b);
      } else if (isIUPTRPattern(c)) {
        blocks.add(new DefaultBlock(c));
      } else if (isConstantTreePattern(c)) {
        NodeCaseBlock b = new NodeCaseBlock();
        b.add(c);
        for (int j = i + 1; j < cases.size(); j++) {
          Case d = cases.get(j);
          if (isConstantTreePattern(d) && !isIUPTRPattern(d)) {
            b.add(d);
            i++;
          } else {
            break;
View Full Code Here

Examples of org.sleuthkit.autopsy.casemodule.Case

            }
        });
        Case.addPropertyChangeListener((PropertyChangeEvent evt) -> {
            switch (Case.Events.valueOf(evt.getPropertyName())) {
                case CURRENT_CASE:
                    Case newCase = (Case) evt.getNewValue();
                    if (newCase != null) { // case has been opened
                        setCase(newCase);    //connect db, groupmanager, start worker thread
                    } else { // case is closing
                        //close window, reset everything
                        SwingUtilities.invokeLater(ImageAnalyzerTopComponent::closeTopComponent);
View Full Code Here

Examples of org.sleuthkit.autopsy.casemodule.Case

        //check case
        if (!Case.existsCurrentCase()) {
            return;
        }
        final Case currentCase = Case.getCurrentCase();

        if (ImageAnalyzerModule.isCaseStale(currentCase)) {
            //case is stale, ask what to do
            int answer = JOptionPane.showConfirmDialog(WindowManager.getDefault().getMainWindow(), "The image / video databse may be out of date. "
                                                       + "Do you want to update and listen for further ingest results?\n"
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.