Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.rendering.wiki
Class Toc

java.lang.Object
  extended by org.nuxeo.ecm.platform.rendering.wiki.Toc

public class Toc
extends Object

Table of contents model.

A simple linked list of toc entries.

Author:
Bogdan Stefanescu

Nested Class Summary
static class Toc.Entry
           
 
Constructor Summary
Toc()
           
 
Method Summary
 String addHeading(String title, int level)
          Adds a heading to the TOC list and returns the ID of that heading (to be used for anchors).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Toc

public Toc()
Method Detail

addHeading

public String addHeading(String title,
                         int level)
Adds a heading to the TOC list and returns the ID of that heading (to be used for anchors).

Parameters:
title - the heading title
level - the heading level
Returns:
the heading id

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.