public final 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, wait
allUpToIncluding, 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, toVariableName
shortDump, shortDumpLazily
public static final ItemPath EMPTY_PATH
@NotNull public List<?> getSegments()
ItemPath
getSegments
in interface ItemPath
public boolean isEmpty()
ItemPath
public int size()
ItemPath
public Object first()
ItemPath
@NotNull public ItemPath rest()
ItemPath
@NotNull public ItemPath rest(int n)
ItemPath
@NotNull public ItemPath namedSegmentsOnly()
ItemPath
namedSegmentsOnly
in interface ItemPath
@NotNull public ItemPath removeIds()
ItemPath
public ItemName lastName()
ItemPath
public Object last()
ItemPath
public ItemPath firstAsPath()
ItemPath
firstAsPath
in interface ItemPath
public ItemPath subPath(int from, int to)
ItemPath
@NotNull public ItemPath allExceptLast()
ItemPath
allExceptLast
in interface ItemPath
public Object getSegment(int i)
ItemPath
getSegment
in interface ItemPath
Copyright © 2021 Evolveum. All rights reserved.