public class DebianPackageBuilderMock.DataNode extends Object implements Comparable<DebianPackageBuilderMock.DataNode>
A node containing the data added to the builder.
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(DebianPackageBuilderMock.DataNode o) |
net.sourceforge.javadpkg.io.FileMode |
getMode()
Returns the mode.
|
net.sourceforge.javadpkg.io.FileOwner |
getOwner()
Returns the owner.
|
String |
getPath()
Returns the path.
|
net.sourceforge.javadpkg.io.DataSource |
getSource()
Returns the source of a regular file.
|
String |
getTarget()
Returns the target of a symbolic link.
|
boolean |
isDirectory()
Returns the flag if the node represents a directory.
|
boolean |
isFile()
Returns the flag if the node represents a regular file.
|
boolean |
isSymLink()
Returns the flag if the node represents a symbolic link.
|
public net.sourceforge.javadpkg.io.DataSource getSource()
Returns the source of a regular file.
null, if the node doesn't
represent a regular file.isFile()public String getPath()
Returns the path.
public String getTarget()
Returns the target of a symbolic link.
null, if the node doesn't
represent a symbolic link.isSymLink()public net.sourceforge.javadpkg.io.FileOwner getOwner()
Returns the owner.
public net.sourceforge.javadpkg.io.FileMode getMode()
Returns the mode.
public boolean isDirectory()
Returns the flag if the node represents a directory.
public boolean isFile()
Returns the flag if the node represents a regular file.
Symbolic links are also handled as regular files.
isSymLink()public boolean isSymLink()
Returns the flag if the node represents a symbolic link.
getTarget()public int compareTo(DebianPackageBuilderMock.DataNode o)
compareTo in interface Comparable<DebianPackageBuilderMock.DataNode>Copyright © 2015–2019. All rights reserved.