|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.jsp.java.JspNode
com.caucho.jsp.java.JspContainerNode
com.caucho.jsp.java.JspFragmentNode
com.caucho.jsp.java.JspAttribute
public class JspAttribute
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JspAttribute()
Method Detail |
---|
public QName getName()
public boolean isTrim()
isTrim
in class JspFragmentNode
public void addAttribute(QName name, java.lang.String value) throws JspParseException
addAttribute
in class JspContainerNode
name
- the name of the attribute.value
- the value of the attribute.
JspParseException
public void endAttributes() throws JspParseException
endAttributes
in class JspFragmentNode
JspParseException
public JspNode addText(java.lang.String text) throws JspParseException
addText
in class JspFragmentNode
JspParseException
public void endElement() throws JspParseException
endElement
in class JspNode
JspParseException
public TagInstance getTag()
getTag
in class JspNode
public boolean isStatic()
isStatic
in class JspFragmentNode
public void printXml(WriteStream os) throws java.io.IOException
printXml
in class JspNode
os
- write stream to the generated XML.
java.io.IOException
public void generatePrologue(JspJavaWriter out) throws java.lang.Exception
generatePrologue
in class JspNode
java.lang.Exception
protected java.lang.String generateValue() throws java.lang.Exception
generateValue
in class JspFragmentNode
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |