com.atlassian.velocity.htmlsafe.directive
Class DefaultDirectiveChecker
java.lang.Object
com.atlassian.velocity.htmlsafe.directive.DefaultDirectiveChecker
- All Implemented Interfaces:
- DirectiveChecker
public class DefaultDirectiveChecker
- extends Object
- implements DirectiveChecker
Checks whether a directive is present by traversing a Template's AST.
- Since:
- v1.1.1
|
Method Summary |
boolean |
isPresent(String directiveName,
org.apache.velocity.Template template)
Determines whether a directive with an specified name is present on a template instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultDirectiveChecker
public DefaultDirectiveChecker()
isPresent
public boolean isPresent(String directiveName,
org.apache.velocity.Template template)
- Description copied from interface:
DirectiveChecker
- Determines whether a directive with an specified name is present on a template instance.
- Specified by:
isPresent in interface DirectiveChecker
- Parameters:
directiveName - The name of the directive to look for.template - The template where we will search for the directive.
- Returns:
- true, if the directive has been defined on the template; otherwise, false.
- See Also:
Directives.isPresent(String, org.apache.velocity.Template)
Copyright © 2014 Atlassian. All Rights Reserved.