| Modifier and Type | Class and Description |
|---|---|
static class |
PathComponentExtractor.ConsumptionLimit |
| Constructor and Description |
|---|
PathComponentExtractor() |
| Modifier and Type | Method and Description |
|---|---|
void |
append(String pathPart)
Append a string to the path for later consumption through
next(ConsumptionLimit). |
void |
appendRelativePart(String otherPath)
Append to the path the part of
otherPath that is relative to the current path. |
PathComponentExtractor |
clone() |
String |
getLastComponentAbsolutePath() |
String |
next(PathComponentExtractor.ConsumptionLimit consumeLimit)
Consumes one more component in the current path (if possible) and returns this component.
|
void |
reset() |
String |
toString() |
public void append(String pathPart)
next(ConsumptionLimit).pathPart - A string that may or may not include path component
separators (dots).public void appendRelativePart(String otherPath)
otherPath that is relative to the current path.
In other words, replace the current path with otherPath provided otherPath
denotes a child element of the current path, while preserving the memory of the previously
consumed path components.
otherPath - A path that must start with the current path.public String next(PathComponentExtractor.ConsumptionLimit consumeLimit)
If this method reaches a incompletely qualified path component, i.e one that is not
followed by a dot but by the end of the path, it will return it only if includeLast
is true.
AssertionFailure - If there is nothing to consume in the path, or if there is more
than one component to consume.public void reset()
public String getLastComponentAbsolutePath()
next(ConsumptionLimit),
or null if next(ConsumptionLimit) hasn't returned such a component yet.public PathComponentExtractor clone()
Copyright © 2006–2016 Hibernate. All rights reserved.