Class ModelNode

All Implemented Interfaces:
Cloneable

public class ModelNode extends LeafNode<Path>
Represents a 'model' in a ConfigInstance.
Author:
bratseth
  • Constructor Details

    • ModelNode

      public ModelNode()
    • ModelNode

      public ModelNode(ModelReference modelReference)
  • Method Details

    • getValue

      public String getValue()
      Description copied from class: LeafNode
      Subclasses must implement this, in compliance with the rules given in the return tag.
      Specified by:
      getValue in class LeafNode<Path>
      Returns:
      the String representation of the node value, or the 'null' object if the node value is null.
    • toString

      public String toString()
      Description copied from class: LeafNode
      Subclasses must implement this, in compliance with the rules given in the return tag.
      Specified by:
      toString in class LeafNode<Path>
      Returns:
      the String representation of the node value, or the string "(null)" if the value is null.
    • doSetValue

      protected boolean doSetValue(String stringVal)
      Specified by:
      doSetValue in class LeafNode<Path>
    • getModelReference

      public ModelReference getModelReference()
    • toModelReferences

      public static List<ModelReference> toModelReferences(List<ModelNode> modelNodes)
    • toModelReferenceMap

      public static Map<String,ModelReference> toModelReferenceMap(Map<String,ModelNode> nodeMap)