public class ItemPathImpl extends Object implements ItemPath
ItemPath.CompareResult| Modifier and Type | Field and Description |
|---|---|
static ItemPath |
EMPTY_PATH |
| Modifier and Type | Method and Description |
|---|---|
ItemPath |
allExceptLast()
Returns all segments except the last one.
|
boolean |
equals(Object o) |
Object |
first()
Returns the first segment or null if the path is empty.
|
ItemPath |
firstAsPath()
Returns the first segment as an ItemPath.
|
Object |
getSegment(int i)
Returns the given path segment.
|
List<?> |
getSegments()
Returns the path segments.
|
int |
hashCode() |
boolean |
isEmpty()
Returns true if the path is empty i.e.
|
Object |
last()
Returns the last segment (or null if the path is empty).
|
ItemName |
lastName()
Returns the last name segment value; or null if there's no name segment.
|
ItemPath |
namedSegmentsOnly()
Returns the path containing only the regular named segments.
|
ItemPath |
removeIds()
Returns the path with no Id segments.
|
ItemPath |
rest()
Returns the rest of the path (the tail).
|
ItemPath |
rest(int n)
Returns the rest of the path (the tail), starting at position "n".
|
int |
size()
Returns path size i.e.
|
ItemPath |
subPath(int from,
int to)
Returns a sub-path from (including) to (excluding) given indices.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitallUpToIncluding, allUpToLastName, append, asSingleName, asSingleNameOrFail, checkNoSpecialSymbols, checkNoSpecialSymbolsExceptParent, compareComplex, containsNameExactly, containsSpecialSymbols, containsSpecialSymbolsExceptParent, create, create, createReverse, emptyIfNull, equals, equivalent, equivalent, firstName, firstNameIndex, firstNameOrFail, firstToId, firstToIdOrNull, firstToIdOrNull, firstToName, firstToNameOrNull, firstToNameOrNull, firstToVariableNameOrNull, isEmpty, isId, isIdentifier, isName, isNullId, isObjectReference, isParent, isSingleName, isSpecial, isSubPath, isSubPathOrEquivalent, isSuperPath, isSuperPathOrEquivalent, isVariable, lastNameIndex, remainder, segmentsEquivalent, shortDump, startsWith, startsWithId, startsWithIdentifier, startsWithName, startsWithName, startsWithNullId, startsWithObjectReference, startsWithParent, startsWithVariable, stripVariableSegment, toId, toIdOrNull, toName, toNameNullSafe, toNameOrNull, toVariableNameshortDump, shortDumpLazilypublic static final ItemPath EMPTY_PATH
@NotNull public List<?> getSegments()
ItemPathgetSegments in interface ItemPathpublic boolean isEmpty()
ItemPathpublic int size()
ItemPathpublic Object first()
ItemPath@NotNull public ItemPath rest()
ItemPath@NotNull public ItemPath rest(int n)
ItemPath@NotNull public ItemPath namedSegmentsOnly()
ItemPathnamedSegmentsOnly in interface ItemPath@NotNull public ItemPath removeIds()
ItemPathpublic ItemName lastName()
ItemPathpublic Object last()
ItemPathpublic ItemPath firstAsPath()
ItemPathfirstAsPath in interface ItemPathpublic ItemPath subPath(int from, int to)
ItemPath@NotNull public ItemPath allExceptLast()
ItemPathallExceptLast in interface ItemPathpublic Object getSegment(int i)
ItemPathgetSegment in interface ItemPathCopyright © 2019 Evolveum. All rights reserved.