public class IndexEntry extends Object
IndexEntry class.
Constructor and Description |
---|
IndexEntry(IndexEntry newParent,
String newId)
Constructor.
|
IndexEntry(String newId)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
List<IndexEntry> |
getChildEntries()
Returns an unmodifiableList of the child entries.
|
IndexEntry |
getFirstEntry()
Returns the first entry.
|
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.
|
String |
getTitle()
Returns the title.
|
void |
setChildEntries(List<IndexEntry> entries)
Sets the child entries or creates a new ArrayList if entries == null.
|
protected void |
setId(String id)
Set the id.
|
void |
setTitle(String newTitle)
Sets the title.
|
String |
toString()
Returns a string representation of the object.
|
String |
toString(int depth)
Returns a string representation of all objects to the given depth.
|
public IndexEntry(String newId)
newId
- The id. May be null.public IndexEntry(IndexEntry newParent, String newId)
newParent
- The parent. May be null.newId
- The id. May be null.public IndexEntry getParent()
public List<IndexEntry> getChildEntries()
public void setChildEntries(List<IndexEntry> entries)
entries
- the entries.public IndexEntry getNextEntry()
public IndexEntry getPrevEntry()
public IndexEntry getFirstEntry()
public IndexEntry getLastEntry()
public IndexEntry getRootEntry()
Copyright © 2005–2017 The Apache Software Foundation. All rights reserved.