com.caucho.jsp.java
Class JsfTagNode

java.lang.Object
  extended by com.caucho.jsp.java.JspNode
      extended by com.caucho.jsp.java.JspContainerNode
          extended by com.caucho.jsp.java.JsfNode
              extended by com.caucho.jsp.java.JsfTagNode

public class JsfTagNode
extends JsfNode

Represents a custom tag.


Field Summary
 
Fields inherited from class com.caucho.jsp.java.JsfNode
_bodyVar, _var
 
Fields inherited from class com.caucho.jsp.java.JspContainerNode
_attributeNames, _attributeValues, _children, _hasJspAttribute
 
Fields inherited from class com.caucho.jsp.java.JspNode
_endAttributeLine, _endLine, _filename, _gen, _name, _ns, _parent, _parseState, _sourcePath, _startLine
 
Constructor Summary
JsfTagNode()
           
 
Method Summary
 void addAttribute(QName qName, JspAttribute value)
          Adds a JspAttribute attribute.
 void addAttribute(QName qName, java.lang.String value)
          Adds an attribute.
 void endAttributes()
          Called after all the attributes from the tag.
 void endElement()
          Called when the tag closes.
 void generate(JspJavaWriter out)
          Generates the code for a custom tag.
 void generatePrologue(JspJavaWriter out)
          generates prologue data.
 void printXml(WriteStream os)
          Generates the XML text representation for the tag validation.
 void setComponentClass(java.lang.Class cl)
           
 void setNext(JspNode next)
           
 
Methods inherited from class com.caucho.jsp.java.JsfNode
findSetter, generateChildren, getJsfBodyVar, getJsfVar, hasBodyContent
 
Methods inherited from class com.caucho.jsp.java.JspContainerNode
addAttributeChild, addChild, addChildEnd, addText, findScriptingNode, generateChildrenEmpty, generateClassEpilogueChildren, generateDeclarationChildren, generatePrologueChildren, generateStatic, generateTagReleaseChildren, generateTagStateChildren, getAttribute, getChildren, getStaticText, hasChildren, hasCustomTag, hasScripting, hasScriptingElement, hasTag, isChildrenStatic, isEmpty, isJsfParentRequired, isSingleExpression, isWhitespace, printXmlChildren
 
Methods inherited from class com.caucho.jsp.java.JspNode
addNamespace, addNamespaceRec, attributeToBoolean, classToString, convertParameterValue, error, error, error, escapeJavaString, generateClassEpilogue, generateDeclaration, generateELValue, generateEmpty, generateEndLocation, generateFragment, generateIncludeUrl, generateObject, generateParentTag, generatePrologueDeclare, generateStartLocation, generateTagRelease, generateTagState, getBodyContent, getCustomTagName, getEndAttributeLine, getEndLine, getFilename, getGenerator, getNamespaceContext, getNamespacePrefix, getParent, getParentTagName, getParentTagNode, getQName, getRuntimeAttribute, getSegment, getStartLine, getStaticText, getTag, getTagName, hasDeferredAttribute, hasDeferredAttribute, hasELAttribute, hasELAttribute, hasNamespace, hasNamespace, hasRuntimeAttribute, hasScripting, hasScripting, invokeFragment, isInFragment, isJsp21, isJstl, isPre21Taglib, isSimpleTag, isStatic, loadClass, printJspId, printXmlAttribute, printXmlOpen, printXmlText, setEndAttributeLocation, setEndLocation, setGenerator, setNamespace, setParent, setParseState, setQName, setStartLocation, toELObject, toString, xmlAttrText, xmlText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JsfTagNode

public JsfTagNode()
Method Detail

setComponentClass

public void setComponentClass(java.lang.Class cl)

setNext

public void setNext(JspNode next)

addAttribute

public void addAttribute(QName qName,
                         java.lang.String value)
                  throws JspParseException
Adds an attribute.

Overrides:
addAttribute in class JsfNode
Parameters:
qName - the name of the attribute.
value - the value of the attribute.
Throws:
JspParseException

addAttribute

public void addAttribute(QName qName,
                         JspAttribute value)
                  throws JspParseException
Adds a JspAttribute attribute.

Overrides:
addAttribute in class JsfNode
Parameters:
qName - the name of the attribute.
value - the value of the attribute.
Throws:
JspParseException

endAttributes

public void endAttributes()
                   throws JspParseException
Called after all the attributes from the tag.

Overrides:
endAttributes in class JspNode
Throws:
JspParseException

endElement

public void endElement()
Description copied from class: JspNode
Called when the tag closes.

Overrides:
endElement in class JspNode

printXml

public void printXml(WriteStream os)
              throws java.io.IOException
Generates the XML text representation for the tag validation.

Specified by:
printXml in class JspNode
Parameters:
os - write stream to the generated XML.
Throws:
java.io.IOException

generatePrologue

public void generatePrologue(JspJavaWriter out)
                      throws java.lang.Exception
generates prologue data.

Overrides:
generatePrologue in class JsfNode
Throws:
java.lang.Exception

generate

public void generate(JspJavaWriter out)
              throws java.lang.Exception
Generates the code for a custom tag.

Specified by:
generate in class JspNode
Parameters:
out - the output writer for the generated java.
Throws:
java.lang.Exception