Class PathNode

All Implemented Interfaces:
Cloneable

public class PathNode extends LeafNode<Path>
Represents a 'path' in a ConfigInstance, usually a filename.
Author:
gjoranv
  • Constructor Details

    • PathNode

      public PathNode()
    • PathNode

      public PathNode(FileReference fileReference)
  • Method Details

    • value

      public Path value()
      Overrides:
      value in class LeafNode<Path>
    • 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>
    • getFileReference

      public FileReference getFileReference()
    • toFileReferences

      public static List<FileReference> toFileReferences(List<PathNode> pathNodes)
    • toFileReferenceMap

      public static Map<String,FileReference> toFileReferenceMap(Map<String,PathNode> map)