Package org.apache.maven.doxia.document
Class DocumentTOCItem
- java.lang.Object
-
- org.apache.maven.doxia.document.DocumentTOCItem
-
- All Implemented Interfaces:
Serializable
public class DocumentTOCItem extends Object implements Serializable
A menu item.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DocumentTOCItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddItem(DocumentTOCItem documentTOCItem)Method addItem.booleanequals(Object other)Method equals.List<DocumentTOCItem>getItems()Method getItems.StringgetName()Get the name to use for the toc.StringgetRef()Get the ref to use for the item.inthashCode()Method hashCode.booleanisCollapse()Get whether to show any child elements of a TOCItem, overriding the depth given in DocumentTOC.voidremoveItem(DocumentTOCItem documentTOCItem)Method removeItem.voidsetCollapse(boolean collapse)Set whether to show any child elements of a TOCItem, overriding the depth given in DocumentTOC.voidsetItems(List<DocumentTOCItem> items)Set a table of content item containing sub-items.voidsetName(String name)Set the name to use for the toc.voidsetRef(String ref)Set the ref to use for the item.StringtoString()Method toString.
-
-
-
Method Detail
-
addItem
public void addItem(DocumentTOCItem documentTOCItem)
Method addItem.- Parameters:
documentTOCItem-
-
equals
public boolean equals(Object other)
Method equals.
-
getItems
public List<DocumentTOCItem> getItems()
Method getItems.- Returns:
- List
-
getName
public String getName()
Get the name to use for the toc.- Returns:
- String
-
getRef
public String getRef()
Get the ref to use for the item.- Returns:
- String
-
isCollapse
public boolean isCollapse()
Get whether to show any child elements of a TOCItem, overriding the depth given in DocumentTOC. By default, all children are expanded up to the depth given in DocumentTOC.- Returns:
- boolean
-
removeItem
public void removeItem(DocumentTOCItem documentTOCItem)
Method removeItem.- Parameters:
documentTOCItem-
-
setCollapse
public void setCollapse(boolean collapse)
Set whether to show any child elements of a TOCItem, overriding the depth given in DocumentTOC. By default, all children are expanded up to the depth given in DocumentTOC.- Parameters:
collapse-
-
setItems
public void setItems(List<DocumentTOCItem> items)
Set a table of content item containing sub-items.- Parameters:
items-
-
setName
public void setName(String name)
Set the name to use for the toc.- Parameters:
name-
-
setRef
public void setRef(String ref)
Set the ref to use for the item.- Parameters:
ref-
-
-