org.xwiki.rendering.macro.toc
Class TocMacroParameters

java.lang.Object
  extended by org.xwiki.rendering.macro.toc.TocMacroParameters

public class TocMacroParameters
extends Object

Parameters for the org.xwiki.rendering.internal.macro.toc.TocMacro Macro.

Since:
1.6M1
Version:
$Id$

Nested Class Summary
static class TocMacroParameters.Scope
           
 
Constructor Summary
TocMacroParameters()
           
 
Method Summary
 int getDepth()
           
 TocMacroParameters.Scope getScope()
           
 int getStart()
           
 boolean isCustomStart()
           
 boolean isNumbered()
           
 void setDepth(int depth)
           
 void setNumbered(boolean numbered)
           
 void setScope(TocMacroParameters.Scope scope)
           
 void setStart(int start)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TocMacroParameters

public TocMacroParameters()
Method Detail

setStart

public void setStart(int start)
Parameters:
start - the minimum section level. For example if 2 then level 1 sections will not be listed.

getStart

public int getStart()
Returns:
the minimum section level. For example if 2 then level 1 sections will not be listed.

isCustomStart

public boolean isCustomStart()
Returns:
indicate if the start has been set or if it has the default value.

setDepth

public void setDepth(int depth)
Parameters:
depth - the maximum section level. For example if 3 then all section levels from 4 will not be listed.

getDepth

public int getDepth()
Returns:
the maximum section level. For example if 3 then all section levels from 4 will not be listed.

setScope

public void setScope(TocMacroParameters.Scope scope)
Parameters:
scope - If local only section in the current scope will be listed. For example if the macro is written in a section, only subsections of this section will be listed.

getScope

public TocMacroParameters.Scope getScope()
Returns:
if TocMacroParameters.Scope.LOCAL only section in the current scope will be listed. For example if the macro is written in a section, only subsections of this section will be listed.

setNumbered

public void setNumbered(boolean numbered)
Parameters:
numbered - if true the section title number is printed.

isNumbered

public boolean isNumbered()
Returns:
if true the section title number is printed.


Copyright © 2004-2012 XWiki. All Rights Reserved.