com.evolveum.midpoint.prism.path
Class ItemPath
java.lang.Object
com.evolveum.midpoint.prism.path.ItemPath
- All Implemented Interfaces:
- Serializable
public class ItemPath
- extends Object
- implements Serializable
- Author:
- semancik
- See Also:
- Serialized Form
EMPTY_PATH
public static final ItemPath EMPTY_PATH
ItemPath
public ItemPath()
ItemPath
public ItemPath(QName... qnames)
ItemPath
public ItemPath(ItemPath parentPath,
QName subName)
ItemPath
public ItemPath(List<ItemPathSegment> segments)
ItemPath
public ItemPath(List<ItemPathSegment> segments,
ItemPathSegment subSegment)
ItemPath
public ItemPath(List<ItemPathSegment> segments,
QName subName)
ItemPath
public ItemPath(ItemPathSegment... segments)
ItemPath
public ItemPath(ItemPath parentPath,
ItemPathSegment subSegment)
subPath
public ItemPath subPath(QName subName)
subPath
public ItemPath subPath(ItemPathSegment subSegment)
subPath
public ItemPath subPath(ItemPath subPath)
subPath
public static ItemPath subPath(ItemPath prefix,
ItemPathSegment subSegment)
- Null-proof static version.
getSegments
public List<ItemPathSegment> getSegments()
first
public ItemPathSegment first()
rest
public ItemPath rest()
last
public ItemPathSegment last()
head
public ItemPath head()
- Returns first segment in a form of path.
tail
public ItemPath tail()
- Returns path containinig all segments except the first.
allExceptLast
public ItemPath allExceptLast()
- Returns a path containing all segments except the last one.
size
public int size()
isEmpty
public boolean isEmpty()
normalize
public ItemPath normalize()
compareComplex
public ItemPath.CompareResult compareComplex(ItemPath otherPath)
isSubPath
public boolean isSubPath(ItemPath otherPath)
isSuperPath
public boolean isSuperPath(ItemPath otherPath)
equivalent
public boolean equivalent(ItemPath otherPath)
getName
public static QName getName(ItemPathSegment segment)
- Convenience static method with checks
toString
public String toString()
- Overrides:
toString
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
Copyright © 2013 evolveum. All Rights Reserved.