public class IndexEntry
extends java.lang.Object
IndexEntry class.
Modifier and Type | Field and Description |
---|---|
private java.util.List<IndexEntry> |
childEntries
The child entries.
|
private static java.lang.String |
EOL
System-dependent EOL.
|
private java.lang.String |
id
The id of the entry.
|
private IndexEntry |
parent
The parent entry.
|
private java.lang.String |
title
The entry title.
|
Constructor and Description |
---|
IndexEntry(IndexEntry newParent,
java.lang.String newId)
Constructor.
|
IndexEntry(java.lang.String newId)
Constructor.
|
Modifier and Type | Method and 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()
Returns a string representation of the object.
|
java.lang.String |
toString(int depth)
Returns a string representation of all objects to the given depth.
|
private final IndexEntry parent
private java.lang.String id
private java.lang.String title
private java.util.List<IndexEntry> childEntries
private static final java.lang.String EOL
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)
id
- the idpublic 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.Object
public java.lang.String toString(int depth)
depth
- The depth to descent to.