public class BasicPojoPath extends Object implements PojoPath
| Modifier and Type | Field and Description |
|---|---|
private String |
function |
private Integer |
index |
private String |
parentPath |
private String |
pojoPath |
private String |
segment |
SEPARATOR| Constructor and Description |
|---|
BasicPojoPath(String pojoPath)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFunction()
This method gets the name of the function given by the
segment or
null if it is no function. |
Integer |
getIndex()
This method gets the index given by the
segment or null if it
is no index. |
String |
getParentPath()
This method gets the parent-path of this path.
|
String |
getPojoPath()
This method gets the actual
Pojo path represented by this object. |
String |
getSegment()
This method gets the last segment of this current
Pojo path. |
String |
toString() |
private final String pojoPath
getPojoPath()private final String parentPath
getParentPath()private final String segment
getSegment()private final String function
getFunction()private final Integer index
getIndex()public String getPojoPath()
Pojo path represented by this object. As an
example this method may return "foo.bar.property".getPojoPath in interface PojoPropertyPathPojoPropertyPath.public String getParentPath()
"foo.bar.property" then this method would return
"foo.bar".getParentPath in interface PojoPropertyPathnull if this is the root-segment.public String getSegment()
Pojo path. E.g. if
this path represents "foo.bar.property" then this method would return
"property".getSegment in interface PojoPropertyPathpublic String getFunction()
segment or
null if it is no function. identifies a
PojoPathFunction that will be used to evaluate the segment. segment starts with the character
PojoPathFunction.FUNCTION_NAME_PREFIX ('@'), it is treated as
function.getFunction in interface PojoPathsegment excluding the first character or null if the
segment does NOT start with PojoPathFunction.FUNCTION_NAME_PREFIX.public Integer getIndex()
segment or null if it
is no index. List). segment starts with a Latin digit, it is treated as index
and has to be a valid integer-value. However parsing should be done when
this object is constructed and therefore this method should never cause an exception.Copyright © 2001–2015 mmm-Team. All rights reserved.