public class ItemPath extends Object implements Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
ItemPath.CompareResult |
Modifier and Type | Field and Description |
---|---|
static ItemPath |
EMPTY_PATH |
static QName |
XSD_TYPE |
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 |
allUpTo(ItemPathSegment segment)
Returns a path containing all segments up to (not including) the specified one;
counted from backwards.
|
ItemPath |
allUpToLastNamed()
Returns a path containing all segments up to (and not including) the last one.
|
ItemPath |
clone() |
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
|
Map<String,String> |
getNamespaceMap() |
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() |
NameItemPathSegment |
lastNamed() |
ItemPath |
normalize()
Makes the path "normal" by inserting null Id segments where they were omitted.
|
static ItemPath |
pathRestStartingWithName(ItemPath path) |
ItemPath |
remainder(ItemPath otherPath)
Returns the remainder of "this" path after passing all segments from the other path.
|
ItemPath |
rest() |
void |
setNamespaceMap(Map<String,String> namespaceMap) |
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 QName XSD_TYPE
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 NameItemPathSegment lastNamed()
public ItemPathSegment last()
public ItemPath head()
public ItemPath tail()
public ItemPath allExceptLast()
public ItemPath allUpToLastNamed()
public ItemPath allUpTo(ItemPathSegment segment)
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 ItemPath remainder(ItemPath otherPath)
otherPath
- public static QName getName(ItemPathSegment segment)
public static IdItemPathSegment getFirstIdSegment(ItemPath itemPath)
Copyright © 2014 evolveum. All rights reserved.