public class ItemPath extends Object implements Serializable
Constructor and Description |
---|
ItemPath(ItemIdentifier... segments)
使用给定的段创建项目路径。
|
ItemPath(String stringRepresentation)
从项目的字符串表示创建一个项目路径。
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<ItemIdentifier> |
getSegments()
返回一个包含所有项目标识符段的列表。
|
int |
hashCode() |
String |
toString()
创建给定项目路径的字符串表示。
|
public ItemPath(String stringRepresentation)
/Games/Applications[2]/[0]
有三种指定段的方法:
Games
指带有 "Games" 文字的项目[0]
指第一个项目。Applications[2]
指第三个带有 "Application" 文本的项目。stringRepresentation
- 项目的字符串表示IllegalArgumentException
- 如果字符串表示无效。
public ItemPath(ItemIdentifier... segments)
ItemPath(String)
。segments
- 路径的段。
public List<ItemIdentifier> getSegments()
Copyright 2009-2012 Micro Focus. All Rights Reserved.