com.atlassian.velocity.htmlsafe.directive
Class DefaultDirectiveChecker

java.lang.Object
  extended by com.atlassian.velocity.htmlsafe.directive.DefaultDirectiveChecker
All Implemented Interfaces:
DirectiveChecker

public class DefaultDirectiveChecker
extends java.lang.Object
implements DirectiveChecker

Checks whether a directive is present by traversing a Template's AST.

Since:
v1.1.1

Constructor Summary
DefaultDirectiveChecker()
           
 
Method Summary
 boolean isPresent(java.lang.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
 

Constructor Detail

DefaultDirectiveChecker

public DefaultDirectiveChecker()
Method Detail

isPresent

public boolean isPresent(java.lang.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 © 2013 Atlassian. All Rights Reserved.