public abstract class EntryNode extends java.lang.Object implements Entry
Modifier | Constructor and Description |
---|---|
protected |
EntryNode(Property property, DirectoryNode parent)
create a DocumentNode.
(创建一个文档节点。)
|
Modifier and Type | Method and Description |
---|---|
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).
(获取此条目的父项(拥有此条目的 DocumentEntry)。)
|
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?
(这是一个 DocumentEntry 吗?)
|
protected boolean |
isRoot()
is this the root of the tree?
(这是树的根吗?)
|
boolean |
renameTo(java.lang.String newName)
Rename this Entry.
(重命名此条目。)
|
protected EntryNode(Property property, DirectoryNode parent)
property
- the Property for this Entry
(property - 此条目的属性)
parent
- the parent of this entry
(parent - 此条目的父级)
protected Property getProperty()
protected boolean isRoot()
protected abstract boolean isDeleteOK()
public java.lang.String getName()
public boolean isDirectoryEntry()
isDirectoryEntry
in interface
Entry
(接口Entry中的isDirectoryEntry)
public boolean isDocumentEntry()
isDocumentEntry
in interface
Entry
(接口Entry中的isDocumentEntry)
public DirectoryEntry getParent()
public boolean delete()
public boolean renameTo(java.lang.String newName)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.