public class ItemPath extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ItemPath.CompareResult |
Modifier and Type | Field and Description |
---|---|
static ItemPath |
EMPTY_PATH |
Constructor and Description |
---|
ItemPath() |
ItemPath(ItemPath parentPath,
ItemPathSegment subSegment) |
ItemPath(ItemPath parentPath,
QName subName) |
ItemPath(ItemPathSegment... segments) |
ItemPath(List<ItemPathSegment> segments) |
ItemPath(List<ItemPathSegment> segments,
ItemPathSegment subSegment) |
ItemPath(List<ItemPathSegment> segments,
QName subName) |
ItemPath(QName... qnames) |
Modifier and Type | Method and Description |
---|---|
ItemPath |
allExceptLast()
Returns a path containing all segments except the last one.
|
ItemPath.CompareResult |
compareComplex(ItemPath otherPath) |
boolean |
equals(Object obj) |
boolean |
equivalent(ItemPath otherPath) |
ItemPathSegment |
first() |
static IdItemPathSegment |
getFirstIdSegment(ItemPath itemPath) |
static QName |
getName(ItemPathSegment segment)
Convenience static method with checks
|
List<ItemPathSegment> |
getSegments() |
int |
hashCode() |
ItemPath |
head()
Returns first segment in a form of path.
|
boolean |
isEmpty() |
boolean |
isSubPath(ItemPath otherPath) |
boolean |
isSubPathOrEquivalent(ItemPath otherPath) |
boolean |
isSuperPath(ItemPath otherPath) |
ItemPathSegment |
last() |
ItemPath |
normalize()
Makes the path "normal" by inserting null Id segments where they were omitted.
|
static ItemPath |
pathRestStartingWithName(ItemPath path) |
ItemPath |
remainder(ItemPath otherPath) |
ItemPath |
rest() |
int |
size() |
ItemPath |
subPath(ItemPath subPath) |
static ItemPath |
subPath(ItemPath prefix,
ItemPathSegment subSegment)
Null-proof static version.
|
ItemPath |
subPath(ItemPathSegment subSegment) |
ItemPath |
subPath(QName subName) |
ItemPath |
substract(ItemPath otherPath) |
ItemPath |
tail()
Returns path containinig all segments except the first.
|
String |
toString() |
public static final ItemPath EMPTY_PATH
public ItemPath()
public ItemPath(QName... qnames)
public ItemPath(List<ItemPathSegment> segments)
public ItemPath(List<ItemPathSegment> segments, ItemPathSegment subSegment)
public ItemPath(List<ItemPathSegment> segments, QName subName)
public ItemPath(ItemPathSegment... segments)
public ItemPath(ItemPath parentPath, ItemPathSegment subSegment)
public ItemPath subPath(ItemPathSegment subSegment)
public static ItemPath subPath(ItemPath prefix, ItemPathSegment subSegment)
public List<ItemPathSegment> getSegments()
public ItemPathSegment first()
public ItemPath rest()
public ItemPathSegment last()
public ItemPath head()
public ItemPath tail()
public ItemPath allExceptLast()
public int size()
public boolean isEmpty()
public ItemPath normalize()
public ItemPath.CompareResult compareComplex(ItemPath otherPath)
public boolean isSubPath(ItemPath otherPath)
public boolean isSuperPath(ItemPath otherPath)
public boolean isSubPathOrEquivalent(ItemPath otherPath)
public boolean equivalent(ItemPath otherPath)
public static QName getName(ItemPathSegment segment)
public static IdItemPathSegment getFirstIdSegment(ItemPath itemPath)
Copyright © 2013 evolveum. All rights reserved.