public class ItemPathCollectionsUtil extends Object
Constructor and Description |
---|
ItemPathCollectionsUtil() |
Modifier and Type | Method and Description |
---|---|
static ItemPath[] |
asPathArray(QName... names) |
static UniformItemPath[] |
asUniformPathArray(PrismContext prismContext,
QName... names) |
static boolean |
containsEquivalent(Collection<? extends ItemPath> paths,
ItemPath pathToBeFound)
Returns true if the collection contains a path equivalent to pathToBeFound.
|
static boolean |
containsSubpath(Collection<? extends ItemPath> paths,
ItemPath pathToBeFound)
Returns true if the collection contains a superpath of the given path.
|
static boolean |
containsSubpathOrEquivalent(Collection<? extends ItemPath> paths,
ItemPath pathToBeFound)
Returns true if the collection contains a subpath of or equivalent path to the given path.
|
static boolean |
containsSuperpath(Collection<? extends ItemPath> paths,
ItemPath pathToBeFound)
Returns true if the collection contains a superpath of the given path.
|
static boolean |
containsSuperpathOrEquivalent(Collection<? extends ItemPath> paths,
ItemPath pathToBeFound)
Returns true if the collection contains a superpath of or equivalent path to the given path.
|
static <T> T |
getFromMap(Map<UniformItemPath,T> map,
UniformItemPath itemPath) |
static List<ItemPath> |
pathListFromStrings(List<String> pathsAsStrings,
PrismContext prismContext) |
static <T> void |
putAllToMap(Map<UniformItemPath,T> target,
Map<UniformItemPath,T> source) |
static <T> T |
putToMap(Map<UniformItemPath,T> map,
UniformItemPath itemPath,
T value) |
static List<ItemPath> |
remainder(Collection<? extends ItemPath> paths,
ItemPath prefix,
boolean alsoEquivalent)
Strips the prefix from a set of paths.
|
public static boolean containsEquivalent(Collection<? extends ItemPath> paths, ItemPath pathToBeFound)
public static boolean containsSubpath(Collection<? extends ItemPath> paths, ItemPath pathToBeFound)
public static boolean containsSuperpathOrEquivalent(Collection<? extends ItemPath> paths, ItemPath pathToBeFound)
public static boolean containsSuperpath(Collection<? extends ItemPath> paths, ItemPath pathToBeFound)
public static boolean containsSubpathOrEquivalent(Collection<? extends ItemPath> paths, ItemPath pathToBeFound)
public static List<ItemPath> remainder(Collection<? extends ItemPath> paths, ItemPath prefix, boolean alsoEquivalent)
alsoEquivalent
- If true, 'prefix' in paths is processed as well (resulting in empty path). Otherwise, it is skipped.@NotNull public static List<ItemPath> pathListFromStrings(List<String> pathsAsStrings, PrismContext prismContext)
public static UniformItemPath[] asUniformPathArray(PrismContext prismContext, QName... names)
public static <T> T putToMap(Map<UniformItemPath,T> map, UniformItemPath itemPath, T value)
public static <T> void putAllToMap(Map<UniformItemPath,T> target, Map<UniformItemPath,T> source)
public static <T> T getFromMap(Map<UniformItemPath,T> map, UniformItemPath itemPath)
Copyright © 2020 Evolveum. All rights reserved.