public void forAllMethods(String template, Properties attributes)
        throws XDocletException {
        String tagName = attributes.getProperty("tagName");

        if(DEBUG)
            logger.debug("Handling tagName: " + tagName);

        setCurrentTagName(tagName);

        try {
            XClass currentClass = getCurrentClass();

            if (currentClass == null)
                throw new XDocletException("currentClass == null!!!");

            Collection members = currentClass.getMethods(true);

            List sortedMembers = new ArrayList(members);
            Collections.sort(sortedMembers, memberComparator);
            members = sortedMembers;

            Iterator methods = members.iterator();
            while(methods.hasNext())
            {
                XMethod xm = (XMethod)methods.next();

                if(DEBUG)
                    logger.debug("handle method: " + xm.getName());

                XTag attribute = getFirstTag(getCurrentClass(), xm.getName(), tagName);

                setCurrentMethod(xm);
                setCurrentMethodTag(attribute);

                if(getCurrentMethod() != null && attribute != null)
                    generate(template);

                setCurrentMethodTag(null);
                setCurrentClassTag(null);
                setCurrentMethod(null);
            }
            setCurrentClass(currentClass);
        }
        catch(Exception e) {
            e.printStackTrace();
            throw new XDocletException(e, "An error occurred in the forAllAttributes tag: " + e);
        }
    }
public void forAllMethods ( String template , Properties attributes ) throws XDocletException { String tagName = attributes . getProperty ( "tagName" ) ; if ( DEBUG ) logger . debug ( "Handling tagName: " + tagName ) ; setCurrentTagName ( tagName ) ; try { XClass currentClass = getCurrentClass ( ) ; if ( currentClass == null ) throw new XDocletException ( "currentClass == null!!!" ) ; Collection members = currentClass . getMethods ( true ) ; List sortedMembers = new ArrayList ( members ) ; Collections . sort ( sortedMembers , memberComparator ) ; members = sortedMembers ; Iterator methods = members . iterator ( ) ; while ( methods . hasNext ( ) ) { XMethod xm = ( XMethod ) methods . next ( ) ; if ( DEBUG ) logger . debug ( "handle method: " + xm . getName ( ) ) ; XTag attribute = getFirstTag ( getCurrentClass ( ) , xm . getName ( ) , tagName ) ; setCurrentMethod ( xm ) ; setCurrentMethodTag ( attribute ) ; if ( getCurrentMethod ( ) != null && attribute != null ) generate ( template ) ; setCurrentMethodTag ( null ) ; setCurrentClassTag ( null ) ; setCurrentMethod ( null ) ; } setCurrentClass ( currentClass ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; throw new XDocletException ( e , "An error occurred in the forAllAttributes tag: " + e ) ; } }
@param template              Describe what the parameter does
@param attributes            Describe what the parameter does
@exception XDocletException  Describe the exception
@doc:tag                     type="block"
@doc:tag name="tagName" optional="false" values="netui:jspfunction"