Java Doc for AbstractStylesheetFactory.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » xsl » 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 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.xml.transform.sax.SAXTransformerFactory
   com.caucho.xsl.AbstractStylesheetFactory

All known Subclasses:   com.caucho.xsl.StyleScript,  com.caucho.xsl.Xsl,
AbstractStylesheetFactory
abstract public class AbstractStylesheetFactory extends SAXTransformerFactory (Code)
Abstract factory for creating stylesheets.


Field Summary
final static  L10NL
    
final static  Loggerlog
    

Constructor Summary
protected  AbstractStylesheetFactory()
    

Method Summary
 Templatesgenerate(Node xsl, Path path)
     Generates a compiled stylesheet from a parsed XSL document.
public  SourcegetAssociatedStylesheet(Source source, String media, String title, String charset)
     Returns the stylesheet source object associated with the given XML document.
public  ObjectgetAttribute(String name)
     Returns an implementation-specific attribute.
public  ClassLoadergetClassLoader()
     Gets the classloader for the stylesheet.
public  StringgetClassName()
    
public  ErrorListenergetErrorListener()
     Returns the error listener.
public  booleangetFeature(String name)
     Returns an implementation-specific feature.
public  booleangetLoadPrecompiledStylesheet()
     Returns true if precompiled stylesheets should be loaded.
public  PathgetSearchPath()
     Returns the stylesheet search path.
public  PathgetStylePath()
     Returns the stylesheet search path.
public  StringgetSystemId()
    
public  URIResolvergetURIResolver()
     Returns the URI to filename resolver.
public  PathgetWorkPath()
     Gets the working directory.
public  booleanisAutoCompile()
     Returns true if the stylesheet should be automatically compiled.
 StylesheetImplloadPrecompiledStylesheet(String systemId, String userId)
     Returns existing compiled Templates if it exists.
Parameters:
  systemId - source path for the stylesheet.
 StylesheetImplloadPrecompiledStylesheet(String systemId, String userId, boolean checkModified)
     Returns existing compiled Templates if it exists.
Parameters:
  systemId - source path for the stylesheet.
protected  StylesheetImplloadStylesheet(String systemId, String className)
    
 PathlookupPath(String base, String href)
    
public  StylesheetImplnewStylesheet(Document xsl)
     Creates a new stylesheet from an XML document.
public  StylesheetImplnewStylesheet(Reader reader)
     Create a new stylesheet from a reader.
public  StylesheetImplnewStylesheet(InputStream is)
     Create a new stylesheet from an input stream.
public  StylesheetImplnewStylesheet(String systemId)
    
public  StylesheetImplnewStylesheet(Path path)
    
public  TemplatesnewTemplates(Source source)
     Create a compiled stylesheet from an input stream.
public  javax.xml.transform.TemplatesnewTemplates(Node node)
     Convenience class to create a compiled stylesheet.
Parameters:
  node - DOM source for the stylesheet.
public  javax.xml.transform.TemplatesnewTemplates(String systemId)
     Convenience class to create a compiled stylesheet.
Parameters:
  systemId - source path for the stylesheet.
public  TemplatesHandlernewTemplatesHandler()
     Returns a templates handler.
public  javax.xml.transform.TransformernewTransformer(Source source)
     Create a transformer from an input stream.
public  javax.xml.transform.TransformernewTransformer()
     Create an identity transformer.
public  javax.xml.transform.TransformernewTransformer(Document xsl)
     Convenience class to create a transformer instance.
Parameters:
  xsl - DOM source for the stylesheet.
public  TransformerHandlernewTransformerHandler()
     Create a new transformer handler.
public  TransformerHandlernewTransformerHandler(Source source)
     Create a new transformer handler based on a source.
public  TransformerHandlernewTransformerHandler(Templates templates)
     Create a new transformer handler based on a stylesheet.
public  XMLFilternewXMLFilter(Source source)
     Returns an XML filter from the transformer.
public  XMLFilternewXMLFilter(Templates templates)
     Returns an XML filter from the transformer.
 ReadStreamopenPath(String href, String base)
     Opens a relative path.
 ReadStreamopenPath(Source source)
     Opens a path based on a Source.
protected  NodeparseStylesheet(Source source)
     Parses a stylesheet from the source.
abstract protected  DocumentparseXSL(ReadStream rs)
     Parses the XSL into a DOM document.
public  voidsetAttribute(String name, Object value)
     Sets an implementation-specific attribute.
public  voidsetAutoCompile(boolean autoCompile)
     Returns true if precompiled stylesheets should be loaded.
public  voidsetClassLoader(ClassLoader loader)
     Sets the classloader for the stylesheet.
public  voidsetClassName(String className)
    
public  voidsetErrorListener(ErrorListener errorListener)
     Sets the error listener.
public  voidsetFeature(String name, boolean value)
    
public  voidsetLoadPrecompiledStylesheet(boolean preload)
     Returns true if precompiled stylesheets should be loaded.
public  voidsetSearchPath(Path path)
     Sets the search path for stylesheets.
public  voidsetStylePath(Path path)
     Sets the search path for stylesheets.
public  voidsetSystemId(String systemId)
    
public  voidsetURIResolver(URIResolver uriResolver)
     Sets the URI to filename resolver.
public  voidsetWorkPath(Path path)
     Sets the working directory.
public  voidtransform(Document xsl, Node xml, OutputStream out)
     Convenience class to transform a node.
public  voidtransform(String xsl, Node xml, OutputStream out)
     Convenience class to transform a node.

Field Detail
L
final static L10N L(Code)



log
final static Logger log(Code)




Constructor Detail
AbstractStylesheetFactory
protected AbstractStylesheetFactory()(Code)




Method Detail
generate
Templates generate(Node xsl, Path path) throws TransformerConfigurationException(Code)
Generates a compiled stylesheet from a parsed XSL document.
Parameters:
  xsl - the parsed xsl document.
Parameters:
  path - the path to the document.



getAssociatedStylesheet
public Source getAssociatedStylesheet(Source source, String media, String title, String charset) throws TransformerConfigurationException(Code)
Returns the stylesheet source object associated with the given XML document.
Parameters:
  source - the XML document which needs a stylesheet.
Parameters:
  media - the media attribute for the stylesheet
Parameters:
  title - the title attribute for the stylesheet
Parameters:
  charset - the character encoding for the stylesheet result.



getAttribute
public Object getAttribute(String name)(Code)
Returns an implementation-specific attribute.
Parameters:
  name - the attribute name



getClassLoader
public ClassLoader getClassLoader()(Code)
Gets the classloader for the stylesheet.



getClassName
public String getClassName()(Code)



getErrorListener
public ErrorListener getErrorListener()(Code)
Returns the error listener.



getFeature
public boolean getFeature(String name)(Code)
Returns an implementation-specific feature.
Parameters:
  name - the feature name



getLoadPrecompiledStylesheet
public boolean getLoadPrecompiledStylesheet()(Code)
Returns true if precompiled stylesheets should be loaded.



getSearchPath
public Path getSearchPath()(Code)
Returns the stylesheet search path.



getStylePath
public Path getStylePath()(Code)
Returns the stylesheet search path.



getSystemId
public String getSystemId()(Code)



getURIResolver
public URIResolver getURIResolver()(Code)
Returns the URI to filename resolver.



getWorkPath
public Path getWorkPath()(Code)
Gets the working directory.



isAutoCompile
public boolean isAutoCompile()(Code)
Returns true if the stylesheet should be automatically compiled.



loadPrecompiledStylesheet
StylesheetImpl loadPrecompiledStylesheet(String systemId, String userId)(Code)
Returns existing compiled Templates if it exists.
Parameters:
  systemId - source path for the stylesheet. a compiled stylesheet



loadPrecompiledStylesheet
StylesheetImpl loadPrecompiledStylesheet(String systemId, String userId, boolean checkModified)(Code)
Returns existing compiled Templates if it exists.
Parameters:
  systemId - source path for the stylesheet. a compiled stylesheet



loadStylesheet
protected StylesheetImpl loadStylesheet(String systemId, String className) throws Exception(Code)
Loads the compiled stylesheet .class file
Parameters:
  className - the mangled classname for the stylesheet



lookupPath
Path lookupPath(String base, String href) throws TransformerException(Code)



newStylesheet
public StylesheetImpl newStylesheet(Document xsl) throws Exception(Code)
Creates a new stylesheet from an XML document.



newStylesheet
public StylesheetImpl newStylesheet(Reader reader) throws Exception(Code)
Create a new stylesheet from a reader.



newStylesheet
public StylesheetImpl newStylesheet(InputStream is) throws Exception(Code)
Create a new stylesheet from an input stream.



newStylesheet
public StylesheetImpl newStylesheet(String systemId) throws Exception(Code)
Loads a stylesheet from a named file
Parameters:
  systemId - the URL of the file



newStylesheet
public StylesheetImpl newStylesheet(Path path) throws Exception(Code)



newTemplates
public Templates newTemplates(Source source) throws TransformerConfigurationException(Code)
Create a compiled stylesheet from an input stream.
Parameters:
  source - the source stream the compiled stylesheet



newTemplates
public javax.xml.transform.Templates newTemplates(Node node) throws TransformerConfigurationException(Code)
Convenience class to create a compiled stylesheet.
Parameters:
  node - DOM source for the stylesheet. a compiled stylesheet



newTemplates
public javax.xml.transform.Templates newTemplates(String systemId) throws TransformerConfigurationException(Code)
Convenience class to create a compiled stylesheet.
Parameters:
  systemId - source path for the stylesheet. a compiled stylesheet



newTemplatesHandler
public TemplatesHandler newTemplatesHandler() throws TransformerConfigurationException(Code)
Returns a templates handler.
Parameters:
  source - the source file



newTransformer
public javax.xml.transform.Transformer newTransformer(Source source) throws TransformerConfigurationException(Code)
Create a transformer from an input stream.
Parameters:
  source - the source stream the compiled stylesheet



newTransformer
public javax.xml.transform.Transformer newTransformer() throws TransformerConfigurationException(Code)
Create an identity transformer. the compiled stylesheet



newTransformer
public javax.xml.transform.Transformer newTransformer(Document xsl) throws TransformerConfigurationException(Code)
Convenience class to create a transformer instance.
Parameters:
  xsl - DOM source for the stylesheet. a transformer instance.



newTransformerHandler
public TransformerHandler newTransformerHandler() throws TransformerConfigurationException(Code)
Create a new transformer handler.



newTransformerHandler
public TransformerHandler newTransformerHandler(Source source) throws TransformerConfigurationException(Code)
Create a new transformer handler based on a source.



newTransformerHandler
public TransformerHandler newTransformerHandler(Templates templates) throws TransformerConfigurationException(Code)
Create a new transformer handler based on a stylesheet.



newXMLFilter
public XMLFilter newXMLFilter(Source source) throws TransformerConfigurationException(Code)
Returns an XML filter from the transformer.
Parameters:
  source - the source file



newXMLFilter
public XMLFilter newXMLFilter(Templates templates) throws TransformerConfigurationException(Code)
Returns an XML filter from the transformer.
Parameters:
  source - the source file



openPath
ReadStream openPath(String href, String base) throws TransformerException, IOException(Code)
Opens a relative path.



openPath
ReadStream openPath(Source source) throws TransformerException, IOException(Code)
Opens a path based on a Source.



parseStylesheet
protected Node parseStylesheet(Source source) throws TransformerConfigurationException(Code)
Parses a stylesheet from the source.



parseXSL
abstract protected Document parseXSL(ReadStream rs) throws TransformerConfigurationException(Code)
Parses the XSL into a DOM document.
Parameters:
  rs - the input stream.



setAttribute
public void setAttribute(String name, Object value)(Code)
Sets an implementation-specific attribute.
Parameters:
  name - the attribute name
Parameters:
  value - the attribute value



setAutoCompile
public void setAutoCompile(boolean autoCompile)(Code)
Returns true if precompiled stylesheets should be loaded.



setClassLoader
public void setClassLoader(ClassLoader loader)(Code)
Sets the classloader for the stylesheet.
Parameters:
  loader - the new loader.



setClassName
public void setClassName(String className)(Code)



setErrorListener
public void setErrorListener(ErrorListener errorListener)(Code)
Sets the error listener.



setFeature
public void setFeature(String name, boolean value)(Code)
Sets an implementation-specific feature
Parameters:
  name - the feature name
Parameters:
  value - the feature value



setLoadPrecompiledStylesheet
public void setLoadPrecompiledStylesheet(boolean preload)(Code)
Returns true if precompiled stylesheets should be loaded.



setSearchPath
public void setSearchPath(Path path)(Code)
Sets the search path for stylesheets. Generally applications will use MergePath to create their search path.
Parameters:
  path - path containing stylesheets.



setStylePath
public void setStylePath(Path path)(Code)
Sets the search path for stylesheets. Generally applications will use MergePath to create their search path.
Parameters:
  path - path containing stylesheets.



setSystemId
public void setSystemId(String systemId)(Code)



setURIResolver
public void setURIResolver(URIResolver uriResolver)(Code)
Sets the URI to filename resolver.



setWorkPath
public void setWorkPath(Path path)(Code)
Sets the working directory.



transform
public void transform(Document xsl, Node xml, OutputStream out) throws Exception(Code)
Convenience class to transform a node.
Parameters:
  xsl - DOM containing the parsed xsl.
Parameters:
  xml - DOM document node.
Parameters:
  out - output stream destination.



transform
public void transform(String xsl, Node xml, OutputStream out) throws Exception(Code)
Convenience class to transform a node.
Parameters:
  xsl - path name to the xsl file.
Parameters:
  xml - dom source document.
Parameters:
  out - output stream destination.



Fields inherited from javax.xml.transform.sax.SAXTransformerFactory
final public static String FEATURE(Code)(Java Doc)
final public static String FEATURE_XMLFILTER(Code)(Java Doc)

Methods inherited from javax.xml.transform.sax.SAXTransformerFactory
abstract public TemplatesHandler newTemplatesHandler() throws TransformerConfigurationException(Code)(Java Doc)
abstract public TransformerHandler newTransformerHandler(Source src) throws TransformerConfigurationException(Code)(Java Doc)
abstract public TransformerHandler newTransformerHandler(Templates templates) throws TransformerConfigurationException(Code)(Java Doc)
abstract public TransformerHandler newTransformerHandler() throws TransformerConfigurationException(Code)(Java Doc)
abstract public XMLFilter newXMLFilter(Source src) throws TransformerConfigurationException(Code)(Java Doc)
abstract public XMLFilter newXMLFilter(Templates templates) throws TransformerConfigurationException(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.