Class AttributePath
java.lang.Object
com.evolveum.midpoint.schema.processor.AttributePath
- All Implemented Interfaces:
ItemPath
,ShortDumpable
,Serializable
Path pointing to a specific `.
ShadowAttribute
.
It is always in the form of `attributes/- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.path.ItemPath
ItemPath.CompareResult
-
Field Summary
Fields inherited from interface com.evolveum.midpoint.prism.path.ItemPath
EMPTY_PATH, SELF_PATH
-
Method Summary
Modifier and TypeMethodDescription@NotNull ItemPath
Returns all segments except the last one.@Nullable Object
first()
Returns the first segment or null if the path is empty.Returns the first segment as an ItemPath.@NotNull ItemName
@Nullable Object
getSegment
(int i) Returns the given path segment.@NotNull List<?>
Returns the path segments.boolean
isEmpty()
Returns true if the path is empty i.e. has no components.@NotNull Object
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 ItemPath
Returns the path containing only the regular named segments.static @NotNull AttributePath
static @NotNull Optional<AttributePath>
optionalOf
(ItemPath path) @NotNull ItemPath
Returns the path with no Id segments.@NotNull ItemPath
rest
(int n) Returns the rest of the path (the tail), starting at position "n".int
size()
Returns path size i.e. the number of components.subPath
(int from, int to) Returns a sub-path from (including) to (excluding) given indices.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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, isMetadataRelated, isSingleName, isSubPath, isSubPathOrEquivalent, isSuperPath, isSuperPathOrEquivalent, lastNameIndex, remainder, rest, shortDump, startsWith, startsWithId, startsWithIdentifier, startsWithName, startsWithName, startsWithNullId, startsWithObjectReference, startsWithParent, startsWithVariable, stripVariableSegment, toBean, toStringStandalone
Methods inherited from interface com.evolveum.midpoint.util.ShortDumpable
shortDump, shortDumpLazily
-
Method Details
-
of
-
optionalOf
-
isEmpty
public boolean isEmpty()Description copied from interface:ItemPath
Returns true if the path is empty i.e. has no components. -
size
public int size()Description copied from interface:ItemPath
Returns path size i.e. the number of components. -
getSegments
Description copied from interface:ItemPath
Returns 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:
getSegments
in interfaceItemPath
-
getSegment
Description copied from interface:ItemPath
Returns the given path segment.- Specified by:
getSegment
in interfaceItemPath
-
first
Description copied from interface:ItemPath
Returns the first segment or null if the path is empty. -
rest
Description copied from interface:ItemPath
Returns the rest of the path (the tail), starting at position "n". -
firstAsPath
Description copied from interface:ItemPath
Returns the first segment as an ItemPath. TODO consider the necessity of such method- Specified by:
firstAsPath
in interfaceItemPath
-
last
Description copied from interface:ItemPath
Returns the last segment (or null if the path is empty). -
allExceptLast
Description copied from interface:ItemPath
Returns all segments except the last one.- Specified by:
allExceptLast
in interfaceItemPath
-
subPath
Description copied from interface:ItemPath
Returns a sub-path from (including) to (excluding) given indices. -
lastName
Description copied from interface:ItemPath
Returns the last name segment value; or null if there's no name segment. -
namedSegmentsOnly
Description copied from interface:ItemPath
Returns the path containing only the regular named segments.- Specified by:
namedSegmentsOnly
in interfaceItemPath
-
removeIds
Description copied from interface:ItemPath
Returns the path with no Id segments. -
getAttributeName
-