Java Doc for PreparedStylesheet.java in  » XML » XPath-Saxon » net » sf » saxon » 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 » XPath Saxon » net.sf.saxon 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.sf.saxon.PreparedStylesheet

PreparedStylesheet
public class PreparedStylesheet implements Templates,Serializable(Code)
This PreparedStylesheet class represents a Stylesheet that has been prepared for execution (or "compiled").



Constructor Summary
protected  PreparedStylesheet(Configuration config)
    

Method Summary
public  ConfigurationgetConfiguration()
    
public  intgetErrorCount()
    
public  ExecutablegetExecutable()
    
public  PropertiesgetOutputProperties()
     Get the properties for xsl:output.
public  StyleNodeFactorygetStyleNodeFactory()
     Get the StyleNodeFactory in use.
public  NamePoolgetTargetNamePool()
     Get the name pool in use.
public static  PreparedStylesheetloadCompiledStylesheet(Configuration config, String fileName)
     Load a PreparedStylesheet from a compiled stylesheet stored in a file.
Parameters:
  config - The Configuration.
public static  PreparedStylesheetloadCompiledStylesheet(Configuration config, ObjectInputStream ois)
     Load a PreparedStylesheet from a compiled stylesheet stored in a file.
Parameters:
  config - The Configuration.
public static  DocumentImplloadStylesheetModule(Source styleSource, Configuration config, NamePool localNamePool, StyleNodeFactory nodeFactory)
    
public  TransformernewTransformer()
     Make a Transformer from this Templates object.
protected  voidprepare(Source styleSource)
    
public  voidreportError(TransformerException err)
     Report a compile time error.
public  voidreportWarning(TransformerException err)
     Report a compile time warning.
public  voidsetConfiguration(Configuration config)
    
protected  voidsetStylesheetDocument(DocumentImpl doc, StyleNodeFactory snFactory)
    
public  voidsetTargetNamePool(NamePool pool)
    


Constructor Detail
PreparedStylesheet
protected PreparedStylesheet(Configuration config)(Code)
Constructor: deliberately protected
Parameters:
  config - The Configuration set up by the TransformerFactory




Method Detail
getConfiguration
public Configuration getConfiguration()(Code)



getErrorCount
public int getErrorCount()(Code)
Get the number of errors reported so far the number of errors reported



getExecutable
public Executable getExecutable()(Code)
Get the associated executable the Executable for this stylesheet



getOutputProperties
public Properties getOutputProperties()(Code)
Get the properties for xsl:output. JAXP method. The object returned will be a clone of the internal values, and thus it can be mutated without mutating the Templates object, and then handed in to the process method.

In Saxon, the properties object is a new, empty, Properties object that is backed by the live properties to supply default values for missing properties. This means that the property values must be read using the getProperty() method. Calling the get() method on the underlying Hashtable will return null.

In Saxon 8.x, this method gets the output properties for the unnamed output format in the stylesheet.


See Also:   javax.xml.transform.Transformer.setOutputProperties A Properties object reflecting the output properties definedfor the default (unnamed) output format in the stylesheet. It maybe mutated and supplied to the setOutputProperties() method of theTransformer, without affecting other transformations that use thesame stylesheet.



getStyleNodeFactory
public StyleNodeFactory getStyleNodeFactory()(Code)
Get the StyleNodeFactory in use. The StyleNodeFactory determines which subclass of StyleElement to use for each element node in the stylesheet tree. the StyleNodeFactory



getTargetNamePool
public NamePool getTargetNamePool()(Code)
Get the name pool in use. This is the namepool used for names that need to be accessible at runtime, notably the names used in XPath expressions in the stylesheet. the name pool in use



loadCompiledStylesheet
public static PreparedStylesheet loadCompiledStylesheet(Configuration config, String fileName) throws IOException, ClassNotFoundException(Code)
Load a PreparedStylesheet from a compiled stylesheet stored in a file.
Parameters:
  config - The Configuration. This method changes the NamePool used by this configurationto be the NamePool that was stored with the compiled stylesheet. The method must therefore notbe used in a multi-threaded environment where the Configuration (and NamePool) are shared betweenmultiple concurrent transformations.
Parameters:
  fileName - The name of the file containing the compiled stylesheet (which is just the Java serializationof a PreparedStylesheet object). the PreparedStylesheet, which can be used in JAXP interfaces as the Templates object



loadCompiledStylesheet
public static PreparedStylesheet loadCompiledStylesheet(Configuration config, ObjectInputStream ois) throws IOException, ClassNotFoundException(Code)
Load a PreparedStylesheet from a compiled stylesheet stored in a file.
Parameters:
  config - The Configuration. This method changes the NamePool used by this configurationto be the NamePool that was stored with the compiled stylesheet. The method must therefore notbe used in a multi-threaded environment where the Configuration (and NamePool) are shared betweenmultiple concurrent transformations.
Parameters:
  ois - The ObjectInputStream containing the compiled stylesheet (which is just the Java serializationof a PreparedStylesheet object). the PreparedStylesheet, which can be used in JAXP interfaces as the Templates object



loadStylesheetModule
public static DocumentImpl loadStylesheetModule(Source styleSource, Configuration config, NamePool localNamePool, StyleNodeFactory nodeFactory) throws XPathException(Code)
Build the tree representation of a stylesheet module
Parameters:
  styleSource - the source of the module
Parameters:
  config - the Configuration of the transformation factory
Parameters:
  localNamePool - the namepool used during compilation
Parameters:
  nodeFactory - the StyleNodeFactory used for creatingelement nodes in the tree
exception:
  XPathException - if XML parsing or treeconstruction fails the root Document node of the tree containing the stylesheetmodule



newTransformer
public Transformer newTransformer()(Code)
Make a Transformer from this Templates object. the new Transformer (always a Controller)
See Also:   net.sf.saxon.Controller



prepare
protected void prepare(Source styleSource) throws TransformerConfigurationException(Code)
Prepare a stylesheet from a Source document
Parameters:
  styleSource - the source document containing the stylesheet
exception:
  TransformerConfigurationException - if compilation of thestylesheet fails for any reason



reportError
public void reportError(TransformerException err) throws TransformerException(Code)
Report a compile time error. This calls the errorListener to output details of the error, and increments an error count.
Parameters:
  err - the exception containing details of the error
exception:
  TransformerException - if the ErrorListener decides that theerror should be reported



reportWarning
public void reportWarning(TransformerException err)(Code)
Report a compile time warning. This calls the errorListener to output details of the warning.
Parameters:
  err - an exception holding details of the warning condition to bereported



setConfiguration
public void setConfiguration(Configuration config)(Code)



setStylesheetDocument
protected void setStylesheetDocument(DocumentImpl doc, StyleNodeFactory snFactory) throws XPathException(Code)
Create a PreparedStylesheet from a supplied DocumentInfo Note: the document must have been built using the StyleNodeFactory
Parameters:
  doc - the document containing the stylesheet module
Parameters:
  snFactory - the StyleNodeFactory used to build the tree
exception:
  XPathException - if the document suppliedis not a stylesheet



setTargetNamePool
public void setTargetNamePool(NamePool pool)(Code)
Set the name pool



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.