Class MetadataSnapshot

  • All Implemented Interfaces:
    java.io.Serializable, java.util.Map<java.lang.String,​java.lang.Object>, org.bson.conversions.Bson

    public class MetadataSnapshot
    extends VitamDocument<MetadataSnapshot>
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  MetadataSnapshot.PARAMETERS
      Parameters
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      Name of the parameter
      <T> T getValue​(java.lang.Class<T> clasz)
      Get the contract parameter value
      MetadataSnapshot newInstance​(com.fasterxml.jackson.databind.JsonNode content)
      Make a new instance of the document with the given json
      MetadataSnapshot setId​(java.lang.String id)  
      MetadataSnapshot setName​(java.lang.String name)
      Set or change the parameter name
      <T> MetadataSnapshot setValue​(T value)
      Set or change the parameter value
      • Methods inherited from class org.bson.Document

        append, clear, containsKey, containsValue, entrySet, equals, get, get, get, getBoolean, getBoolean, getDate, getDouble, getEmbedded, getEmbedded, getInteger, getInteger, getList, getList, getLong, getObjectId, getString, hashCode, isEmpty, keySet, parse, parse, put, putAll, remove, size, toBsonDocument, toJson, toJson, toJson, toJson, values
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.bson.conversions.Bson

        toBsonDocument
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
    • Constructor Detail

      • MetadataSnapshot

        public MetadataSnapshot()
      • MetadataSnapshot

        public MetadataSnapshot​(java.lang.String content)
      • MetadataSnapshot

        public MetadataSnapshot​(com.fasterxml.jackson.databind.JsonNode content)
      • MetadataSnapshot

        public MetadataSnapshot​(org.bson.Document content)
    • Method Detail

      • newInstance

        public MetadataSnapshot newInstance​(com.fasterxml.jackson.databind.JsonNode content)
        Description copied from class: VitamDocument
        Make a new instance of the document with the given json
        Specified by:
        newInstance in class VitamDocument<MetadataSnapshot>
        Parameters:
        content - document structure as json
        Returns:
        new document with the json as content
      • setId

        public MetadataSnapshot setId​(java.lang.String id)
        Parameters:
        id - the id of parameter value
        Returns:
        MetadataSnapshot
      • getName

        public java.lang.String getName()
        Name of the parameter
        Returns:
        name of the parameter
      • setName

        public MetadataSnapshot setName​(java.lang.String name)
        Set or change the parameter name
        Parameters:
        name - to set
        Returns:
        this
      • getValue

        public <T> T getValue​(java.lang.Class<T> clasz)
        Get the contract parameter value
        Returns:
        this
      • setValue

        public <T> MetadataSnapshot setValue​(T value)
        Set or change the parameter value
        Parameters:
        value - to set
        Returns:
        this