## org.codehaus.groovy.grails.commons
Class DefaultGrailsTagLibClass

    java.lang.Object
      org.codehaus.groovy.grails.commons.AbstractGrailsClass
          org.codehaus.groovy.grails.commons.AbstractInjectableGrailsClass
              org.codehaus.groovy.grails.commons.DefaultGrailsTagLibClass

All Implemented Interfaces:
  GrailsClass, GrailsTagLibClass, InjectableGrailsClass

    public class DefaultGrailsTagLibClass

extends AbstractInjectableGrailsClass
implements GrailsTagLibClass

Since:
  14-Jan-2006 Default implementation of a tag lib class
Author:
  Graeme Rocher

Field Summary
`protected static String` `TAG_LIB`

Fields inherited from interface org.codehaus.groovy.grails.commons.GrailsTagLibClass
`DEFAULT_NAMESPACE, NAMESPACE_FIELD_NAME, SUPPORTS_CONTROLLER`

Constructor Summary
`DefaultGrailsTagLibClass(Class clazz)` Default contructor

Method Summary
`String` `getNamespace()`
`Set` `getTagNames()`
`boolean` `hasTag(String tagName)`
`boolean` `supportsController(GrailsControllerClass controllerClass)` Whether this tag library supports the specified controller

Methods inherited from class org.codehaus.groovy.grails.commons.AbstractInjectableGrailsClass
`byName, byType, getAvailable`

Methods inherited from class org.codehaus.groovy.grails.commons.AbstractGrailsClass
`getClazz, getFullName, getLogicalPropertyName, getMetaClass, getName, getNaturalName, getPackageName, getPropertyName, getPropertyOrStaticPropertyOrFieldValue, getPropertyValue, getPropertyValue, getReference, getShortName, hasProperty, newInstance, toString`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Methods inherited from interface org.codehaus.groovy.grails.commons.InjectableGrailsClass
`byName, byType, getAvailable`

Methods inherited from interface org.codehaus.groovy.grails.commons.GrailsClass
`getClazz, getFullName, getLogicalPropertyName, getMetaClass, getName, getNaturalName, getPackageName, getPropertyName, getPropertyValue, getPropertyValue, getReference, getShortName, hasProperty, newInstance`

Field Detail

### TAG_LIB

    protected static final String TAG_LIB

See Also:
  Constant Field Values

Constructor Detail

### DefaultGrailsTagLibClass

    public DefaultGrailsTagLibClass(Class clazz)

  Default contructor

  Parameters:
    `clazz` - the tag library class

Method Detail

### supportsController

    public boolean supportsController(GrailsControllerClass controllerClass)

  Description copied from interface: `GrailsTagLibClass`
  Whether this tag library supports the specified controller

  Specified by:
    `supportsController` in interface `GrailsTagLibClass`
  Parameters:
    `controllerClass` - The controllerClass to check
  Returns:
    True if the controller is supported

### hasTag

    public boolean hasTag(String tagName)

  Specified by:
    `hasTag` in interface `GrailsTagLibClass`
  Parameters:
    `tagName` - The name of the tag
  Returns:
    Whether the tag library contains the specified tag

### getTagNames

    public Set getTagNames()

  Specified by:
    `getTagNames` in interface `GrailsTagLibClass`
  Returns:
    The tag names in this library

### getNamespace

    public String getNamespace()

  Specified by:
    `getNamespace` in interface `GrailsTagLibClass`
  Returns:
    the namespace that this taglib occupies.

Copyright (c) 2005-2006 The Grails project