public class ItemPath extends Object implements Serializable
Constructor and Description |
---|
ItemPath(ItemIdentifier... segments)
Creates an item path with the given segments.
|
ItemPath(String stringRepresentation)
Creates an item path from its string representation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<ItemIdentifier> |
getSegments()
return a list with all item identifier segments.
|
int |
hashCode() |
String |
toString()
Creates a string representation of the given item path, e.g.: "/Games/Applications[2]/Sub"
|
public ItemPath(String stringRepresentation)
/Games/Applications[2]/[0]
There are three possible ways to specify a segment:
Games
refers to an item with the text "Games"[0]
refers to the first itemApplications[2]
refers to the third item with the text "Application"stringRepresentation
- The string representation the itemIllegalArgumentException
- if the string representation is invalid.
public ItemPath(ItemIdentifier... segments)
ItemPath(String)
.segments
- The segments of the path.
public List<ItemIdentifier> getSegments()
Copyright 2009-2012 Micro Focus. All Rights Reserved.