Examples of Data


Examples of net.sf.laja.template.data.Data

  public static Object callMethodOrAccessFieldIfMatchingMethodNotFound(Class clazz, Object instance, String methodName, List<String> validMethodPrefixes, Args args) {
    int argumentsSize = args == null ? 0 : args.getArguments().size();
    Object[] arguments = new Object[argumentsSize];

    for (int i=0; i<argumentsSize; i++) {
      Data argument = args.getArguments().get(i);
      arguments[i] = argument.evaluate();
    }
    return callMethodOrAccessFieldIfMatchingMethodNotFound(clazz, instance, methodName, validMethodPrefixes, arguments);
  }
View Full Code Here

Examples of net.sf.orexio.lopf.Data

     
    return instanceManager;
  }
 
  public static void instance(Container container) throws IOException,ClassNotFoundException{
    Data            instanceManagerLink=container.data;
    ContainerInstanceManager  instanceManager;
   
    instanceManager=getInstanceManager(instanceManagerLink);
       
    instanceManager.process(container);
View Full Code Here

Examples of net.sf.uadetector.internal.data.Data

    final SerDeOption options = SerDeOption.PRETTY_PRINTING;
    final DataStore store = TestDataStoreFactory.produce();
    Serialization serialization = JsonConverter.serialize(store.getData(), options);
    assertThat(serialization.getWarnings()).isEmpty();
    final String json = serialization.getJson();
    final Data parsedData = JsonConverter.deserialize(json).getData();

    // can not be equals, because the IDs are different
    assertThat(store.getData().equals(parsedData)).isFalse();

    // must be equals, because the IDs are identical after conversion
    Serialization serialization2 = JsonConverter.serialize(store.getData(), options);
    assertThat(serialization2.getWarnings()).isEmpty();
    final String expectedJson = serialization2.getJson();
    final Data expectedData = JsonConverter.deserialize(expectedJson).getData();
    assertThat(json).isEqualTo(expectedJson);
    assertThat(parsedData).isEqualTo(expectedData);

    // print some JSON
    LOG.info(json);
View Full Code Here

Examples of net.tomp2p.storage.Data

    FutureDHT request;
    try {
      request = p.get(hash).setRequestP2PConfiguration(reqParam).setAll()
          .start();
      request.awaitUninterruptibly();
      Data f = request.getData();
      if (!request.isSuccess() || f == null) {
        logger.debug(String.format("Got no triple in key \"%s\" (%s)",
            locationKey, hash));
        return new ArrayList<Triple>(0);
      }
View Full Code Here

Examples of org.activiti.engine.impl.bpmn.data.Data

  protected IOSpecification createIOSpecification(BpmnParse bpmnParse, org.activiti.bpmn.model.IOSpecification specificationModel) {
    IOSpecification ioSpecification = new IOSpecification();

    for (DataSpec dataInputElement : specificationModel.getDataInputs()) {
      ItemDefinition itemDefinition = bpmnParse.getItemDefinitions().get(dataInputElement.getItemSubjectRef());
      Data dataInput = new Data(bpmnParse.getTargetNamespace() + ":" + dataInputElement.getId(), dataInputElement.getId(), itemDefinition);
      ioSpecification.addInput(dataInput);
    }

    for (DataSpec dataOutputElement : specificationModel.getDataOutputs()) {
      ItemDefinition itemDefinition = bpmnParse.getItemDefinitions().get(dataOutputElement.getItemSubjectRef());
      Data dataOutput = new Data(bpmnParse.getTargetNamespace() + ":" + dataOutputElement.getId(), dataOutputElement.getId(), itemDefinition);
      ioSpecification.addOutput(dataOutput);
    }

    for (String dataInputRef : specificationModel.getDataInputRefs()) {
      DataRef dataRef = new DataRef(dataInputRef);
View Full Code Here

Examples of org.apache.commons.scxml.model.Data

                    append("<!-- Body content was not serialized -->\n");
                b.append(indent).append("</datamodel>\n");
                return;
            }
            for (Iterator iter = data.iterator(); iter.hasNext();) {
                Data datum = (Data) iter.next();
                Node dataNode = datum.getNode();
                if (dataNode != null) {
                    StringWriter out = new StringWriter();
                    try {
                        Source input = new DOMSource(dataNode);
                        Result output = new StreamResult(out);
                        XFORMER.transform(input, output);
                    } catch (TransformerException te) {
                        org.apache.commons.logging.Log log = LogFactory.
                            getLog(SCXMLSerializer.class);
                        log.error(te.getMessage(), te);
                        b.append(indent).append(INDENT).
                            append("<!-- Data content not serialized -->\n");
                    }
                    b.append(indent).append(INDENT).append(out.toString());
                } else {
                    b.append(indent).append(INDENT).append("<data name=\"").
                        append(datum.getName()).append("\" expr=\"").
                        append(datum.getExpr()).append("\" />\n");
                }
            }
            b.append(indent).append("</datamodel>\n");
        }
    }
View Full Code Here

Examples of org.apache.commons.scxml2.model.Data

     * @throws XMLStreamException An exception processing the underlying {@link XMLStreamReader}.
     */
    private static void readData(final XMLStreamReader reader, final Configuration configuration, final Datamodel dm)
            throws XMLStreamException, ModelException {

        Data datum = new Data();
        datum.setId(readRequiredAV(reader, ELEM_DATA, ATTR_ID));
        datum.setExpr(readAV(reader, ATTR_EXPR));
        readNamespaces(configuration, datum);
        datum.setNode(readNode(reader, configuration, XMLNS_SCXML, ELEM_DATA, new String[] {"id"}));
        dm.addData(datum);
    }
View Full Code Here

Examples of org.apache.flink.examples.java.ml.LinearRegression.Data

  public static DataSet<Data> getDefaultDataDataSet(ExecutionEnvironment env) {

    List<Data> dataList = new LinkedList<Data>();
    for (Object[] data : DATA) {
      dataList.add(new Data((Double) data[0], (Double) data[1]));
    }
    return env.fromCollection(dataList);
  }
View Full Code Here

Examples of org.apache.isis.objectstore.xml.internal.data.Data

        }
        if (referencedOid == null) {
            return;
        }

        final Data fieldData = dataManager.loadData(referencedOid);

        final ObjectAdapter referencedAdapter = getAdapterManager().adapterFor(referencedOid);
        if (fieldData == null) {
            if (!referencedAdapter.isDestroyed()) {
                referencedAdapter.changeState(ResolveState.DESTROYED);
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.objectstores.xml.internal.data.Data

            LOG.debug("  save object " + onObject());
        }
        final String user = getAuthenticationSession().getUserName();
        onObject().setOptimisticLock(new FileVersion(user));

        final Data data = createObjectData(onObject(), true);
        getDataManager().save(data);
    }
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.