Package com.yahoo.config
Class PathNode
- java.lang.Object
-
- com.yahoo.config.Node
-
- com.yahoo.config.LeafNode<java.nio.file.Path>
-
- com.yahoo.config.PathNode
-
- All Implemented Interfaces:
java.lang.Cloneable
public class PathNode extends LeafNode<java.nio.file.Path>
Represents a 'path' in aConfigInstance
, usually a filename.- Author:
- gjoranv
-
-
Field Summary
-
Fields inherited from class com.yahoo.config.LeafNode
initialized, value
-
-
Constructor Summary
Constructors Constructor Description PathNode()
PathNode(FileReference fileReference)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
doSetValue(java.lang.String stringVal)
FileReference
getFileReference()
java.lang.String
getValue()
Subclasses must implement this, in compliance with the rules given in the return tag.static java.util.Map<java.lang.String,FileReference>
toFileReferenceMap(java.util.Map<java.lang.String,PathNode> map)
static java.util.List<FileReference>
toFileReferences(java.util.List<PathNode> pathNodes)
java.lang.String
toString()
Subclasses must implement this, in compliance with the rules given in the return tag.java.nio.file.Path
value()
-
Methods inherited from class com.yahoo.config.Node
postInitialize
-
-
-
-
Constructor Detail
-
PathNode
public PathNode()
-
PathNode
public PathNode(FileReference fileReference)
-
-
Method Detail
-
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.
-
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.
-
doSetValue
protected boolean doSetValue(java.lang.String stringVal)
- Specified by:
doSetValue
in classLeafNode<java.nio.file.Path>
-
getFileReference
public FileReference getFileReference()
-
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)
-
-