public class Path extends Object
| Constructor and Description |
|---|
Path(String path) |
Path(String[] components) |
| Modifier and Type | Method and Description |
|---|---|
Path |
extend(String name)
Get the Path that is this Path extended by one component.
|
String |
get(int index)
Get the indexth component.
|
String |
getBaseName()
Get the last component of the Path.
|
Path |
getParent()
Get the parent Path of this Path.
|
int |
size()
Get the number of components in the path.
|
String |
toString() |
public int size()
public String get(int index)
index - public Path getParent()
public String getBaseName()
public Path extend(String name)
name - Copyright © 2005–2014 Alfresco Software. All rights reserved.