com.caucho.jsp.java
Class JspAttribute

java.lang.Object
  extended by com.caucho.jsp.java.JspNode
      extended by com.caucho.jsp.java.JspContainerNode
          extended by com.caucho.jsp.java.JspFragmentNode
              extended by com.caucho.jsp.java.JspAttribute
All Implemented Interfaces:
JspSegmentNode

public class JspAttribute
extends JspFragmentNode

Represents a jsp:attribute node


Field Summary
 
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, _ns, _parent, _parseState, _sourcePath, _startLine
 
Constructor Summary
JspAttribute()
           
 
Method Summary
 void addAttribute(QName name, java.lang.String value)
          Adds an attribute.
 JspNode addText(java.lang.String text)
          Adds a text node.
 void endAttributes()
          Called when the attributes end.
 void endElement()
          Adds an attribute.
 void generatePrologue(JspJavaWriter out)
          Generates the prologue.
protected  java.lang.String generateValue()
          Generates the code for a fragment.
 QName getName()
          Returns the attribute name.
 TagInstance getTag()
          Returns the root tag instance of the root.
 boolean isStatic()
          Returns true if the children are static.
 boolean isTrim()
          Returns true if trimming is enabled.
 void printXml(WriteStream os)
          Generates the XML text representation for the tag validation.
 
Methods inherited from class com.caucho.jsp.java.JspFragmentNode
generate, generateFragmentPrologue, getCustomTagName, getFragmentCode, getFragmentName, isJspFragment, isValueFragment, setJspFragment
 
Methods inherited from class com.caucho.jsp.java.JspContainerNode
addAttribute, addAttributeChild, addChild, addChildEnd, findScriptingNode, generateChildren, 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, getEndAttributeLine, getEndLine, getFilename, getGenerator, getJsfBodyVar, getJsfVar, getNamespaceContext, getNamespacePrefix, getParent, getParentTagName, getParentTagNode, getQName, getRuntimeAttribute, getSegment, getStartLine, getStaticText, getTagName, hasDeferredAttribute, hasDeferredAttribute, hasELAttribute, hasELAttribute, hasNamespace, hasNamespace, hasRuntimeAttribute, hasScripting, hasScripting, invokeFragment, isInFragment, isJsp21, isJstl, isPre21Taglib, isSimpleTag, 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

JspAttribute

public JspAttribute()
Method Detail

getName

public QName getName()
Returns the attribute name.


isTrim

public boolean isTrim()
Returns true if trimming is enabled.

Overrides:
isTrim in class JspFragmentNode

addAttribute

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

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

endAttributes

public void endAttributes()
                   throws JspParseException
Called when the attributes end.

Overrides:
endAttributes in class JspFragmentNode
Throws:
JspParseException

addText

public JspNode addText(java.lang.String text)
                throws JspParseException
Adds a text node.

Overrides:
addText in class JspFragmentNode
Throws:
JspParseException

endElement

public void endElement()
                throws JspParseException
Adds an attribute.

Overrides:
endElement in class JspNode
Throws:
JspParseException

getTag

public TagInstance getTag()
Returns the root tag instance of the root.

Overrides:
getTag in class JspNode

isStatic

public boolean isStatic()
Returns true if the children are static.

Overrides:
isStatic in class JspFragmentNode

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 the prologue.

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

generateValue

protected java.lang.String generateValue()
                                  throws java.lang.Exception
Generates the code for a fragment.

Overrides:
generateValue in class JspFragmentNode
Throws:
java.lang.Exception