public class BeanPropertyPath extends Object
| Constructor and Description |
|---|
BeanPropertyPath(String path) |
| Modifier and Type | Method and Description |
|---|---|
BeanPropertyPath |
append(String name)
Append the supplied path to this path to form a new instance of
PropertyPath.This instance is not mutated |
BeanPropertyPath |
appendIndex(int index)
Append the supplied index to this path to form a new instance of
PropertyPath.This instance is not mutated |
BeanPropertyPath |
appendIndex(String index)
Append the supplied index to this path to form a new instance of
PropertyPath.This instance is not mutated |
Integer |
depth()
Return the depth of this path starting from 0 at root level.
|
boolean |
equals(Object obj) |
String |
fullPath()
Return the full path including indexes if present
|
String |
fullPathWithNoIndexes()
Return the path with all array indexes removed e.g.
|
int |
hashCode() |
boolean |
isEmpty() |
boolean |
startsWith(String prefix)
Return
true if this path starts with the supplied prefix |
String |
toString() |
public BeanPropertyPath(String path)
public BeanPropertyPath append(String name)
PropertyPath.This instance is not mutatedpublic BeanPropertyPath appendIndex(String index)
PropertyPath.This instance is not mutatedpublic BeanPropertyPath appendIndex(int index)
PropertyPath.This instance is not mutatedpublic String fullPathWithNoIndexes()
public boolean startsWith(String prefix)
true if this path starts with the supplied prefixpublic String fullPath()
public boolean isEmpty()
public Integer depth()
Copyright © 2015. All rights reserved.