|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mmm.util.pojo.path.base.BasicPojoPath
public class BasicPojoPath
This class represents a PojoPath. It contains the internal logic to
validate and parse a PojoPath.
| Field Summary | |
|---|---|
private String |
function
|
private Integer |
index
|
private String |
parentPath
|
private String |
pojoPath
|
private String |
segment
|
| Fields inherited from interface net.sf.mmm.util.pojo.path.api.PojoPath |
|---|
SEPARATOR |
| Constructor Summary | |
|---|---|
BasicPojoPath(String pojoPath)
The constructor. |
|
| Method Summary | |
|---|---|
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 PojoPath. |
String |
getPojoPath()
This method gets the actual PojoPath represented by this object. |
String |
getSegment()
This method gets the last segment of this current PojoPath. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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()| Constructor Detail |
|---|
public BasicPojoPath(String pojoPath)
pojoPath - is the path to represent.| Method Detail |
|---|
public String getPojoPath()
PojoPath represented by this object.
getPojoPath in interface PojoPathPojoPath.public String getParentPath()
PojoPath."foo.bar.property" then this
method would return "foo.bar".
getParentPath in interface PojoPathnull if this is the root-segment.public String getSegment()
PojoPath. E.g. if
this path represents "foo.bar.property" then this method would
return "property".
getSegment in interface PojoPathpublic 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.
getIndex in interface PojoPathsegment or
null if it is no index.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||