|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.poifs.filesystem.EntryNode
public abstract class EntryNode
Abstract implementation of Entry Extending classes should override isDocument() or isDirectory(), as appropriate Extending classes must override isDeleteOK()
Constructor Summary | |
---|---|
protected |
EntryNode(Property property,
DirectoryNode parent)
create a DocumentNode. |
Method Summary | |
---|---|
boolean |
delete()
Delete this Entry. |
java.lang.String |
getName()
get the name of the Entry |
DirectoryEntry |
getParent()
get this Entry's parent (the DocumentEntry that owns this Entry). |
protected Property |
getProperty()
grant access to the property |
protected abstract boolean |
isDeleteOK()
extensions use this method to verify internal rules regarding deletion of the underlying store. |
boolean |
isDirectoryEntry()
is this a DirectoryEntry? |
boolean |
isDocumentEntry()
is this a DocumentEntry? |
protected boolean |
isRoot()
is this the root of the tree? |
boolean |
renameTo(java.lang.String newName)
Rename this Entry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected EntryNode(Property property, DirectoryNode parent)
property
- the Property for this Entryparent
- the parent of this entryMethod Detail |
---|
protected Property getProperty()
protected boolean isRoot()
protected abstract boolean isDeleteOK()
public java.lang.String getName()
getName
in interface Entry
public boolean isDirectoryEntry()
isDirectoryEntry
in interface Entry
public boolean isDocumentEntry()
isDocumentEntry
in interface Entry
public DirectoryEntry getParent()
getParent
in interface Entry
public boolean delete()
delete
in interface Entry
public boolean renameTo(java.lang.String newName)
renameTo
in interface Entry
newName
- the new name for this Entry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |