FileDocCategorySizeDatePackage
TagDescriptor.javaAPI DocGlassfish v2 API4021Fri May 04 22:34:18 BST 2007com.sun.enterprise.tools.verifier.web

TagDescriptor

public class TagDescriptor extends Object
This is the descriptor class for the tag element of the taglib root element for a .tld file used in a jsp.

Fields Summary
Node
node
public static final String
TAG_CLASS_NAME
public static final String
TAG_CLASS_1_1_NAME
public static final String
DYNAMIC_ATTRIB
public static final String
_FALSE
public static final String
TAG_NAME
Constructors Summary
public TagDescriptor(Node n)

 // NOI18N

        
        this.node=n;
    
Methods Summary
public java.lang.StringgetDynamicAttributes()

return
dynamic-attributes value defined for a tag

        NodeList n1 = node.getChildNodes();
        String dynAttr = _FALSE;
        for (int k = 0; k < n1.getLength(); k++) {
            String name = n1.item(k).getNodeName();
            if (name == DYNAMIC_ATTRIB) {
                dynAttr = n1.item(k).getFirstChild().getNodeValue();
            }
        }
        return dynAttr;
    
public java.lang.StringgetTagClass()
className

return
class name as String

        NodeList n1 = node.getChildNodes();
        String className = null;
        for (int k = 0; k < n1.getLength(); k++) {
            String name = n1.item(k).getNodeName();
            if (name == TAG_CLASS_NAME || name == TAG_CLASS_1_1_NAME) {
                className = n1.item(k).getFirstChild().getNodeValue();
            }
        }
        return className;
    
public java.lang.StringgetTagName()

return
name of the tag

        NodeList n1 = node.getChildNodes();
        String tagName = null;
        for (int k = 0; k < n1.getLength(); k++) {
            String name = n1.item(k).getNodeName();
            if (name == TAG_NAME) {
                 tagName = n1.item(k).getFirstChild().getNodeValue();
            }
        }
        return tagName;