public final class ContainerPath extends Object
Provides the information about the directory in the container.
Modifier and Type | Field and Description |
---|---|
static ContainerPath |
ROOT
An instance of the root directory.
|
Modifier and Type | Method and Description |
---|---|
ContainerPath |
createDirectory(String directoryName)
Creates a sub directory.
|
String |
get_Item(int depth)
Gets a part of the part by
depth . |
int |
getDepth()
Gets a depth of the path.
|
boolean |
isRoot()
Gets a value indicating whether the path is root.
|
String |
toString()
Returns a string representation of the path.
|
public static final ContainerPath ROOT
An instance of the root directory.
public boolean isRoot()
Gets a value indicating whether the path is root.
public int getDepth()
Gets a depth of the path.
public String get_Item(int depth)
Gets a part of the part by depth
.
depth
- A depth of the path's part.public ContainerPath createDirectory(String directoryName)
Creates a sub directory.
directoryName
- The name of the sub directory.ContainerPath
for directoryName
.Copyright © 2018. All rights reserved.