xdoclet.tags
Class IdTagsHandler

java.lang.Object
  |
  +--xdoclet.template.TemplateTagHandler
        |
        +--xdoclet.XDocletTagSupport
              |
              +--xdoclet.tags.IdTagsHandler

public class IdTagsHandler
extends XDocletTagSupport

Version:
$Revision: 1.8 $
Author:
Ara Abrahamian (ara_e@email.com)

Fields inherited from class xdoclet.XDocletTagSupport
FOR_CLASS, FOR_CONSTRUCTOR, FOR_FIELD, FOR_METHOD, PARAMETER_DELIMITER
 
Constructor Summary
IdTagsHandler()
           
 
Method Summary
 java.lang.String id(java.util.Properties attributes)
          Generates an id attribute based on the given tag values.
 java.lang.String prefixedId(java.util.Properties attributes)
          Generates an id attribute based on the given prefix.
static void reset()
          Resets the hashtable which backs the prefixId tag.
 
Methods inherited from class xdoclet.XDocletTagSupport
getClassTagValue, getClassTagValue, getConstructorTagValue, getCurrentClass, getCurrentConstructor, getCurrentField, getCurrentMethod, getCurrentPackage, getCurrentTag, getDocletContext, getFieldTagValue, getFieldTagValue, getMethodTagValue, getMethodTagValue, getParameterValue, getParameterValue, getTagValue, getTagValue, getTagValue, invalidParamValueFound, mandatoryParamNotFound, mandatoryTemplateTagParamNotFound, parsePropertyString, popCurrentClass, pushCurrentClass, replaceProperties, setCurrentClass, setCurrentConstructor, setCurrentField, setCurrentMethod, setCurrentPackage, setCurrentTag, tokenizeValue
 
Methods inherited from class xdoclet.template.TemplateTagHandler
generate, getContext, getEngine, getParser, setContext, setEngine, setParser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdTagsHandler

public IdTagsHandler()
Method Detail

reset

public static void reset()
Resets the hashtable which backs the prefixId tag.

prefixedId

public java.lang.String prefixedId(java.util.Properties attributes)
                            throws XDocletException
Generates an id attribute based on the given prefix. This is used for generating id attribute for XML elements.
Parameters:
attributes - The attributes of the template tag
Returns:
An id in the form of <prefix>_<num>
Throws:
XDocletException - Description of Exception

id

public java.lang.String id(java.util.Properties attributes)
                    throws XDocletException
Generates an id attribute based on the given tag values. This is used for generating id attribute for XML elements.
Parameters:
attributes - The attributes of the template tag
Returns:
Description of the Returned Value
Throws:
XDocletException - Description of Exception