public class IndexEntry
extends java.lang.Object
IndexEntry class.
| Constructor | Description |
|---|---|
IndexEntry(java.lang.String newId) |
Constructor.
|
IndexEntry(IndexEntry newParent,
java.lang.String newId) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<IndexEntry> |
getChildEntries() |
Returns an unmodifiableList of the child entries.
|
IndexEntry |
getFirstEntry() |
Returns the first entry.
|
java.lang.String |
getId() |
Returns the id.
|
IndexEntry |
getLastEntry() |
Returns the last entry.
|
IndexEntry |
getNextEntry() |
Returns the next entry.
|
IndexEntry |
getParent() |
Returns the parent entry.
|
IndexEntry |
getPrevEntry() |
Returns the previous entry.
|
IndexEntry |
getRootEntry() |
Returns the root entry.
|
java.lang.String |
getTitle() |
Returns the title.
|
void |
setChildEntries(java.util.List<IndexEntry> entries) |
Sets the child entries or creates a new ArrayList if entries == null.
|
protected void |
setId(java.lang.String id) |
Set the id.
|
void |
setTitle(java.lang.String newTitle) |
Sets the title.
|
java.lang.String |
toString() |
|
java.lang.String |
toString(int depth) |
Returns a string representation of all objects to the given depth.
|
public IndexEntry(java.lang.String newId)
newId - The id. May be null.public IndexEntry(IndexEntry newParent, java.lang.String newId)
newParent - The parent. May be null.newId - The id. May be null.public IndexEntry getParent()
public java.lang.String getId()
protected void setId(java.lang.String id)
public java.lang.String getTitle()
public void setTitle(java.lang.String newTitle)
newTitle - the title.public java.util.List<IndexEntry> getChildEntries()
public void setChildEntries(java.util.List<IndexEntry> entries)
entries - the entries.public IndexEntry getNextEntry()
public IndexEntry getPrevEntry()
public IndexEntry getFirstEntry()
public IndexEntry getLastEntry()
public IndexEntry getRootEntry()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(int depth)
depth - The depth to descent to.