Java Doc for ConfigurationXMLReader.java in  » Forum » mvnforum-1.1 » net » myvietnam » mvncore » configuration » 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 » Forum » mvnforum 1.1 » net.myvietnam.mvncore.configuration 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.myvietnam.mvncore.configuration.ConfigurationXMLReader

All known Subclasses:   net.myvietnam.mvncore.configuration.HierarchicalConfigurationXMLReader,  net.myvietnam.mvncore.configuration.BaseConfigurationXMLReader,
ConfigurationXMLReader
abstract public class ConfigurationXMLReader implements XMLReader(Code)

A base class for "faked" XMLReader classes that transform a configuration object in a set of SAX parsing events.

This class provides dummy implementations for most of the methods defined in the XMLReader interface that are not used for this special purpose. There will be concrete sub classes that process specific configuration classes.


author:
   Oliver Heger
version:
   $Id: ConfigurationXMLReader.java,v 1.1 2003/12/09 08:25:30 huumai Exp $


Field Summary
final protected static  StringNS_URI
     Constant for the namespace URI.

Constructor Summary
protected  ConfigurationXMLReader()
     Creates a new instance of ConfigurationXMLReader.

Method Summary
protected  voidfireCharacters(String text)
     Fires a SAX characters event.
protected  voidfireElementEnd(String name)
     Fires a SAX element end event.
protected  voidfireElementStart(String name, Attributes attribs)
     Fires a SAX element start event.
public  ContentHandlergetContentHandler()
     Returns the actually set content handler.
public  DTDHandlergetDTDHandler()
     Returns the DTD handler.
public  EntityResolvergetEntityResolver()
     Returns the entity resolver.
public  ErrorHandlergetErrorHandler()
     Returns the error handler.
public  SAXExceptiongetException()
     Returns a reference to an exception that occurred during parsing.
public  booleangetFeature(String name)
     Dummy implementation of the interface method.
abstract public  ConfigurationgetParsedConfiguration()
     Returns a reference to the configuration that is parsed by this object.
public  ObjectgetProperty(String name)
     Dummy implementation of the interface method.
public  StringgetRootName()
     Returns the name to be used for the root element.
public  voidparse(String systemId)
     Parses the acutal configuration object.
public  voidparse(InputSource input)
     Parses the acutal configuration object.
protected  voidparseConfiguration()
     Parses the configuration object and generates SAX events.
abstract protected  voidprocessKeys()
     Processes all keys stored in the actual configuration.
public  voidsetContentHandler(ContentHandler handler)
     Sets the content handler.
public  voidsetDTDHandler(DTDHandler handler)
     Sets the DTD handler.
public  voidsetEntityResolver(EntityResolver resolver)
     Sets the entity resolver.
public  voidsetErrorHandler(ErrorHandler handler)
     Sets the error handler.
public  voidsetFeature(String name, boolean value)
     Dummy implementation of the interface method.
public  voidsetProperty(String name, Object value)
     Dummy implementation of the interface method.
public  voidsetRootName(String string)
     Sets the name for the root element.

Field Detail
NS_URI
final protected static String NS_URI(Code)
Constant for the namespace URI.




Constructor Detail
ConfigurationXMLReader
protected ConfigurationXMLReader()(Code)
Creates a new instance of ConfigurationXMLReader.




Method Detail
fireCharacters
protected void fireCharacters(String text)(Code)
Fires a SAX characters event.
Parameters:
  text - the text



fireElementEnd
protected void fireElementEnd(String name)(Code)
Fires a SAX element end event.
Parameters:
  name - the name of the affected element



fireElementStart
protected void fireElementStart(String name, Attributes attribs)(Code)
Fires a SAX element start event.
Parameters:
  name - the name of the actual element
Parameters:
  attribs - the attributes of this element (can be null)



getContentHandler
public ContentHandler getContentHandler()(Code)
Returns the actually set content handler. the content handler



getDTDHandler
public DTDHandler getDTDHandler()(Code)
Returns the DTD handler. This class does not support DTD handlers, so this method always returns null. the DTD handler



getEntityResolver
public EntityResolver getEntityResolver()(Code)
Returns the entity resolver. This class does not support an entity resolver, so this method always returns null. the entity resolver



getErrorHandler
public ErrorHandler getErrorHandler()(Code)
Returns the error handler. This class does not support an error handler, so this method always returns null. the error handler



getException
public SAXException getException()(Code)
Returns a reference to an exception that occurred during parsing. a SAXExcpetion or null if none occurred



getFeature
public boolean getFeature(String name)(Code)
Dummy implementation of the interface method.
Parameters:
  name - the name of the feature always false (no features are supported)



getParsedConfiguration
abstract public Configuration getParsedConfiguration()(Code)
Returns a reference to the configuration that is parsed by this object. the parsed configuration



getProperty
public Object getProperty(String name)(Code)
Dummy implementation of the interface method. No properties are supported, so this method always returns null.
Parameters:
  name - the name of the requested property the property value



getRootName
public String getRootName()(Code)
Returns the name to be used for the root element. the name for the root element



parse
public void parse(String systemId) throws IOException, SAXException(Code)
Parses the acutal configuration object. The passed system ID will be ignored.
Parameters:
  systemId - the system ID (ignored)
throws:
  IOException - if no configuration was specified
throws:
  SAXException - if an error occurs during parsing



parse
public void parse(InputSource input) throws IOException, SAXException(Code)
Parses the acutal configuration object. The passed input source will be ignored.
Parameters:
  input - the input source (ignored)
throws:
  IOException - if no configuration was specified
throws:
  SAXException - if an error occurs during parsing



parseConfiguration
protected void parseConfiguration() throws IOException, SAXException(Code)
Parses the configuration object and generates SAX events. This is the main processing method.
throws:
  IOException - if no configuration has been specified
throws:
  SAXException - if an error occurs during parsing



processKeys
abstract protected void processKeys() throws IOException, SAXException(Code)
Processes all keys stored in the actual configuration. This method is called by parseConfiguration() to start the main parsing process. parseConfiguration() calls the content handler's startDocument() and endElement() methods and cares for exception handling. The remaining actions are left to this method that must be implemented in a concrete sub class.
throws:
  IOException - if an IO error occurs
throws:
  SAXException - if a SAX error occurs



setContentHandler
public void setContentHandler(ContentHandler handler)(Code)
Sets the content handler. The object specified here will receive SAX events during parsing.
Parameters:
  handler - the content handler



setDTDHandler
public void setDTDHandler(DTDHandler handler)(Code)
Sets the DTD handler. The passed value is ignored.
Parameters:
  handler - the handler to be set



setEntityResolver
public void setEntityResolver(EntityResolver resolver)(Code)
Sets the entity resolver. The passed value is ignored.
Parameters:
  resolver - the entity resolver



setErrorHandler
public void setErrorHandler(ErrorHandler handler)(Code)
Sets the error handler. The passed value is ignored.
Parameters:
  handler - the error handler



setFeature
public void setFeature(String name, boolean value)(Code)
Dummy implementation of the interface method.
Parameters:
  name - the name of the feature to be set
Parameters:
  value - the value of the feature



setProperty
public void setProperty(String name, Object value)(Code)
Dummy implementation of the interface method. No properties are supported, so a call of this method just has no effect.
Parameters:
  name - the property name
Parameters:
  value - the property value



setRootName
public void setRootName(String string)(Code)
Sets the name for the root element.
Parameters:
  string - the name for the root element.



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.