Java Doc for AbstractTranslet.java in  » XML » xalan » org » apache » xalan » xsltc » runtime » 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 » XML » xalan » org.apache.xalan.xsltc.runtime 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.xalan.xsltc.runtime.AbstractTranslet

AbstractTranslet
abstract public class AbstractTranslet implements Translet(Code)

author:
   Jacek Ambroziak
author:
   Santiago Pericas-Geertsen
author:
   Morten Jorgensen
author:
   G. Todd Miller
author:
   John Howard, JohnH@schemasoft.com


Field Summary
final public static  intCURRENT_TRANSLET_VERSION
    
final public static  intFIRST_TRANSLET_VERSION
    
final public static  intVER_SPLIT_NAMES_ARRAY
    
public  Vector_cdata
    
public  String_doctypePublic
    
public  String_doctypeSystem
    
protected  DOMImplementation_domImplementation
    
public  String_encoding
    
public  Hashtable_formatSymbols
    
protected  boolean_hasIdCall
    
public  boolean_indent
    
public  int_indentamount
    
public  String_mediaType
    
public  String_method
    
public  boolean_omitHeader
    
public  String_standalone
    
protected  Templates_templates
    
public  String_version
    
protected  String[]namesArray
    
protected  String[]namespaceArray
    
protected  ArrayListparamsStack
    
protected  intpbasepframe
    
protected  StringValueHandlerstringValueHandler
    
protected  inttransletVersion
    
protected  int[]typesArray
    
protected  String[]urisArray
    


Method Summary
public  voidaddAuxiliaryClass(Class auxClass)
    
public  voidaddCdataElement(String name)
    
public  voidaddDecimalFormat(String name, DecimalFormatSymbols symbols)
     Adds a DecimalFormat object to the _formatSymbols hashtable.
final public  ObjectaddParameter(String name, Object value)
     Add a new global parameter if not already in the current frame.
final public  ObjectaddParameter(String name, Object value, boolean isDefault)
     Add a new global or local parameter if not already in the current frame.
public  voidbuildKeyIndex(String name, int node, Object value)
    
public  voidbuildKeyIndex(String name, DOM dom)
    
public  voidbuildKeys(DOM document, DTMAxisIterator iterator, SerializationHandler handler, int root)
    
final public  voidcharacters(String string, SerializationHandler handler)
    
public  voidclearParameters()
     Clears the parameter stack.
public  voidcloseOutputHandler(SerializationHandler handler)
    
public  KeyIndexcreateKeyIndex()
    
final public  voiddisplayMessage(String msg)
     Pass a message to the message handler - used by Message class.
public  ClassgetAuxiliaryClass(String className)
    
public  DOMCachegetDOMCache()
     Returns the DOM cache used for this translet.
final public  DecimalFormatgetDecimalFormat(String name)
     Retrieves a named DecimalFormat object from _formatSymbols hashtable.
public  KeyIndexgetKeyIndex(String name)
     Returns the index for a given key (or id).
public  String[]getNamesArray()
    
public  String[]getNamespaceArray()
    
final public  ObjectgetParameter(String name)
     Get the value of a parameter from the current frame or null if undefined.
public  TemplatesgetTemplates()
    
public  int[]getTypesArray()
    
public  String[]getUrisArray()
    
public  booleanhasIdCall()
    
final public  DOMAdaptermakeDOMAdapter(DOM dom)
     Wrap the initial input DOM in a dom adapter.
public  DocumentnewDocument(String uri, String qname)
    
public  SerializationHandleropenOutputHandler(String filename, boolean append)
     Multiple output document extension.
public  SerializationHandleropenOutputHandler(String filename)
    
final public  voidpopParamFrame()
     Pop the topmost parameter frame.
final public  voidpostInitialization()
     After constructing the translet object, this method must be called to perform any version-specific post-initialization that's required.
final public  voidprepassDocument(DOM document)
     Give the translet an opportunity to perform a prepass on the document to extract any information that it can store in an optimized form.
public  voidprintInternalState()
    
final public  voidpushParamFrame()
     Push a new parameter frame.
public  voidsetAuxiliaryClasses(Hashtable auxClasses)
    
public  voidsetDOMCache(DOMCache cache)
     Sets the DOM cache used for additional documents loaded using the document() function.
public  voidsetIndexSize(int size)
     This method is used to pass the largest DOM size to the translet.
public  voidsetKeyIndexDom(String name, DOM document)
    
final public  voidsetMessageHandler(MessageHandler handler)
    
public  voidsetTemplates(Templates templates)
    
protected  voidtransferOutputSettings(SerializationHandler handler)
    
abstract public  voidtransform(DOM document, DTMAxisIterator iterator, SerializationHandler handler)
    
final public  voidtransform(DOM document, SerializationHandler handler)
    

Field Detail
CURRENT_TRANSLET_VERSION
final public static int CURRENT_TRANSLET_VERSION(Code)



FIRST_TRANSLET_VERSION
final public static int FIRST_TRANSLET_VERSION(Code)



VER_SPLIT_NAMES_ARRAY
final public static int VER_SPLIT_NAMES_ARRAY(Code)



_cdata
public Vector _cdata(Code)



_doctypePublic
public String _doctypePublic(Code)



_doctypeSystem
public String _doctypeSystem(Code)



_domImplementation
protected DOMImplementation _domImplementation(Code)
DOMImplementation caching for basis library



_encoding
public String _encoding(Code)



_formatSymbols
public Hashtable _formatSymbols(Code)
Decimal number format symbol handling



_hasIdCall
protected boolean _hasIdCall(Code)



_indent
public boolean _indent(Code)



_indentamount
public int _indentamount(Code)



_mediaType
public String _mediaType(Code)



_method
public String _method(Code)



_omitHeader
public boolean _omitHeader(Code)



_standalone
public String _standalone(Code)



_templates
protected Templates _templates(Code)



_version
public String _version(Code)



namesArray
protected String[] namesArray(Code)



namespaceArray
protected String[] namespaceArray(Code)



paramsStack
protected ArrayList paramsStack(Code)



pbasepframe
protected int pbasepframe(Code)
Parameter handling



stringValueHandler
protected StringValueHandler stringValueHandler(Code)



transletVersion
protected int transletVersion(Code)



typesArray
protected int[] typesArray(Code)



urisArray
protected String[] urisArray(Code)





Method Detail
addAuxiliaryClass
public void addAuxiliaryClass(Class auxClass)(Code)



addCdataElement
public void addCdataElement(String name)(Code)
Add's a name of an element whose text contents should be output as CDATA



addDecimalFormat
public void addDecimalFormat(String name, DecimalFormatSymbols symbols)(Code)
Adds a DecimalFormat object to the _formatSymbols hashtable. The entry is created with the input DecimalFormatSymbols.



addParameter
final public Object addParameter(String name, Object value)(Code)
Add a new global parameter if not already in the current frame. To setParameters of the form {http://foo.bar}xyz This needs to get mapped to an instance variable in the class The mapping created so that the global variables in the generated class become http$colon$$flash$$flash$foo$dot$bar$colon$xyz



addParameter
final public Object addParameter(String name, Object value, boolean isDefault)(Code)
Add a new global or local parameter if not already in the current frame. The 'isDefault' parameter is set to true if the value passed is the default value from the element's select attribute or element body.



buildKeyIndex
public void buildKeyIndex(String name, int node, Object value)(Code)
Adds a value to a key/id index
Parameters:
  name - is the name of the index (the key or ##id)
Parameters:
  node - is the node id of the node to insert
Parameters:
  value - is the value that will look up the node in the given index



buildKeyIndex
public void buildKeyIndex(String name, DOM dom)(Code)
Create an empty KeyIndex in the DOM case
Parameters:
  name - is the name of the index (the key or ##id)
Parameters:
  dom - is the DOM



buildKeys
public void buildKeys(DOM document, DTMAxisIterator iterator, SerializationHandler handler, int root) throws TransletException(Code)
This method builds key indexes - it is overridden in the compiled translet in cases where the element is used



characters
final public void characters(String string, SerializationHandler handler) throws TransletException(Code)
Used by some compiled code as a shortcut for passing strings to the output handler



clearParameters
public void clearParameters()(Code)
Clears the parameter stack.



closeOutputHandler
public void closeOutputHandler(SerializationHandler handler)(Code)



createKeyIndex
public KeyIndex createKeyIndex()(Code)
Creates a KeyIndex object of the desired size - don't want to resize!!!



displayMessage
final public void displayMessage(String msg)(Code)
Pass a message to the message handler - used by Message class.



getAuxiliaryClass
public Class getAuxiliaryClass(String className)(Code)



getDOMCache
public DOMCache getDOMCache()(Code)
Returns the DOM cache used for this translet. Used by the LoadDocument class (if present) when the document() function is used.



getDecimalFormat
final public DecimalFormat getDecimalFormat(String name)(Code)
Retrieves a named DecimalFormat object from _formatSymbols hashtable.



getKeyIndex
public KeyIndex getKeyIndex(String name)(Code)
Returns the index for a given key (or id). The index implements our internal iterator interface



getNamesArray
public String[] getNamesArray()(Code)



getNamespaceArray
public String[] getNamespaceArray()(Code)



getParameter
final public Object getParameter(String name)(Code)
Get the value of a parameter from the current frame or null if undefined.



getTemplates
public Templates getTemplates()(Code)



getTypesArray
public int[] getTypesArray()(Code)



getUrisArray
public String[] getUrisArray()(Code)



hasIdCall
public boolean hasIdCall()(Code)



makeDOMAdapter
final public DOMAdapter makeDOMAdapter(DOM dom) throws TransletException(Code)
Wrap the initial input DOM in a dom adapter. This adapter is wrapped in a DOM multiplexer if the document() function is used (handled by compiled code in the translet - see compiler/Stylesheet.compileTransform()).



newDocument
public Document newDocument(String uri, String qname) throws ParserConfigurationException(Code)



openOutputHandler
public SerializationHandler openOutputHandler(String filename, boolean append) throws TransletException(Code)
Multiple output document extension. See compiler/TransletOutput for actual implementation.



openOutputHandler
public SerializationHandler openOutputHandler(String filename) throws TransletException(Code)



popParamFrame
final public void popParamFrame()(Code)
Pop the topmost parameter frame.



postInitialization
final public void postInitialization()(Code)
After constructing the translet object, this method must be called to perform any version-specific post-initialization that's required.



prepassDocument
final public void prepassDocument(DOM document)(Code)
Give the translet an opportunity to perform a prepass on the document to extract any information that it can store in an optimized form. Currently, it only extracts information about attributes of type ID.



printInternalState
public void printInternalState()(Code)
Debugging



pushParamFrame
final public void pushParamFrame()(Code)
Push a new parameter frame.



setAuxiliaryClasses
public void setAuxiliaryClasses(Hashtable auxClasses)(Code)



setDOMCache
public void setDOMCache(DOMCache cache)(Code)
Sets the DOM cache used for additional documents loaded using the document() function.



setIndexSize
public void setIndexSize(int size)(Code)
This method is used to pass the largest DOM size to the translet. Needed to make sure that the translet can index the whole DOM.



setKeyIndexDom
public void setKeyIndexDom(String name, DOM document)(Code)
This method builds key indexes - it is overridden in the compiled translet in cases where the element is used



setMessageHandler
final public void setMessageHandler(MessageHandler handler)(Code)
Set the translet's message handler - must implement MessageHandler



setTemplates
public void setTemplates(Templates templates)(Code)



transferOutputSettings
protected void transferOutputSettings(SerializationHandler handler)(Code)
Transfer the output settings to the output post-processor



transform
abstract public void transform(DOM document, DTMAxisIterator iterator, SerializationHandler handler) throws TransletException(Code)
Main transform() method - this is overridden by the compiled translet



transform
final public void transform(DOM document, SerializationHandler handler) throws TransletException(Code)
Calls transform() with a given output handler



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.