Java Doc for XslNode.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » xsl » java » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » EJB Server resin 3.1.5 » resin » com.caucho.xsl.java 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.xsl.java.XslNode

All known Subclasses:   com.caucho.xsl.java.XtpDirectiveCache,  com.caucho.xsl.java.XtpDirectivePage,  com.caucho.xsl.java.XslVariable,  com.caucho.xsl.java.XslCallTemplate,  com.caucho.xsl.java.XslUseAttributeSets,  com.caucho.xsl.java.XslParam,  com.caucho.xsl.java.XslNamespaceAlias,  com.caucho.xsl.java.XslCopy,  com.caucho.xsl.java.XslAttribute,  com.caucho.xsl.java.XtpExpression,  com.caucho.xsl.java.XslElementNode,  com.caucho.xsl.java.XslOutput,  com.caucho.xsl.java.XslWithParam,  com.caucho.xsl.java.XslProcessingInstruction,  com.caucho.xsl.java.XslImport,  com.caucho.xsl.java.XslNumber,  com.caucho.xsl.java.XslKey,  com.caucho.xsl.java.XslTemplate,  com.caucho.xsl.java.XslInclude,  com.caucho.xsl.java.XslIf,  com.caucho.xsl.java.XslWrapperNode,  com.caucho.xsl.java.XslPreserveSpace,  com.caucho.xsl.java.XslAttributeSet,  com.caucho.xsl.java.XslOtherwise,  com.caucho.xsl.java.XslForEach,  com.caucho.xsl.java.XslResultDocument,  com.caucho.xsl.java.XslCopyOf,  com.caucho.xsl.java.XslSort,  com.caucho.xsl.java.XslNamespaceNode,  com.caucho.xsl.java.XslWhen,  com.caucho.xsl.java.TextNode,  com.caucho.xsl.java.XslText,  com.caucho.xsl.java.XslStripSpace,  com.caucho.xsl.java.XslApplyTemplates,  com.caucho.xsl.java.XslMessage,  com.caucho.xsl.java.XslChoose,  com.caucho.xsl.java.XslAttributeNode,  com.caucho.xsl.java.XtpScriptlet,  com.caucho.xsl.java.XslElement,  com.caucho.xsl.java.XtpDeclaration,  com.caucho.xsl.java.XslDecimalFormat,  com.caucho.xsl.java.XslValueOf,  com.caucho.xsl.java.XslApplyImports,  com.caucho.xsl.java.XslComment,  com.caucho.xsl.java.XslStylesheet,
XslNode
abstract public class XslNode (Code)
Represents any XSL node from the stylesheet.


Field Summary
final static  L10NL
    
protected  ArrayList<XslNode>_children
    
protected  int_endLine
    
protected  String_filename
    
protected  JavaGenerator_gen
    
protected  NamespaceContext_matchNamespace
    
protected  QName_name
    
protected  NamespaceContext_outputNamespace
    
protected  XslNode_parent
    
protected  int_startLine
    
protected  String_systemId
    
final static  Loggerlog
    

Constructor Summary
protected  XslNode()
    

Method Summary
public  voidaddAttribute(QName name, String value)
     Adds an attribute.
public  voidaddChild(XslNode node)
     Adds a child node.
protected  intaddExpr(String pattern)
    
protected  voidaddNamespaceAttribute(QName name, String url)
     Adds an attribute.
public  voidaddText(String text)
     Adds text.
public  voidaddVariableCount()
     Add variable.
protected  booleanallowJavaSelect(AbstractPattern select)
     Returns true if we can compile in the java select.
public  voidendAttributes()
     Called after all the attributes from the tag.
public  voidendElement()
     Called when the tag closes.
protected  XslParseExceptionerror(String msg)
     Creates a parse exception with the proper line information.
protected  XslParseExceptionerror(Throwable e)
     Creates a parse exception with the proper line information.
public  StringescapeJavaString(String s)
    
abstract public  voidgenerate(JavaWriter out)
    
public  voidgenerateChildren(JavaWriter out)
     Generates the code for the children.
public  voidgenerateDeclaration(JavaWriter out)
    
public  voidgenerateDeclarationChildren(JavaWriter out)
     Generates the declaration code for the children.
protected  intgenerateId()
    
 voidgenerateString(JavaWriter out, String string)
     Produces code to generate an attribute value template.
 voidgenerateString(JavaWriter out, String string, int mode)
     Produces code to generate an attribute value template.
public  StringgetBaseURI()
     Returns the base URI.
public  ArrayList<XslNode>getChildren()
     Returns the children.
public  intgetEndLine()
    
protected  StringgetEnv()
    
public  StringgetFilename()
    
public  NamespaceContextgetMatchNamespace()
     Returns the namespaces.
public  StringgetNamespace(String prefix)
     Returns the matching node in the namespace.
public  NamespaceContextgetOutputNamespace()
     Returns the namespaces.
public  XslNodegetParent()
     Returns the parent node.
public  QNamegetQName()
     Returns the qname of the node.
public  intgetStartLine()
    
public  StringgetSystemId()
    
public  StringgetTagName()
     Returns the qname of the node.
public  booleanhasChildren()
     Returns true if there are any children.
protected  ExprparseExpr(String pattern)
     Parses an XPath expression in the current context.
public  AbstractPatternparseMatch(String pattern)
    
protected  AbstractPatternparseSelect(String pattern)
    
protected  voidpopCall(JavaWriter out)
    
protected  voidpopScope(JavaWriter out)
    
protected  voidprintAttributeValue(JavaWriter out, String name, String value)
     Prints an attribute value.
protected  voidprintAttributeValue(JavaWriter out, String value)
     Prints an attribute value.
protected  voidprintExprTest(JavaWriter out, int id, String node)
     Prints a test expr.
protected  voidprintFragmentString(JavaWriter out, String id)
     Prints the children as a fragment stored in a variable.
protected  voidprintFragmentValue(JavaWriter out, String id)
     Prints the children as a fragment stored in a variable.
protected  voidprintNamespace(JavaWriter out, NamespaceContext namespace)
    
protected  voidprintPopScope(JavaWriter out)
    
protected  StringprintSelectBegin(JavaWriter out, AbstractPattern select, boolean isForEach, String loopVar)
     Prints iterator code to start a select.
protected  voidprintStringExpr(JavaWriter out, String exprString)
    
protected  voidpushCall(JavaWriter out)
    
public  voidsetEndLocation(String filename, int line)
     Sets the end location of the node.
public  voidsetGenerator(JavaGenerator gen)
     Sets the Java generator.
public  voidsetParent(XslNode parent)
    
public  voidsetQName(QName name)
    
public  voidsetStartLocation(String systemId, String filename, int line)
     Sets the start location of the node.
protected  voidstringExpr(JavaWriter out, String exprString)
    
public  StringtoString()
     Returns a printable version of the node.

Field Detail
L
final static L10N L(Code)



_children
protected ArrayList<XslNode> _children(Code)



_endLine
protected int _endLine(Code)



_filename
protected String _filename(Code)



_gen
protected JavaGenerator _gen(Code)



_matchNamespace
protected NamespaceContext _matchNamespace(Code)



_name
protected QName _name(Code)



_outputNamespace
protected NamespaceContext _outputNamespace(Code)



_parent
protected XslNode _parent(Code)



_startLine
protected int _startLine(Code)



_systemId
protected String _systemId(Code)



log
final static Logger log(Code)




Constructor Detail
XslNode
protected XslNode()(Code)




Method Detail
addAttribute
public void addAttribute(QName name, String value) throws XslParseException(Code)
Adds an attribute.



addChild
public void addChild(XslNode node) throws XslParseException(Code)
Adds a child node.



addExpr
protected int addExpr(String pattern) throws XslParseException(Code)



addNamespaceAttribute
protected void addNamespaceAttribute(QName name, String url) throws XslParseException(Code)
Adds an attribute.



addText
public void addText(String text) throws XslParseException(Code)
Adds text.



addVariableCount
public void addVariableCount()(Code)
Add variable.



allowJavaSelect
protected boolean allowJavaSelect(AbstractPattern select)(Code)
Returns true if we can compile in the java select.



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



endElement
public void endElement() throws Exception(Code)
Called when the tag closes.



error
protected XslParseException error(String msg)(Code)
Creates a parse exception with the proper line information.



error
protected XslParseException error(Throwable e)(Code)
Creates a parse exception with the proper line information.



escapeJavaString
public String escapeJavaString(String s)(Code)



generate
abstract public void generate(JavaWriter out) throws Exception(Code)
Generates the code for the tag
Parameters:
  out - the output writer for the generated java.



generateChildren
public void generateChildren(JavaWriter out) throws Exception(Code)
Generates the code for the children.
Parameters:
  out - the output writer for the generated java.



generateDeclaration
public void generateDeclaration(JavaWriter out) throws Exception(Code)
Generates the prelude code for the tag
Parameters:
  out - the output writer for the generated java.



generateDeclarationChildren
public void generateDeclarationChildren(JavaWriter out) throws Exception(Code)
Generates the declaration code for the children.
Parameters:
  out - the output writer for the generated java.



generateId
protected int generateId()(Code)



generateString
void generateString(JavaWriter out, String string) throws Exception(Code)
Produces code to generate an attribute value template. The same code is used to produce a string ('a{b}c' -> "a" + b + "c") or a series of print statements (',').
Parameters:
  string - the source template
Parameters:
  mode - separator: either '+' or ','
Parameters:
  elt - the containing element. Needed for namespaces.



generateString
void generateString(JavaWriter out, String string, int mode) throws Exception(Code)
Produces code to generate an attribute value template. The same code is used to produce a string ('a{b}c' -> "a" + b + "c") or a series of print statements (',').
Parameters:
  string - the source template
Parameters:
  mode - separator: either '+' or ','
Parameters:
  elt - the containing element. Needed for namespaces.



getBaseURI
public String getBaseURI()(Code)
Returns the base URI.



getChildren
public ArrayList<XslNode> getChildren()(Code)
Returns the children.



getEndLine
public int getEndLine()(Code)
Gets the ending line number



getEnv
protected String getEnv()(Code)



getFilename
public String getFilename()(Code)
Gets the filename of the node



getMatchNamespace
public NamespaceContext getMatchNamespace()(Code)
Returns the namespaces.



getNamespace
public String getNamespace(String prefix)(Code)
Returns the matching node in the namespace.



getOutputNamespace
public NamespaceContext getOutputNamespace()(Code)
Returns the namespaces.



getParent
public XslNode getParent()(Code)
Returns the parent node.



getQName
public QName getQName()(Code)
Returns the qname of the node.



getStartLine
public int getStartLine()(Code)
Gets the starting line number



getSystemId
public String getSystemId()(Code)
Gets the system id of the node



getTagName
public String getTagName()(Code)
Returns the qname of the node.



hasChildren
public boolean hasChildren()(Code)
Returns true if there are any children.



parseExpr
protected Expr parseExpr(String pattern) throws XslParseException(Code)
Parses an XPath expression in the current context.



parseMatch
public AbstractPattern parseMatch(String pattern) throws XslParseException, IOException(Code)



parseSelect
protected AbstractPattern parseSelect(String pattern) throws XslParseException(Code)



popCall
protected void popCall(JavaWriter out) throws IOException(Code)



popScope
protected void popScope(JavaWriter out) throws Exception(Code)



printAttributeValue
protected void printAttributeValue(JavaWriter out, String name, String value) throws Exception(Code)
Prints an attribute value.



printAttributeValue
protected void printAttributeValue(JavaWriter out, String value) throws Exception(Code)
Prints an attribute value.



printExprTest
protected void printExprTest(JavaWriter out, int id, String node) throws IOException(Code)
Prints a test expr.



printFragmentString
protected void printFragmentString(JavaWriter out, String id) throws Exception(Code)
Prints the children as a fragment stored in a variable.



printFragmentValue
protected void printFragmentValue(JavaWriter out, String id) throws Exception(Code)
Prints the children as a fragment stored in a variable.



printNamespace
protected void printNamespace(JavaWriter out, NamespaceContext namespace) throws Exception(Code)



printPopScope
protected void printPopScope(JavaWriter out) throws Exception(Code)



printSelectBegin
protected String printSelectBegin(JavaWriter out, AbstractPattern select, boolean isForEach, String loopVar) throws IOException, XslParseException(Code)
Prints iterator code to start a select.



printStringExpr
protected void printStringExpr(JavaWriter out, String exprString) throws Exception(Code)
Prints a value-of expression



pushCall
protected void pushCall(JavaWriter out) throws IOException(Code)



setEndLocation
public void setEndLocation(String filename, int line)(Code)
Sets the end location of the node.



setGenerator
public void setGenerator(JavaGenerator gen)(Code)
Sets the Java generator.



setParent
public void setParent(XslNode parent)(Code)
Sets the parent node



setQName
public void setQName(QName name)(Code)
Sets the node's qname



setStartLocation
public void setStartLocation(String systemId, String filename, int line)(Code)
Sets the start location of the node.



stringExpr
protected void stringExpr(JavaWriter out, String exprString) throws Exception, XslParseException(Code)



toString
public String toString()(Code)
Returns a printable version of the node.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.