Examples of StringPair


Examples of org.boris.pecoff4j.resources.StringPair

        }
        return vfi;
    }

    public static StringPair readStringPair(IDataReader dr) throws IOException {
        StringPair sp = new StringPair();
        sp.setLength(dr.readWord());
        sp.setValueLength(dr.readWord());
        sp.setType(dr.readWord());
        sp.setKey(dr.readUnicode());
        if (sp.getKey().length() % 2 == 0) {
            dr.readWord();
            sp.setPadding(2);
        }
        sp.setValue(dr.readUnicode());
        return sp;
    }
View Full Code Here

Examples of org.destecs.core.vdmlink.StringPair

          debugErr("Tried to set unlinked shared design parameter: "
              + parameterName);
          throw new RemoteSimulationException("Tried to set unlinked shared design parameter: "
              + parameterName);
        }
        @SuppressWarnings("deprecation")
        StringPair vName = links.getBoundVariable(parameterName);
        Object[] objValue = (Object[]) parameter.get("value");
        Object[] dimension = (Object[]) parameter.get("size");

        for (ClassDefinition cd : controller.getInterpreter().getClasses())
View Full Code Here

Examples of org.destecs.core.vdmlink.StringPair

        debugErr("Tried to set unlinked shared design parameter: "
            + parameterName);
        throw new RemoteSimulationException("Tried to set unlinked shared design parameter: "
            + parameterName);
      }
      @SuppressWarnings("deprecation")
      StringPair vName = links.getBoundVariable(parameterName);

      for (ClassDefinition cd : controller.getInterpreter().getClasses())
      {
        if (!cd.getName().equals(vName.instanceName))
View Full Code Here

Examples of org.jacorb.poa.util.StringPair

        Enumeration en = objectMap.keys();

        for ( int i = 0; i < result.length; i++ )
        {
            oidbak = (ByteArrayKey) en.nextElement();
            result[i] = new StringPair
            (
                oidbak.toString(),
                objectMap.get(oidbak).getClass().getName()
            );
        }
View Full Code Here

Examples of org.jacorb.poa.util.StringPair

        Iterator en = queue.iterator();
        ServerRequest sr;
        for (int i=0; i<result.length; i++)
        {
            sr = (ServerRequest) en.next();
            result[i] = new StringPair(Integer.toString(sr.requestId()), new String( sr.objectId() ) );
        }
        return result;
    }
View Full Code Here

Examples of org.languagetool.bitext.StringPair

      srcRule = finalizeRule();
    } else if (qName.equals("target")) {
      trgRule = finalizeRule();
    } else if (qName.equals("example")) {
      if (inCorrectExample) {
        correctExamples.add(new StringPair(srcExample.getExample(), trgExample.getExample()));
      } else if (inIncorrectExample) {
        final StringPair examplePair = new StringPair(srcExample.getExample(), trgExample.getExample());
        if (trgExample.getCorrections() == null) {
          incorrectExamples.add(new IncorrectBitextExample(examplePair));
        } else {
          final List<String> corrections = trgExample.getCorrections();
          final String[] correctionArray = corrections.toArray(new String[corrections.size()]);
View Full Code Here

Examples of org.woped.metrics.metricsCalculation.StringPair

          else if(oldpr.run(new FileInputStream(f),false))
            edit = oldpr.getEditor()[0];
          else continue;
          MetricsUIRequestHandler ui = new MetricsUIRequestHandler(edit);
          for(String metric:metricsList){
            StringPair result;
            if(metric != null)
              result = ui.calculateSingle(metricsConfig, metric);
            else
              result = new StringPair("","");
            write.write(","+result.getValue());
          }
          write.write("\r\n");
          edit.closeEditor();
          index++;
        }
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.