org.xwiki.rendering.macro.toc
Enum TocMacroParameters.Scope
java.lang.Object
java.lang.Enum<TocMacroParameters.Scope>
org.xwiki.rendering.macro.toc.TocMacroParameters.Scope
- All Implemented Interfaces:
- Serializable, Comparable<TocMacroParameters.Scope>
- Enclosing class:
- TocMacroParameters
public static enum TocMacroParameters.Scope
- extends Enum<TocMacroParameters.Scope>
- Version:
- $Id: 014d0da4af260b6c0d74ed8b873d339bad9975af $
|
Enum Constant Summary |
LOCAL
List section starting where macro block is located in the XDOM. |
PAGE
List the sections of the whole page. |
LOCAL
public static final TocMacroParameters.Scope LOCAL
- List section starting where macro block is located in the XDOM.
PAGE
public static final TocMacroParameters.Scope PAGE
- List the sections of the whole page.
values
public static TocMacroParameters.Scope[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (TocMacroParameters.Scope c : TocMacroParameters.Scope.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static TocMacroParameters.Scope valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
Copyright © 2004-2011 XWiki. All Rights Reserved.