public class Path extends Object
Modifier and Type | Method and Description |
---|---|
int |
depth()
ROOT is 0, top level Entity properties are 1, embedded things are higher.
|
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
|
boolean |
isRoot() |
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 Path root()
public String toPathString()
public String getSegment()
public Path getPrevious()
public boolean isRoot()
public boolean equals(Object obj)
public int hashCode()
public Object throwIllegalState(String message)
public Object throwIllegalState(String message, Throwable cause)
public int depth()
Copyright © 2016. All rights reserved.