Package com.evolveum.midpoint.prism.path
Class ItemPathImpl
java.lang.Object
com.evolveum.midpoint.prism.path.ItemPathImpl
- All Implemented Interfaces:
ItemPath,ShortDumpable,Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.path.ItemPath
ItemPath.CompareResult -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription@NotNull ItemPathReturns all segments except the last one.booleanfirst()Returns the first segment or null if the path is empty.Returns the first segment as an ItemPath.getSegment(int i) Returns the given path segment.@NotNull List<?>Returns the path segments.inthashCode()booleanisEmpty()Returns true if the path is empty i.e.last()Returns the last segment (or null if the path is empty).lastName()Returns the last name segment value; or null if there's no name segment.@NotNull ItemPathReturns the path containing only the regular named segments.@NotNull ItemPathReturns the path with no Id segments.@NotNull ItemPathrest()Returns the rest of the path (the tail).@NotNull ItemPathrest(int n) Returns the rest of the path (the tail), starting at position "n".intsize()Returns path size i.e.subPath(int from, int to) Returns a sub-path from (including) to (excluding) given indices.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.prism.path.ItemPath
allUpToIncluding, allUpToLastName, append, asSingleName, asSingleNameOrFail, compareComplex, containsNameExactly, containsSpecialSymbols, containsSpecialSymbolsExceptParent, equals, equivalent, firstName, firstNameIndex, firstNameOrFail, firstToId, firstToIdOrNull, firstToName, firstToNameOrNull, firstToQName, firstToVariableNameOrNull, isSingleName, isSubPath, isSubPathOrEquivalent, isSuperPath, isSuperPathOrEquivalent, lastNameIndex, remainder, shortDump, startsWith, startsWithId, startsWithIdentifier, startsWithName, startsWithName, startsWithNullId, startsWithObjectReference, startsWithParent, startsWithVariable, stripVariableSegment, toBean, toStringStandaloneMethods inherited from interface com.evolveum.midpoint.util.ShortDumpable
shortDump, shortDumpLazily
-
Field Details
-
EMPTY_PATH
-
-
Method Details
-
getSegments
Description copied from interface:ItemPathReturns the path segments. Avoid using this method and access segments directly. Instead try to find suitable method in ItemPath interface. NEVER change path content using this method. TODO consider returning unmodifiable collection here (beware of performance implications)- Specified by:
getSegmentsin interfaceItemPath
-
isEmpty
public boolean isEmpty()Description copied from interface:ItemPathReturns true if the path is empty i.e. has no components. -
size
public int size()Description copied from interface:ItemPathReturns path size i.e. the number of components. -
first
Description copied from interface:ItemPathReturns the first segment or null if the path is empty. -
rest
Description copied from interface:ItemPathReturns the rest of the path (the tail). -
rest
Description copied from interface:ItemPathReturns the rest of the path (the tail), starting at position "n". -
equals
-
hashCode
public int hashCode() -
namedSegmentsOnly
Description copied from interface:ItemPathReturns the path containing only the regular named segments.- Specified by:
namedSegmentsOnlyin interfaceItemPath
-
removeIds
Description copied from interface:ItemPathReturns the path with no Id segments. -
lastName
Description copied from interface:ItemPathReturns the last name segment value; or null if there's no name segment. -
last
Description copied from interface:ItemPathReturns the last segment (or null if the path is empty). -
firstAsPath
Description copied from interface:ItemPathReturns the first segment as an ItemPath. TODO consider the necessity of such method- Specified by:
firstAsPathin interfaceItemPath
-
subPath
Description copied from interface:ItemPathReturns a sub-path from (including) to (excluding) given indices. -
allExceptLast
Description copied from interface:ItemPathReturns all segments except the last one.- Specified by:
allExceptLastin interfaceItemPath
-
getSegment
Description copied from interface:ItemPathReturns the given path segment.- Specified by:
getSegmentin interfaceItemPath
-
toString
-