Class PathNode

  • All Implemented Interfaces:
    java.lang.Cloneable

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

      • PathNode

        public PathNode()
    • Method Detail

      • value

        public java.nio.file.Path value()
        Overrides:
        value in class LeafNode<java.nio.file.Path>
      • getValue

        public java.lang.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<java.nio.file.Path>
        Returns:
        the String representation of the node value, or the 'null' object if the node value is null.
      • toString

        public java.lang.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<java.nio.file.Path>
        Returns:
        the String representation of the node value, or the string "(null)" if the value is null.
      • doSetValue

        protected boolean doSetValue​(java.lang.String stringVal)
        Specified by:
        doSetValue in class LeafNode<java.nio.file.Path>
      • toFileReferences

        public static java.util.List<FileReference> toFileReferences​(java.util.List<PathNode> pathNodes)
      • toFileReferenceMap

        public static java.util.Map<java.lang.String,​FileReference> toFileReferenceMap​(java.util.Map<java.lang.String,​PathNode> map)