| Modifier and Type | Field and Description |
|---|---|
| private DirectoryNode | |
| private Property |
| Access | Constructor and Description |
|---|---|
| protected | EntryNode(final Property
the Property for this Entry property, final DirectoryNode the parent of this entry parent)create a DocumentNode. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the Entry was successfully deleted, else falseImplements org. Delete this Entry. |
| public String | Returns: nameImplements org. get the name of the Entry |
| public DirectoryEntry | Returns: this Entry's parent; null iff this is the root EntryImplements org. get this Entry's parent (the DocumentEntry that owns this Entry). |
| protected Property | |
| protected abstract boolean | Returns: true if it's ok to delete the underlying store, else falseextensions use this method to verify internal rules regarding deletion of the underlying store. |
| public boolean | Returns: true if the Entry is a DirectoryEntry, else falseImplements org. is this a DirectoryEntry? |
| public boolean | Returns: true if the Entry is a DocumentEntry, else falseImplements org. is this a DocumentEntry? |
| protected boolean | |
| public boolean | Returns: true if the operation succeeded, else falsethe new name for this Entry newName)Implements org. Rename this Entry. |
| _parent | back to summary |
|---|---|
| private DirectoryNode _parent | |
| _property | back to summary |
|---|---|
| private Property _property | |
| EntryNode | back to summary |
|---|---|
| protected EntryNode(final Property property, final DirectoryNode parent) create a DocumentNode. This method is not public by design; it is intended strictly for the internal use of extending classes
| |
| delete | back to summary |
|---|---|
| public boolean delete() Implements org. Delete this Entry. This operation should succeed, but there are special circumstances when it will not: If this Entry is the root of the Entry tree, it cannot be deleted, as there is no way to create another one. If this Entry is a directory, it cannot be deleted unless it is empty.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org. get the name of the Entry
| |
| getParent | back to summary |
|---|---|
| public DirectoryEntry getParent() Implements org. get this Entry's parent (the DocumentEntry that owns this Entry). All Entry objects, except the root Entry, has a parent.
| |
| getProperty | back to summary |
|---|---|
| protected Property getProperty() grant access to the property
| |
| isDeleteOK | back to summary |
|---|---|
| protected abstract boolean isDeleteOK() extensions use this method to verify internal rules regarding deletion of the underlying store.
| |
| isDirectoryEntry | back to summary |
|---|---|
| public boolean isDirectoryEntry() Implements org. is this a DirectoryEntry?
| |
| isDocumentEntry | back to summary |
|---|---|
| public boolean isDocumentEntry() Implements org. is this a DocumentEntry?
| |
| isRoot | back to summary |
|---|---|
| protected boolean isRoot() is this the root of the tree?
| |
| renameTo | back to summary |
|---|---|
| public boolean renameTo(final String newName) Implements org. Rename this Entry. This operation will fail if: There is a sibling Entry (i.e., an Entry whose parent is the same as this Entry's parent) with the same name. This Entry is the root of the Entry tree. Its name is dictated by the Filesystem and many not be changed.
| |