Java Doc for DVSL.java in  » Template-Engine » Velocity » org » apache » dvsl » 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 » Template Engine » Velocity » org.apache.dvsl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.dvsl.DVSL

All known Subclasses:   org.apache.tools.dvsl.DVSL,
DVSL
public class DVSL (Code)
Main DVSL class - use this as the helper class for apps
author:
   Geir Magnusson Jr.
author:
   Bill Burton.

Inner Class :protected static class LogAdapter extends LogChuteSystem

Field Summary
 booleanvalidate
    

Constructor Summary
public  DVSL()
    

Method Summary
public  ObjectgetAppValue(Object key)
    
public static  voidmain(String[] args)
    

Allows command-line access.

protected  voidmakeReady()
    
public  ObjectputAppValue(Object key, Object value)
    
public  voidsetClassLoader(ClassLoader classLoader)
    

Specify a classloader for loading the Toolbox classes.

public  voidsetLogChute(LogChute logger)
    

lets the user specify a class instance for logging.

public  voidsetLogFile(File logFile)
    

lets the user specify a filename for logging.

public  voidsetLogSystem(LogSystem logger)
    

lets the user specify a class instance for logging.

public  voidsetStylesheet(String stylesheet)
     Convenience function.
public  voidsetStylesheet(File stylesheet)
     Convenience function.
public  voidsetStylesheet(File stylesheet, String stylesheetEncoding)
     Convenience function.
public  voidsetStylesheet(Reader styleReader)
    

Sets the stylesheet for this transformation set

Note that don't need this for each document you want to transform.

public  voidsetToolbox(Properties p)
    

Loads the toolbox from the input Properties.

Currently supports specification of the Toolbox name in the context, creating classes, and string and integer values.

public  voidsetUserContext(Context ctx)
    

Sets the user context.

public  voidsetValidatingParser(boolean validate)
    
public  voidsetVelocityConfig(Map map)
    
public  longtransform(File f, Writer writer)
    
public  longtransform(Reader reader, Writer writer)
    
public  longtransform(InputStream is, Writer writer)
    
public  longtransform(Document dom4jdoc, Writer writer)
     Transforms the given dom4j Document into the writer.
public  longtransform(String infile, Writer writer)
    
protected  longxform(Reader reader, Writer writer)
    
protected  longxform(Document dom4jdoc, Writer writer)
    

Field Detail
validate
boolean validate(Code)




Constructor Detail
DVSL
public DVSL()(Code)




Method Detail
getAppValue
public Object getAppValue(Object key)(Code)
Gets the application value for the specified key
Parameters:
  key - key to use to retrieve value value if found, null otherwise



main
public static void main(String[] args) throws Exception(Code)

Allows command-line access.

Usage : java -jar dvsl.jar -STYLE stylesheeet [-IN infile] [-OUT outfile] [-TOOL toolboxname]




makeReady
protected void makeReady()(Code)
sets up all the context goodies



putAppValue
public Object putAppValue(Object key, Object value)(Code)
Sets the application value for the specified key
Parameters:
  key - key to use to store value
Parameters:
  value - value to be stored old value if any, null otherwise



setClassLoader
public void setClassLoader(ClassLoader classLoader)(Code)

Specify a classloader for loading the Toolbox classes. Setting to null resets to the default ClassLoader.


Parameters:
  classLoader - ClassLoader or null for default ClassLoader



setLogChute
public void setLogChute(LogChute logger)(Code)

lets the user specify a class instance for logging.




setLogFile
public void setLogFile(File logFile)(Code)

lets the user specify a filename for logging.




setLogSystem
public void setLogSystem(LogSystem logger)(Code)

lets the user specify a class instance for logging.




setStylesheet
public void setStylesheet(String stylesheet) throws Exception(Code)
Convenience function. See...



setStylesheet
public void setStylesheet(File stylesheet) throws Exception(Code)
Convenience function. See...



setStylesheet
public void setStylesheet(File stylesheet, String stylesheetEncoding) throws Exception(Code)
Convenience function. See...



setStylesheet
public void setStylesheet(Reader styleReader) throws Exception(Code)

Sets the stylesheet for this transformation set

Note that don't need this for each document you want to transform. Just do it once, and transform away...


Parameters:
  styleReader - Reader with stylesheet char stream



setToolbox
public void setToolbox(Properties p) throws ClassNotFoundException, InstantiationException, IllegalAccessException(Code)

Loads the toolbox from the input Properties.

Currently supports specification of the Toolbox name in the context, creating classes, and string and integer values. Ex :

 toolbox.contextname = floyd
 toolbox.tool.footool = Footool
 toolbox.string.mystring = Hello there!
 toolbox.integer.myint = 7
 toolbox.string.sourcebase = ./xdocs/
 

So in template, this toolbox and it's values would be accessed as :

 $context.floyd.footool.getFoo()
 $context.floyd.mystring
 $context.floyd.myint
 



setUserContext
public void setUserContext(Context ctx)(Code)

Sets the user context. The user context is a Velocity Context containing user-supplied objects and data that are to be made available in the template


Parameters:
  ctx - User context of data



setValidatingParser
public void setValidatingParser(boolean validate)(Code)

Uses a validating parser on all input documents


Parameters:
  validate -



setVelocityConfig
public void setVelocityConfig(Map map)(Code)

lets the user pass a java.util.Properties containing properties for the configuration of the VelocityEngine used by DVSL




transform
public long transform(File f, Writer writer) throws Exception(Code)



transform
public long transform(Reader reader, Writer writer) throws Exception(Code)



transform
public long transform(InputStream is, Writer writer) throws Exception(Code)



transform
public long transform(Document dom4jdoc, Writer writer) throws Exception(Code)
Transforms the given dom4j Document into the writer.
Parameters:
  dom4jdoc - dom4j Document object
Parameters:
  writer - Writer for output



transform
public long transform(String infile, Writer writer) throws Exception(Code)



xform
protected long xform(Reader reader, Writer writer) throws Exception(Code)
does the transformation of the inputstream into the output writer



xform
protected long xform(Document dom4jdoc, Writer writer) throws Exception(Code)



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.