Class DefinitionAndValue<T>

    • Constructor Detail

      • DefinitionAndValue

        public DefinitionAndValue​(T root,
                                  ModelItem definition,
                                  Object value)
        Creates a definition and value pair
        Parameters:
        root - the root object of this definition and value pair
        definition - the definition
        value - the value
      • DefinitionAndValue

        public DefinitionAndValue​(T root,
                                  ModelItem definition,
                                  Object value,
                                  DefinitionAndValue<T> parent)
        Creates a definition and value pair
        Parameters:
        root - the root object of this definition and value pair
        definition - the definition
        value - the value
        parent - the parent of the definition and value pair
    • Method Detail

      • getRoot

        public T getRoot()
        Retrieves the root object of this definition and value pair
        Returns:
        the root
      • getValue

        public Object getValue()
        Retrieves the value
        Returns:
        the value
      • extractValues

        public static Map<String,​ObjectextractValues​(Map<String,​DefinitionAndValue> definitionAndValues)
        extract a map of values from a map of DefinitionAndValue
        Parameters:
        definitionAndValues - a map containing definition and values
        Returns:
        a map containing only values