public class DocumentTOCItem
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private boolean |
collapse
Whether to show any child elements of a TOCItem,
overriding
the depth given in DocumentTOC.
|
private java.util.List<DocumentTOCItem> |
items
Field items.
|
private java.lang.String |
name
The name to use for the toc.
|
private java.lang.String |
ref
The ref to use for the item.
|
Constructor and Description |
---|
DocumentTOCItem() |
Modifier and Type | Method and Description |
---|---|
void |
addItem(DocumentTOCItem documentTOCItem)
Method addItem.
|
boolean |
equals(java.lang.Object other)
Method equals.
|
java.util.List<DocumentTOCItem> |
getItems()
Method getItems.
|
java.lang.String |
getName()
Get the name to use for the toc.
|
java.lang.String |
getRef()
Get the ref to use for the item.
|
int |
hashCode()
Method hashCode.
|
boolean |
isCollapse()
Get whether to show any child elements of a TOCItem,
overriding
the depth given in DocumentTOC.
|
void |
removeItem(DocumentTOCItem documentTOCItem)
Method removeItem.
|
void |
setCollapse(boolean collapse)
Set whether to show any child elements of a TOCItem,
overriding
the depth given in DocumentTOC.
|
void |
setItems(java.util.List<DocumentTOCItem> items)
Set a table of content item containing sub-items.
|
void |
setName(java.lang.String name)
Set the name to use for the toc.
|
void |
setRef(java.lang.String ref)
Set the ref to use for the item.
|
java.lang.String |
toString()
Method toString.
|
private java.lang.String name
private java.lang.String ref
private boolean collapse
private java.util.List<DocumentTOCItem> items
public void addItem(DocumentTOCItem documentTOCItem)
documentTOCItem
- public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- public java.util.List<DocumentTOCItem> getItems()
public java.lang.String getName()
public java.lang.String getRef()
public int hashCode()
hashCode
in class java.lang.Object
public boolean isCollapse()
public void removeItem(DocumentTOCItem documentTOCItem)
documentTOCItem
- public void setCollapse(boolean collapse)
collapse
- public void setItems(java.util.List<DocumentTOCItem> items)
items
- public void setName(java.lang.String name)
name
- public void setRef(java.lang.String ref)
ref
- public java.lang.String toString()
toString
in class java.lang.Object