Java Doc for ValidationReportTransformer.java in  » Content-Management-System » apache-lenya-2.0 » org » apache » cocoon » transformation » 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 » Content Management System » apache lenya 2.0 » org.apache.cocoon.transformation 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.cocoon.transformation.AbstractTransformer
   org.apache.cocoon.transformation.ValidationReportTransformer

ValidationReportTransformer
public class ValidationReportTransformer extends AbstractTransformer implements Configurable,Serviceable,Disposable,CacheableProcessingComponent(Code)

The ValidationReportTransformer provides a Transformer validating documents while being processed in a Cocoon pipeline, and preparing a report of all detected inconsistancies according the specified schema.

The only defined (but not required) configuration for this component is <grammar>...string...</grammar> indicating the default grammar language of the schemas to use.

This configuration parameter can be overridden by specifying the grammar parameter when using this Transformer in a pipeline.

If no grammar is specified (either as a configuration, or a parameter) this transformer will instruct the Validator to try and guess the grammar of the schema being parsed.

The report prepared by this transformer will look like the following:

 <report xmlns="http://apache.org/cocoon/validation/1.0">
 <warning system="..." public="..." line="..." column="...">
 ... detailed message ...
 </warning>
 <error system="..." public="..." line="..." column="...">
 ... detailed message ...
 </error>
 <fatal system="..." public="..." line="..." column="...">
 ... message ...
 </fatal>
 </report>
 

The location attributes specified in the <warning/>, <error/> and <fatal/> tags are all optional and will be generated only if known.




Constructor Summary
public  ValidationReportTransformer()
    

Method Summary
public  voidconfigure(Configuration configuration)
    
public  voiddispose()
    
public  voidendDocument()
    
public  SerializablegetKey()
    
public  SourceValiditygetValidity()
    
public  voidrecycle()
    
public  voidservice(ServiceManager manager)
    
public  voidsetConsumer(XMLConsumer consumer)
    
public  voidsetup(SourceResolver resolver, Map objectModel, String source, Parameters parameters)
    


Constructor Detail
ValidationReportTransformer
public ValidationReportTransformer()(Code)

Create a new ValidationReportTransformer instance.





Method Detail
configure
public void configure(Configuration configuration) throws ConfigurationException(Code)

Configure this component instance.

The only defined (but not required) configuration for this component is <grammar>...string...</grammar> indicating the default grammar used by this transformer used for parsing schemas.


Parameters:
  configuration - a Configuration instance for this component.
throws:
  ConfigurationException - never thrown.



dispose
public void dispose()(Code)

Dispose of this component instance releasing all previously acquired required instances back to the ServiceManager .




endDocument
public void endDocument() throws SAXException(Code)

Receive notification of the end of the document and produce the report of the validation result.


throws:
  SAXException -
See Also:   org.xml.sax.ContentHandler.endDocument



getKey
public Serializable getKey()(Code)

Return the unique key to associated with the schema being processed in the scope of the request being processed for caching.

a non null String representing the unique key for the schema.



getValidity
public SourceValidity getValidity()(Code)

Return the SourceValidity associated with the schema currently being processed in the scope of the request being processed.

a non null SourceValidity instance.



recycle
public void recycle()(Code)

Recycle this component instance at the end of request processing.




service
public void service(ServiceManager manager) throws ServiceException(Code)

Contextualize this component instance specifying its associated ServiceManager instance.


Parameters:
  manager - the ServiceManager to associate with this component.
throws:
  ServiceException - if a dependancy of this could not be resolved.



setConsumer
public void setConsumer(XMLConsumer consumer)(Code)

Specify the XMLConsumer receiving SAX events emitted by this Transformer instance in the scope of a request.


Parameters:
  consumer - the XMLConsumer to send SAX events to.



setup
public void setup(SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws ProcessingException, SAXException, IOException(Code)

Contextualize this component in the scope of a pipeline when a request is processed.


Parameters:
  resolver - the SourceResolver contextualized in this request.
Parameters:
  objectModel - unused.
Parameters:
  source - the source URI of the schema to validate against.
Parameters:
  parameters - unused.




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