org.eobjects.datacleaner.repository
Interface RepositoryNode

All Superinterfaces:
HasName, Serializable
All Known Subinterfaces:
Repository, RepositoryFile, RepositoryFolder

public interface RepositoryNode
extends Serializable, HasName

Represents an abstract node (typically a RepositoryFile or RepositoryFolder) in the Repository.


Method Summary
 void delete()
          Attempts to delete the repository node.
 String getName()
          Gets the name of this node.
 RepositoryFolder getParent()
          Gets the parent folder of this node.
 String getQualifiedPath()
          Gets the qualified path of this node.
 

Method Detail

getParent

RepositoryFolder getParent()
Gets the parent folder of this node.

Returns:
the parent folder of this node.

getName

String getName()
Gets the name of this node.

Specified by:
getName in interface HasName
Returns:
the name of this node.

getQualifiedPath

String getQualifiedPath()
Gets the qualified path of this node.

Returns:
the qualified path of this node.

delete

void delete()
            throws IllegalStateException
Attempts to delete the repository node.

Throws:
IllegalStateException - if the node is not deletable, eg. if it is a read-only file, a non-empty directory or similar.


Copyright © 2012 Human Inference. All Rights Reserved.