Package org.openmhealth.reference.domain

Examples of org.openmhealth.reference.domain.MetaData


            "A data point was not a JSON object: " + i);
      }
      ObjectNode dataObject = (ObjectNode) dataPoint;
     
      // Attempt to get the meta-data;
      MetaData metaData = null;
      JsonNode metaDataNode = dataObject.get(Data.JSON_KEY_METADATA);
      if(metaDataNode != null) {
        metaData = mapper.convertValue(metaDataNode, MetaData.class);
      }
     
View Full Code Here


        Object[] pointData = new Object[6];
        pointData[0] = point.getOwner();
        pointData[1] = point.getSchemaId();
        pointData[2] = point.getSchemaVersion();
       
        MetaData metaData = point.getMetaData();
        if(metaData == null) {
          pointData[3] = null;
          pointData[4] = null;
        }
        else {
          pointData[3] = metaData.getId();
          pointData[4] =
            ISOW3CDateTimeFormat
              .any()
              .print(metaData.getTimestamp());
        }
       
        pointData[5] = JSON_MAPPER.writeValueAsString(point.getData());
       
        points.add(pointData);
View Full Code Here

                          metaDataTimestampString));
                }
                // If the builder has no non-null members,
                // create a MetaData object; otherwise, just
                // leave it as null.
                MetaData metaData =
                  ((metaDataBuilder.isNull()) ?
                    null :
                    metaDataBuilder.build());
               
                // Get the data.
View Full Code Here

TOP

Related Classes of org.openmhealth.reference.domain.MetaData

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.