Java Doc for XsltTransformer.java in  » J2EE » Pustefix » de » schlund » pfixcore » util » 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 » J2EE » Pustefix » de.schlund.pfixcore.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   de.schlund.pfixcore.util.XsltTransformer

XsltTransformer
public class XsltTransformer (Code)

author:
   adam
author:
   To change the template for this generated type comment go to
author:
   Window - Preferences - Java - Code Generation - Code and Comments


Field Summary
final protected static  StringDYNAMIC_VALIDATION_FEATURE_ID
     Dynamic validation feature id (http://apache.org/xml/features/validation/dynamic).
final protected static  String[]FEATURES
    
final protected static  StringLOAD_EXTERNAL_DTD_FEATURE_ID
     Load external DTD feature id (http://apache.org/xml/features/nonvalidating/load-external-dtd).
final protected static  StringNAMESPACES_FEATURE_ID
     Namespaces feature id (http://xml.org/sax/features/namespaces).
final protected static  StringNAMESPACE_PREFIXES_FEATURE_ID
     Namespace prefixes feature id (http://xml.org/sax/features/namespace-prefixes).
final protected static  StringSCHEMA_FULL_CHECKING_FEATURE_ID
     Schema full checking feature id (http://apache.org/xml/features/validation/schema-full-checking).
final protected static  StringSCHEMA_VALIDATION_FEATURE_ID
     Schema validation feature id (http://apache.org/xml/features/validation/schema).
final protected static  StringVALIDATION_FEATURE_ID
     Validation feature id (http://xml.org/sax/features/validation).
protected  booleancacheStylesheet
    
protected  EntityResolverentitiyResolver
    
protected  XsltErrorListenererrorListener
    
protected  TransformerFactoryfactory
    
protected  booleanisNamespaceAware
    
protected  booleanisValidParams
    
protected  booleanisValidParser
    
protected  booleanisValidStylesheet
    
protected  booleanisValidate
    
protected  booleanisValidateDynamic
    
protected  HashMap<String, XsltParam>params
    
protected  Projectproject
    
protected  Filestylesheet
    
protected  FilestylesheetOld
    
protected  longstylesheetOldLastModified
    
protected  Templatestemplates
    
protected  Transformertransformer
    
protected  XMLReaderxmlReader
    

Constructor Summary
public  XsltTransformer(Project project)
     The Stylesheet needs to be set with XsltTransformer.setStylesheet(File) when using the default constructor.
public  XsltTransformer(Project project, File stylesheet)
    

Method Summary
public  voidclearParameters()
    
public static  booleanexists(String file)
    
public  EntityResolvergetEntitiyResolver()
    
public  ProjectgetProject()
    
public  FilegetStylesheet()
    
public  booleanisCacheStylesheet()
    
public  booleanisNamespaceAware()
     Configures parser for input documents.
protected  booleanisValid()
    
public  booleanisValidate()
     Configures parser for input documents.
public  booleanisValidateDynamic()
     Configures parser for input documents.
public  voidsetCacheStylesheet(boolean cacheStylesheet)
    
public  voidsetEntitiyResolver(EntityResolver entitiyResolver)
    
public  voidsetNamespaceAware(boolean isNamespaceAware)
     Configures parser for input documents.
public  voidsetParameter(XsltParam param)
    
protected  voidsetProject(Project project)
    
public  voidsetStylesheet(File stylesheet)
     Sets a new Stylesheet File, which in turn creates a new Transformer .
Note: you have to re-apply your parameters, as they get lost with the old transformer.
public  voidsetValidate(boolean validate)
     Configures parser for input documents.
public  voidsetValidateDynamic(boolean validateDynamic)
     Configures parser for input documents.
public static  StringshortClassname(String classname)
    
public  StringtoString()
    
public  voidtransform(File baseDir, String infilename, File destDir, String outfilename)
    
public  voidtransform(File infile, File outfile)
    
public  voidtransform(Source source, Result result)
    
protected  voidvalidate()
    

Field Detail
DYNAMIC_VALIDATION_FEATURE_ID
final protected static String DYNAMIC_VALIDATION_FEATURE_ID(Code)
Dynamic validation feature id (http://apache.org/xml/features/validation/dynamic). See http://xml.apache.org/xerces2-j/features.html Xerces-Default: false



FEATURES
final protected static String[] FEATURES(Code)



LOAD_EXTERNAL_DTD_FEATURE_ID
final protected static String LOAD_EXTERNAL_DTD_FEATURE_ID(Code)
Load external DTD feature id (http://apache.org/xml/features/nonvalidating/load-external-dtd). Does not seem to control loading of external xml schema as of xerces 2.6.2. See http://xml.apache.org/xerces2-j/features.html Xerces-Default: true



NAMESPACES_FEATURE_ID
final protected static String NAMESPACES_FEATURE_ID(Code)
Namespaces feature id (http://xml.org/sax/features/namespaces). See http://xml.apache.org/xerces2-j/features.html Xerces-Default: true



NAMESPACE_PREFIXES_FEATURE_ID
final protected static String NAMESPACE_PREFIXES_FEATURE_ID(Code)
Namespace prefixes feature id (http://xml.org/sax/features/namespace-prefixes). See http://xml.apache.org/xerces2-j/features.html Xerces-Default: false



SCHEMA_FULL_CHECKING_FEATURE_ID
final protected static String SCHEMA_FULL_CHECKING_FEATURE_ID(Code)
Schema full checking feature id (http://apache.org/xml/features/validation/schema-full-checking). See http://xml.apache.org/xerces2-j/features.html Xerces-Default: false



SCHEMA_VALIDATION_FEATURE_ID
final protected static String SCHEMA_VALIDATION_FEATURE_ID(Code)
Schema validation feature id (http://apache.org/xml/features/validation/schema). See http://xml.apache.org/xerces2-j/features.html Xerces-Default: false



VALIDATION_FEATURE_ID
final protected static String VALIDATION_FEATURE_ID(Code)
Validation feature id (http://xml.org/sax/features/validation). See http://xml.apache.org/xerces2-j/features.html Xerces-Default: false



cacheStylesheet
protected boolean cacheStylesheet(Code)



entitiyResolver
protected EntityResolver entitiyResolver(Code)



errorListener
protected XsltErrorListener errorListener(Code)



factory
protected TransformerFactory factory(Code)



isNamespaceAware
protected boolean isNamespaceAware(Code)
controls XsltTransformer.NAMESPACES_FEATURE_ID ; defaults to true



isValidParams
protected boolean isValidParams(Code)



isValidParser
protected boolean isValidParser(Code)



isValidStylesheet
protected boolean isValidStylesheet(Code)



isValidate
protected boolean isValidate(Code)
controls XsltTransformer.VALIDATION_FEATURE_ID and XsltTransformer.SCHEMA_VALIDATION_FEATURE_ID ; defaults to false



isValidateDynamic
protected boolean isValidateDynamic(Code)
controls XsltTransformer.DYNAMIC_VALIDATION_FEATURE_ID ; defaults to false



params
protected HashMap<String, XsltParam> params(Code)
holds additional XsltParam objects to be passed to the stylesheets



project
protected Project project(Code)
never null



stylesheet
protected File stylesheet(Code)



stylesheetOld
protected File stylesheetOld(Code)
used by caching mechanism @see #validate()



stylesheetOldLastModified
protected long stylesheetOldLastModified(Code)
used by caching mechanism @see #validate()



templates
protected Templates templates(Code)
The In memory version of the stylesheet



transformer
protected Transformer transformer(Code)



xmlReader
protected XMLReader xmlReader(Code)




Constructor Detail
XsltTransformer
public XsltTransformer(Project project)(Code)
The Stylesheet needs to be set with XsltTransformer.setStylesheet(File) when using the default constructor.
Parameters:
  project - may not be null



XsltTransformer
public XsltTransformer(Project project, File stylesheet)(Code)

Parameters:
  project - must not be null
Parameters:
  stylesheet - may be null




Method Detail
clearParameters
public void clearParameters()(Code)



exists
public static boolean exists(String file)(Code)



getEntitiyResolver
public EntityResolver getEntitiyResolver()(Code)



getProject
public Project getProject()(Code)



getStylesheet
public File getStylesheet()(Code)
stylesheet or null



isCacheStylesheet
public boolean isCacheStylesheet()(Code)



isNamespaceAware
public boolean isNamespaceAware()(Code)
Configures parser for input documents. Affects following features:
Default: true
See Also:   XsltTransformer.validate()



isValid
protected boolean isValid()(Code)



isValidate
public boolean isValidate()(Code)
Configures parser for input documents. Affects following features: Default: false
See Also:   XsltTransformer.validate()



isValidateDynamic
public boolean isValidateDynamic()(Code)
Configures parser for input documents. Affects following features:
Default: false
See Also:   XsltTransformer.validate()



setCacheStylesheet
public void setCacheStylesheet(boolean cacheStylesheet)(Code)



setEntitiyResolver
public void setEntitiyResolver(EntityResolver entitiyResolver)(Code)



setNamespaceAware
public void setNamespaceAware(boolean isNamespaceAware)(Code)
Configures parser for input documents. Affects following features:
Default: true
See Also:   XsltTransformer.validate()



setParameter
public void setParameter(XsltParam param)(Code)



setProject
protected void setProject(Project project)(Code)



setStylesheet
public void setStylesheet(File stylesheet)(Code)
Sets a new Stylesheet File, which in turn creates a new Transformer .
Note: you have to re-apply your parameters, as they get lost with the old transformer.
Parameters:
  stylesheet - or null
See Also:   XsltTransformer.setParameter(String,Object)



setValidate
public void setValidate(boolean validate)(Code)
Configures parser for input documents. Affects following features:
Default: false
See Also:   XsltTransformer.validate()



setValidateDynamic
public void setValidateDynamic(boolean validateDynamic)(Code)
Configures parser for input documents. Affects following features:
Default: false
See Also:   XsltTransformer.validate()



shortClassname
public static String shortClassname(String classname)(Code)
classname without package prefix



toString
public String toString()(Code)



transform
public void transform(File baseDir, String infilename, File destDir, String outfilename)(Code)



transform
public void transform(File infile, File outfile)(Code)



transform
public void transform(Source source, Result result)(Code)



validate
protected void validate()(Code)

throws:
  BuildException - on XsltTransformer.stylesheet == null, TransformerConfigurationException, XMLReader.setFeature(java.lang.Stringboolean)



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.