Package com.evolveum.midpoint.prism.path
Interface UniformItemPath
- All Superinterfaces:
- Cloneable,- ItemPath,- Serializable,- ShortDumpable
- Author:
- semancik
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.evolveum.midpoint.prism.path.ItemPathItemPath.CompareResult
- 
Field SummaryFields inherited from interface com.evolveum.midpoint.prism.path.ItemPathEMPTY_PATH, SELF_PATH
- 
Method SummaryModifier and TypeMethodDescription@NotNull UniformItemPathReturns a path containing all segments except the last one.allUpToIncluding(int i) Returns all segments up to the specified one (including it).@NotNull UniformItemPathReturns a path containing all segments up to (and not including) the last one.@NotNull UniformItemPathReturns a newly created path containing all the segments of this path with added components.clone()static UniformItemPathCreates the path from given components.static ItemPathSegmentcreateSegment(QName qname, boolean variable) static UniformItemPathempty()booleanMore strict version of ItemPath comparison.first()Returns the first segment or null if the path is empty.Returns first segment in a form of path.static @NotNull UniformItemPathgetSegment(int i) Returns the given path segment.@NotNull List<ItemPathSegment>Returns the path segments.@Nullable ItemPathSegmentlast()Returns the last segment (or null if the path is empty).@NotNull UniformItemPathReturns the path containing only the regular named segments.Makes the path "normal" by inserting null Id segments where they were omitted.Returns the remainder of "this" path after passing all segments from the other path.@NotNull UniformItemPathReturns the path with no Id segments.default @NotNull UniformItemPathrest()Returns the rest of the path (the tail).@NotNull UniformItemPathrest(int n) Returns the rest of the path (the tail), starting at position "n".voidsetNamespaceMap(Map<String, String> namespaceMap) @NotNull UniformItemPathRemoves the leading variable segment, if present.Methods inherited from interface com.evolveum.midpoint.prism.path.ItemPathasSingleName, asSingleNameOrFail, compareComplex, containsNameExactly, containsSpecialSymbols, containsSpecialSymbolsExceptParent, equals, equivalent, firstName, firstNameIndex, firstNameOrFail, firstToId, firstToIdOrNull, firstToName, firstToNameOrNull, firstToQName, firstToVariableNameOrNull, isEmpty, isSingleName, isSubPath, isSubPathOrEquivalent, isSuperPath, isSuperPathOrEquivalent, lastName, lastNameIndex, shortDump, size, startsWith, startsWithId, startsWithIdentifier, startsWithName, startsWithName, startsWithNullId, startsWithObjectReference, startsWithParent, startsWithVariable, subPath, toBean, toStringStandaloneMethods inherited from interface com.evolveum.midpoint.util.ShortDumpableshortDump, shortDumpLazily
- 
Method Details- 
getSegmentsDescription 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 interface- ItemPath
 
- 
firstItemPathSegment first()Description copied from interface:ItemPathReturns the first segment or null if the path is empty.
- 
restDescription copied from interface:ItemPathReturns the rest of the path (the tail).
- 
lastDescription copied from interface:ItemPathReturns the last segment (or null if the path is empty).
- 
firstAsPathUniformItemPath firstAsPath()Returns first segment in a form of path.- Specified by:
- firstAsPathin interface- ItemPath
 
- 
restDescription copied from interface:ItemPathReturns the rest of the path (the tail), starting at position "n".
- 
allExceptLastReturns a path containing all segments except the last one.- Specified by:
- allExceptLastin interface- ItemPath
 
- 
allUpToLastNameReturns a path containing all segments up to (and not including) the last one.- Specified by:
- allUpToLastNamein interface- ItemPath
 
- 
allUpToIncludingDescription copied from interface:ItemPathReturns all segments up to the specified one (including it).- Specified by:
- allUpToIncludingin interface- ItemPath
 
- 
normalizeUniformItemPath normalize()Makes the path "normal" by inserting null Id segments where they were omitted.
- 
removeIdsDescription copied from interface:ItemPathReturns the path with no Id segments.
- 
namedSegmentsOnlyDescription copied from interface:ItemPathReturns the path containing only the regular named segments.- Specified by:
- namedSegmentsOnlyin interface- ItemPath
 
- 
stripVariableSegmentDescription copied from interface:ItemPathRemoves the leading variable segment, if present.- Specified by:
- stripVariableSegmentin interface- ItemPath
 
- 
appendDescription copied from interface:ItemPathReturns a newly created path containing all the segments of this path with added components.
- 
remainderDescription copied from interface:ItemPathReturns 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.)
- 
equalsMore 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.
- 
cloneUniformItemPath clone()
- 
asItemPathTypeItemPathType asItemPathType()
- 
getSegmentDescription copied from interface:ItemPathReturns the given path segment.- Specified by:
- getSegmentin interface- ItemPath
 
- 
setNamespaceMap
- 
getNamespaceMap
- 
empty
- 
createDescription copied from interface:ItemPathCreates the path from given components. The components can contain objects of various kinds: - QName -> interpreted as either named segment or a special segment (if the name exactly matches special segment name) - Integer/Long -> interpreted as Id path segment - null -> interpreted as null Id path segment - ItemPathSegment -> interpreted as such - ItemPath, Object[], Collection -> interpreted recursively as a sequence of components Creates the default implementation of ItemPathImpl. Components are normalized on creation as necessary; although the number of object creation is minimized.
- 
from
- 
createSegment
 
-