Java Doc for XsltGenericTask.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) 


de.schlund.pfixcore.util.XsltGenericTask

All known Subclasses:   de.schlund.pfixcore.util.XsltCustomizeXmlTask,  de.schlund.pfixcore.util.XsltIWrapperTask,  de.schlund.pfixcore.util.XsltWebXmlTask,
XsltGenericTask
public class XsltGenericTask extends MatchingTask (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
public static  StringATTR_CATALOGFILE
    
public static  StringATTR_DESTDIR
    
public static  StringATTR_INFILE
    
public static  StringATTR_OUTFILE
    
public static  StringATTR_SRCDIR
    
public static  StringATTR_VALIDATE
    
public static  StringVAL_VALIDATE_DYNAMIC
    
public static  StringVAL_VALIDATE_TRUE
    
protected  Stringcatalogfile
    
protected  Filedestdir
    
protected  FiledestdirResolved
    
protected  Filein
    
protected  longinLastModified
    
protected  Fileinfile
    
protected  StringinfilenameNoExt
    
protected  String[]infilenames
    
protected  Stringinname
    
protected  Fileout
    
protected  longoutLastModified
    
protected  Fileoutfile
    
protected  Stringoutname
    
protected  PfixXmlCatalogEntityResolverpfixResolver
    
protected  StringBuffersb
    
protected  DirectoryScannerscanner
    
protected  Filesrcdir
    
protected  FilesrcdirResolved
    
protected  Stringstyle
    
protected  longstyleLastModified
    
protected  Filestylefile
    
protected  StringtargetExtension
    
protected  XsltTransformertransformer
    
protected  Stringvalidate
     XML Schema Validation.


Method Summary
public  voidaddConfiguredParam(XsltParam param)
    
protected  voiddoTransformation()
    
protected  intdoTransformationMaybe()
    
protected  voiddoTransformations()
     checks attributes, sets XsltGenericTask.in , XsltGenericTask.out and calls XsltGenericTask.doTransformationMaybe() for each input file.
protected static  booleanequals(Object object1, Object object2)
     Test for equality of object1 and object2 .
public  voidexecute()
    
protected  voidexecuteCleanup()
    
protected  voidexecuteSetup()
    
public  StringgetCatalogfile()
    
public  FilegetDestdir()
    
public  StringgetExtension()
    
public  FilegetInfile()
    
public  FilegetOutfile()
    
public  FilegetSrcdir()
    
public  StringgetStyle()
    
protected  longgetStyleLastModified()
    
protected  XsltTransformergetTransformer()
    
public  StringgetValidate()
    
protected  voidinvalidateTransformer()
    
protected  voidinvalidateXmlCatalog()
    
protected static  booleanisNothing(String s)
    
protected  booleanisTransformerInstantiated()
     Used to check if cleanup is necessary.
public  booleanisValidate()
    
public  booleanisValidateDynamic()
    
public  voidsetCatalogfile(String catalogfile)
    
public  voidsetDestdir(File destdir)
    
public  voidsetExtension(String name)
     Set the desired file extension to be used for the target; optional, default is "".
public  voidsetInfile(File infile)
    
public  voidsetOutfile(File outfile)
    
public  voidsetSrcdir(File srcdir)
     Set the Source directory; required.
public  voidsetStyle(String style)
     Name of the stylesheet to use - given either relative to the project's basedir or as an absolute path; required.
public  voidsetValidate(String validate)
    

Field Detail
ATTR_CATALOGFILE
public static String ATTR_CATALOGFILE(Code)



ATTR_DESTDIR
public static String ATTR_DESTDIR(Code)



ATTR_INFILE
public static String ATTR_INFILE(Code)



ATTR_OUTFILE
public static String ATTR_OUTFILE(Code)



ATTR_SRCDIR
public static String ATTR_SRCDIR(Code)



ATTR_VALIDATE
public static String ATTR_VALIDATE(Code)



VAL_VALIDATE_DYNAMIC
public static String VAL_VALIDATE_DYNAMIC(Code)



VAL_VALIDATE_TRUE
public static String VAL_VALIDATE_TRUE(Code)



catalogfile
protected String catalogfile(Code)
Catalog file compliant to http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd - optional



destdir
protected File destdir(Code)
destination directory



destdirResolved
protected File destdirResolved(Code)
resolved from project's base directory (handled by XsltGenericTask.executeSetup() )



in
protected File in(Code)



inLastModified
protected long inLastModified(Code)



infile
protected File infile(Code)
single inputfile



infilenameNoExt
protected String infilenameNoExt(Code)



infilenames
protected String[] infilenames(Code)



inname
protected String inname(Code)



out
protected File out(Code)



outLastModified
protected long outLastModified(Code)



outfile
protected File outfile(Code)
single outputfile



outname
protected String outname(Code)



pfixResolver
protected PfixXmlCatalogEntityResolver pfixResolver(Code)



sb
protected StringBuffer sb(Code)



scanner
protected DirectoryScanner scanner(Code)



srcdir
protected File srcdir(Code)
where to find the source XML file, default is the project's basedir



srcdirResolved
protected File srcdirResolved(Code)
resolved from project's base directory (handled by XsltGenericTask.executeSetup() )



style
protected String style(Code)
XSL stylesheet relative to project's basedir



styleLastModified
protected long styleLastModified(Code)



stylefile
protected File stylefile(Code)
existent stylesheet (handled by XsltGenericTask.executeSetup() )



targetExtension
protected String targetExtension(Code)
extension of the files produced by XSL processing



transformer
protected XsltTransformer transformer(Code)



validate
protected String validate(Code)
XML Schema Validation. Default: false.





Method Detail
addConfiguredParam
public void addConfiguredParam(XsltParam param)(Code)
adds a configured instance of an XSLT parameter
Parameters:
  param - a configured instance of the XsltParam



doTransformation
protected void doTransformation() throws BuildException(Code)



doTransformationMaybe
protected int doTransformationMaybe()(Code)
must be initialized: XsltGenericTask.in , XsltGenericTask.out , number of files transformed,either 1 if file has been transformed or 0 if it was up to date



doTransformations
protected void doTransformations()(Code)
checks attributes, sets XsltGenericTask.in , XsltGenericTask.out and calls XsltGenericTask.doTransformationMaybe() for each input file.



equals
protected static boolean equals(Object object1, Object object2)(Code)
Test for equality of object1 and object2 . object1, may be null object2. may be null true if object1 and object2 are equal



execute
public void execute() throws BuildException(Code)



executeCleanup
protected void executeCleanup()(Code)



executeSetup
protected void executeSetup()(Code)



getCatalogfile
public String getCatalogfile()(Code)



getDestdir
public File getDestdir()(Code)



getExtension
public String getExtension()(Code)
the target extension or "" if none set



getInfile
public File getInfile()(Code)



getOutfile
public File getOutfile()(Code)



getSrcdir
public File getSrcdir()(Code)



getStyle
public String getStyle()(Code)



getStyleLastModified
protected long getStyleLastModified()(Code)
lastModified time of XsltGenericTask.stylefile, 0 if XsltGenericTask.stylefile not set
See Also:   File.lastModified



getTransformer
protected XsltTransformer getTransformer()(Code)



getValidate
public String getValidate()(Code)



invalidateTransformer
protected void invalidateTransformer()(Code)



invalidateXmlCatalog
protected void invalidateXmlCatalog()(Code)



isNothing
protected static boolean isNothing(String s)(Code)



isTransformerInstantiated
protected boolean isTransformerInstantiated()(Code)
Used to check if cleanup is necessary.



isValidate
public boolean isValidate()(Code)



isValidateDynamic
public boolean isValidateDynamic()(Code)



setCatalogfile
public void setCatalogfile(String catalogfile)(Code)



setDestdir
public void setDestdir(File destdir)(Code)
Set the destination directory into which the XSL result files should be copied to; optional, defaults to srcdir if not specified
Parameters:
  destdir - the name of the destination directory



setExtension
public void setExtension(String name)(Code)
Set the desired file extension to be used for the target; optional, default is "".
Parameters:
  name - the extension to use



setInfile
public void setInfile(File infile)(Code)



setOutfile
public void setOutfile(File outfile)(Code)



setSrcdir
public void setSrcdir(File srcdir)(Code)
Set the Source directory; required.
Parameters:
  srcdir - the base directory



setStyle
public void setStyle(String style)(Code)
Name of the stylesheet to use - given either relative to the project's basedir or as an absolute path; required.
Parameters:
  style - the stylesheet to use



setValidate
public void setValidate(String validate)(Code)



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