com.evolveum.midpoint.prism.path
Class ItemPath

java.lang.Object
  extended by com.evolveum.midpoint.prism.path.ItemPath
All Implemented Interfaces:
Serializable

public class ItemPath
extends Object
implements Serializable

Author:
semancik
See Also:
Serialized Form

Nested Class Summary
static class ItemPath.CompareResult
           
 
Field Summary
static ItemPath EMPTY_PATH
           
 
Constructor Summary
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)
           
 
Method Summary
 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 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 isSuperPath(ItemPath otherPath)
           
 ItemPathSegment last()
           
 ItemPath normalize()
           
 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 tail()
          Returns path containinig all segments except the first.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY_PATH

public static final ItemPath EMPTY_PATH
Constructor Detail

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)
Method Detail

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.