Package com.evolveum.midpoint.prism.path
Interface UniformItemPath
-
- All Superinterfaces:
Cloneable
,ItemPath
,Serializable
,ShortDumpable
- All Known Implementing Classes:
UniformItemPathImpl
public interface UniformItemPath extends Serializable, Cloneable, ShortDumpable, ItemPath
- Author:
- semancik
-
-
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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description UniformItemPath
allExceptLast()
Returns a path containing all segments except the last one.UniformItemPath
allUpToIncluding(int i)
Returns all segments up to the specified one (including it).UniformItemPath
allUpToLastName()
Returns a path containing all segments up to (and not including) the last one.UniformItemPath
append(Object... components)
Returns a newly created path containing all the segments of this path with added components.Object
asItemPathType()
UniformItemPath
clone()
boolean
equals(Object obj)
More strict version of ItemPath comparison.ItemPathSegment
first()
Returns the first segment or null if the path is empty.UniformItemPath
firstAsPath()
Returns first segment in a form of path.Map<String,String>
getNamespaceMap()
ItemPathSegment
getSegment(int i)
Returns the given path segment.List<ItemPathSegment>
getSegments()
Returns the path segments.ItemPathSegment
last()
Returns the last segment (or null if the path is empty).UniformItemPath
namedSegmentsOnly()
Returns the path containing only the regular named segments.UniformItemPath
normalize()
Makes the path "normal" by inserting null Id segments where they were omitted.UniformItemPath
remainder(ItemPath prefix)
Returns the remainder of "this" path after passing all segments from the other path.UniformItemPath
removeIds()
Returns the path with no Id segments.default UniformItemPath
rest()
Returns the rest of the path (the tail).UniformItemPath
rest(int n)
Returns the rest of the path (the tail), starting at position "n".void
setNamespaceMap(Map<String,String> namespaceMap)
UniformItemPath
stripVariableSegment()
Removes the leading variable segment, if present.-
Methods inherited from interface com.evolveum.midpoint.prism.path.ItemPath
asSingleName, asSingleNameOrFail, compareComplex, containsNameExactly, containsSpecialSymbols, containsSpecialSymbolsExceptParent, equals, equivalent, firstName, firstNameIndex, firstNameOrFail, firstToId, firstToIdOrNull, firstToName, firstToNameOrNull, firstToVariableNameOrNull, isEmpty, isSingleName, isSubPath, isSubPathOrEquivalent, isSuperPath, isSuperPathOrEquivalent, lastName, lastNameIndex, shortDump, size, startsWith, startsWithId, startsWithIdentifier, startsWithName, startsWithName, startsWithNullId, startsWithObjectReference, startsWithParent, startsWithVariable, subPath
-
Methods inherited from interface com.evolveum.midpoint.util.ShortDumpable
shortDump, shortDumpLazily
-
-
-
-
Method Detail
-
getSegments
@NotNull List<ItemPathSegment> 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
-
first
ItemPathSegment first()
Description copied from interface:ItemPath
Returns the first segment or null if the path is empty.
-
rest
@NotNull default UniformItemPath rest()
Description copied from interface:ItemPath
Returns the rest of the path (the tail).
-
last
@Nullable ItemPathSegment last()
Description copied from interface:ItemPath
Returns the last segment (or null if the path is empty).
-
firstAsPath
UniformItemPath firstAsPath()
Returns first segment in a form of path.- Specified by:
firstAsPath
in interfaceItemPath
-
rest
@NotNull UniformItemPath rest(int n)
Description copied from interface:ItemPath
Returns the rest of the path (the tail), starting at position "n".
-
allExceptLast
@NotNull UniformItemPath allExceptLast()
Returns a path containing all segments except the last one.- Specified by:
allExceptLast
in interfaceItemPath
-
allUpToLastName
@NotNull UniformItemPath allUpToLastName()
Returns a path containing all segments up to (and not including) the last one.- Specified by:
allUpToLastName
in interfaceItemPath
-
allUpToIncluding
UniformItemPath allUpToIncluding(int i)
Description copied from interface:ItemPath
Returns all segments up to the specified one (including it).- Specified by:
allUpToIncluding
in interfaceItemPath
-
normalize
UniformItemPath normalize()
Makes the path "normal" by inserting null Id segments where they were omitted.
-
removeIds
@NotNull UniformItemPath removeIds()
Description copied from interface:ItemPath
Returns the path with no Id segments.
-
namedSegmentsOnly
@NotNull UniformItemPath namedSegmentsOnly()
Description copied from interface:ItemPath
Returns the path containing only the regular named segments.- Specified by:
namedSegmentsOnly
in interfaceItemPath
-
stripVariableSegment
@NotNull UniformItemPath stripVariableSegment()
Description copied from interface:ItemPath
Removes the leading variable segment, if present.- Specified by:
stripVariableSegment
in interfaceItemPath
-
append
@NotNull UniformItemPath append(Object... components)
Description copied from interface:ItemPath
Returns a newly created path containing all the segments of this path with added components.
-
remainder
UniformItemPath remainder(ItemPath prefix)
Description copied from interface:ItemPath
Returns the remainder of "this" path after passing all segments from the other path. (I.e. this path must begin with the content of the other path. Throws an exception when it is not the case.)
-
equals
boolean equals(Object obj)
More strict version of ItemPath comparison. Does not use any normalization nor approximate matching QNames via QNameUtil.match. For semantic-level comparison, please use equivalent(..) method.
-
clone
UniformItemPath clone()
-
asItemPathType
Object asItemPathType()
-
getSegment
ItemPathSegment getSegment(int i)
Description copied from interface:ItemPath
Returns the given path segment.- Specified by:
getSegment
in interfaceItemPath
-
-