Package org.apache.velocity.tools
Class Scope
- java.lang.Object
-
- org.apache.velocity.tools.Scope
-
public final class Scope extends java.lang.Object
A specialized constants class to provide some compile-time typo checking and runtime validation for scopes specified in annotations, toolbox configs, etc.- Version:
- $Id: Toolbox.java 511959 2007-02-26 19:24:39Z nbubna $
- Author:
- Nathan Bubna
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Scope()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
add(java.lang.String newScope)
static boolean
exists(java.lang.String scope)
static Scope
getInstance()
static java.util.List<java.lang.String>
values()
-
-
-
Field Detail
-
REQUEST
public static final java.lang.String REQUEST
- See Also:
- Constant Field Values
-
SESSION
public static final java.lang.String SESSION
- See Also:
- Constant Field Values
-
APPLICATION
public static final java.lang.String APPLICATION
- See Also:
- Constant Field Values
-
VALUES
private static final java.util.List<java.lang.String> VALUES
-
INSTANCE
private static final Scope INSTANCE
-
-
Method Detail
-
getInstance
public static final Scope getInstance()
-
add
public static final void add(java.lang.String newScope)
-
exists
public static final boolean exists(java.lang.String scope)
-
values
public static final java.util.List<java.lang.String> values()
-
-