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() |
String |
getPojoPath() |
String |
getSegment() |
String |
toString() |
private final String pojoPath
private final String parentPath
private final String segment
private final String function
private final Integer index
public String getPojoPath()
getPojoPath in interface PojoPropertyPathpublic String getParentPath()
getParentPath in interface PojoPropertyPathpublic String getSegment()
getSegment in interface PojoPropertyPathpublic String getFunction()
PojoPathsegment 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()
PojoPathsegment 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–2019 mmm-Team. All rights reserved.