com.atlassian.velocity.htmlsafe.directive
Class Directives

java.lang.Object
  extended by com.atlassian.velocity.htmlsafe.directive.Directives

public class Directives
extends java.lang.Object

Contains a set of static utility methods that operate on Velocity Directives.

Since:
v5.1
See Also:
Directive

Constructor Summary
Directives()
           
 
Method Summary
static 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

Directives

public Directives()
Method Detail

isPresent

public static 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.

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.


Copyright © 2013 Atlassian. All Rights Reserved.