public class Path extends Object
Modifier and Type | Field and Description |
---|---|
static String |
NULL_INDEXES
Unfortunately, we made a mistake in the original definition of the ^null property for embedded
collections.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Compares on complete path
|
Path |
extend(String name) |
Path |
getPrevious()
Get the previous path; for root this will be null
|
String |
getSegment()
Get this segment of the path.
|
int |
hashCode()
Generates hash code for complete path
|
static Path |
of(String pathString)
Convert an x.y.z path string back into a Path
|
static Path |
root() |
Object |
throwIllegalState(String message)
Convenient way to include path location in the exception message.
|
Object |
throwIllegalState(String message,
Throwable cause)
Convenient way to include path location in the exception message.
|
String |
toPathString()
Create the full x.y.z string
|
String |
toString() |
public static final String NULL_INDEXES
public static Path root()
public String toPathString()
public String getSegment()
public Path getPrevious()
public boolean equals(Object obj)
public int hashCode()
public Object throwIllegalState(String message)
Copyright © 2013. All Rights Reserved.