Package org.apache.maven.doxia.document
Class DocumentTOCItem
- java.lang.Object
-
- org.apache.maven.doxia.document.DocumentTOCItem
-
- All Implemented Interfaces:
java.io.Serializable
public class DocumentTOCItem extends java.lang.Object implements java.io.SerializableA menu item.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private booleancollapseWhether to show any child elements of a TOCItem, overriding the depth given in DocumentTOC.private java.util.ListitemsField items.private java.lang.StringnameThe name to use for the toc.private java.lang.StringrefThe ref to use for the item.
-
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(java.lang.Object other)Method equals.java.util.ListgetItems()Method getItems.java.lang.StringgetName()Get the name to use for the toc.java.lang.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(java.util.List items)Set a table of content item containing sub-items.voidsetName(java.lang.String name)Set the name to use for the toc.voidsetRef(java.lang.String ref)Set the ref to use for the item.java.lang.StringtoString()Method toString.
-
-
-
Field Detail
-
name
private java.lang.String name
The name to use for the toc.
-
ref
private java.lang.String ref
The ref to use for the item.
-
collapse
private boolean collapse
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.
-
items
private java.util.List items
Field items.
-
-
Method Detail
-
addItem
public void addItem(DocumentTOCItem documentTOCItem)
Method addItem.- Parameters:
documentTOCItem-
-
equals
public boolean equals(java.lang.Object other)
Method equals.- Overrides:
equalsin classjava.lang.Object- Parameters:
other-- Returns:
- boolean
-
getItems
public java.util.List getItems()
Method getItems.- Returns:
- List
-
getName
public java.lang.String getName()
Get the name to use for the toc.- Returns:
- String
-
getRef
public java.lang.String getRef()
Get the ref to use for the item.- Returns:
- String
-
hashCode
public int hashCode()
Method hashCode.- Overrides:
hashCodein classjava.lang.Object- Returns:
- int
-
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(java.util.List items)
Set a table of content item containing sub-items.- Parameters:
items-
-
setName
public void setName(java.lang.String name)
Set the name to use for the toc.- Parameters:
name-
-
setRef
public void setRef(java.lang.String ref)
Set the ref to use for the item.- Parameters:
ref-
-
toString
public java.lang.String toString()
Method toString.- Overrides:
toStringin classjava.lang.Object- Returns:
- String
-
-