Package io.apicurio.datamodels.paths
Class NodePath
- java.lang.Object
-
- io.apicurio.datamodels.paths.NodePath
-
public class NodePath extends Object
Represents a path to a node within the data model. Any node in a data model can be represented by its path. The node path can be used to identify and locate a single node in the document tree.- Author:
- eric.wittmann@gmail.com
-
-
Constructor Summary
Constructors Constructor Description NodePath()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappend(NodePathSegment segment)NodePathSegmentgetLastSegment()List<NodePathSegment>getSegments()static NodePathparse(String path)Parses a stringified node path and returns an instance.voidprepend(NodePathSegment segment)List<String>toSegments()StringtoString()StringtoString(boolean escaped)
-
-
-
Method Detail
-
append
public void append(NodePathSegment segment)
-
prepend
public void prepend(NodePathSegment segment)
-
getSegments
public List<NodePathSegment> getSegments()
-
getLastSegment
public NodePathSegment getLastSegment()
-
toString
public String toString(boolean escaped)
-
-