Groovy Documentation

org.codehaus.groovy.grails.commons
[Java] Interface GrailsTagLibClass

org.codehaus.groovy.grails.commons.GrailsClass
  org.codehaus.groovy.grails.commons.InjectableGrailsClass
      org.codehaus.groovy.grails.commons.GrailsTagLibClass
All Superinterfaces:
GrailsClass, InjectableGrailsClass

public interface GrailsTagLibClass
extends InjectableGrailsClass

Represents a Grails tab library class.

Authors:
Graeme Rocher


Field Summary
java.lang.String DEFAULT_NAMESPACE

java.lang.String NAMESPACE_FIELD_NAME

java.lang.String RETURN_OBJECT_FOR_TAGS_FIELD_NAME

java.lang.String SUPPORTS_CONTROLLER

The name of the application (ie global) tag library appropriate for all controller classes.

 
Method Summary
java.lang.String getNamespace()

@return the namespace that this taglib occupies.

java.util.Set getTagNames()

@return The tag names in this library

java.util.Set getTagNamesThatReturnObject()

boolean hasTag(java.lang.String tagName)

@param tagName The name of the tag

boolean supportsController(GrailsControllerClass controllerClass)

Whether this tag library supports the specified controller.

 
Methods inherited from interface InjectableGrailsClass
byName, byType, getAvailable
 
Methods inherited from interface GrailsClass
getClazz, getFullName, getLogicalPropertyName, getMetaClass, getName, getNaturalName, getPackageName, getPropertyName, getPropertyValue, getPropertyValue, getReference, getReferenceInstance, getShortName, hasProperty, newInstance
 

Field Detail

DEFAULT_NAMESPACE

public java.lang.String DEFAULT_NAMESPACE


NAMESPACE_FIELD_NAME

public java.lang.String NAMESPACE_FIELD_NAME


RETURN_OBJECT_FOR_TAGS_FIELD_NAME

public java.lang.String RETURN_OBJECT_FOR_TAGS_FIELD_NAME


SUPPORTS_CONTROLLER

public java.lang.String SUPPORTS_CONTROLLER
The name of the application (ie global) tag library appropriate for all controller classes.


 
Method Detail

getNamespace

public java.lang.String getNamespace()
Returns:
the namespace that this taglib occupies.


getTagNames

public java.util.Set getTagNames()
Returns:
The tag names in this library


getTagNamesThatReturnObject

public java.util.Set getTagNamesThatReturnObject()


hasTag

public boolean hasTag(java.lang.String tagName)
Parameters:
tagName - The name of the tag
Returns:
Whether the tag library contains the specified tag


supportsController

public boolean supportsController(GrailsControllerClass controllerClass)
Whether this tag library supports the specified controller.
Parameters:
controllerClass - The controllerClass to check
Returns:
True if the controller is supported


 

Groovy Documentation