Package io.apicurio.datamodels.paths
Class NodePathSegment
- java.lang.Object
-
- io.apicurio.datamodels.paths.NodePathSegment
-
public class NodePathSegment extends Object
Represents a single segment of a node path.- Author:
- eric.wittmann@gmail.com
-
-
Constructor Summary
Constructors Constructor Description NodePathSegment(String value, boolean index)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetValue()booleanisIndex()static NodePathSegmentparse(String segment)Parse a single segment of a node path from a String.StringtoString()StringtoString(boolean escaped)
-
-
-
Constructor Detail
-
NodePathSegment
public NodePathSegment(String value, boolean index)
Constructor.- Parameters:
value-index-
-
-
Method Detail
-
getValue
public String getValue()
-
isIndex
public boolean isIndex()
-
toString
public String toString(boolean escaped)
-
parse
public static NodePathSegment parse(String segment)
Parse a single segment of a node path from a String.- Parameters:
segment-
-
-