Java Doc for XmlReader.java in  » ESB » open-esb » com » sun » jbi » management » internal » support » 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 » ESB » open esb » com.sun.jbi.management.internal.support 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.jbi.management.internal.support.XmlReader

XmlReader
public class XmlReader implements org.xml.sax.ErrorHandler,org.xml.sax.EntityResolver(Code)
XmlReader -- read in and print out expected values from the specified file (supposedly the jbi.xml file from the archive).
author:
   Sun Microsystems, Inc.



Constructor Summary
public  XmlReader()
     Default constructor.

Method Summary
public  voiderror(SAXParseException aSaxException)
     This is a callback from the XML parser used to handle errors.
public  voidfatalError(SAXParseException aSaxException)
     This is a callback from the XML parser used to handle errors.
public  StringgetBootstrapClassName()
     Function to return the last bootstrap class parsed.
public  VectorgetBootstrapClassPath()
     Function to return the last bootstrap classpath parsed.
public  DocumentFragmentgetComponentDocumentFragment()
     Return the XML Document Fragment from the component section.
public  StringgetDescription()
     Function to return the last description parsed.
public  StringgetId()
     Function to return the last component ID parsed.
public  DocumentFragmentgetIdentificationDocumentFragment()
     Return the XML Document Fragment from the identification section.
public  ComponentInstallationContextgetInstallationContext()
     Function to return the installation context for the component.
public  VectorgetLifecycleClassNames()
     Function to return the last lifecycle classes parsed.
public  VectorgetLifecycleClassPath()
     Function to return the last lifecycle classpath parsed.
public  VectorgetSharedLibraryIds()
     Function to return the last list of shared library ids parsed.
public  DocumentgetXmlDocument()
     Return the XML Document.
public  booleanisAlternateBootstrapClassLoaderDelegation()
     Function to specify if the parsed component had an alternate bootstrap class loader delegation.
public  booleanisAlternateComponentClassLoaderDelegation()
     Function to specify if the parsed component had an alternate component class loader delegation.
public  booleanisAlternateSharedLibraryClassLoaderDelegation()
     Function to specify if the parsed shared library had an alternate class loader delegation.
public  booleanisBinding()
     Function to specify if the parsed component was a binding.
public  booleanisDeployment()
     Function to specify if the parsed component was a deployment.
public  booleanisEngine()
     Function to specify if the parsed component was an engine.
public  booleanisSharedLibrary()
     Function to specify if the parsed component was a shared library.
 voidjbiParse(boolean isRegressTest)
     display the information found.
public  StringloadAndParse(String aFileName, boolean isOnlyIdNeeded)
     Extract all information from the jbi.xml file.
public  InputSourceresolveEntity(String publicId, String systemId)
     The resolveEntity method resolves schema references only, a reference to the XML definition of the XML configuration file is resolved to return an InputSource created for the local schema definition file.
public  voidsetEnvironmentContext(EnvironmentContext aContext)
     Specify the global environment context.
 Stringstrip(NodeList aNodeList)
     Convert the given node list to a single string.
 VectorstripArray(NodeList aNodeList)
     Convert the given node list to a Vector of strings.
 VectorstripArray(String anXpath)
     Find the specified Xpath element, and return it as an array.
 StringstripString(String anXpath)
     Find the specified Xpath element, and return it as a string.
 voidtellWhatWeFound()
     display the information found.
public  booleanvalidate(java.io.InputStream istr)
     Validate the jbi.xml file.
public  booleanvalidate(String aFileName)
     Validate the jbi.xml file.
public  booleanvalidateManagementMessage(String aMMsgStr)
     Validate management message.
public  voidwarning(SAXParseException aSaxException)
     This is a callback from the XML parser used to handle warnings.


Constructor Detail
XmlReader
public XmlReader()(Code)
Default constructor.




Method Detail
error
public void error(SAXParseException aSaxException) throws org.xml.sax.SAXException(Code)
This is a callback from the XML parser used to handle errors.
Parameters:
  aSaxException - SAXParseException is the error.
throws:
  org.xml.sax.SAXException - when finished logging.



fatalError
public void fatalError(SAXParseException aSaxException) throws org.xml.sax.SAXException(Code)
This is a callback from the XML parser used to handle errors.
Parameters:
  aSaxException - SAXParseException is the error.
throws:
  org.xml.sax.SAXException - when finished logging.



getBootstrapClassName
public String getBootstrapClassName()(Code)
Function to return the last bootstrap class parsed. the bootstrap class name



getBootstrapClassPath
public Vector getBootstrapClassPath()(Code)
Function to return the last bootstrap classpath parsed. the bootstrap class path



getComponentDocumentFragment
public DocumentFragment getComponentDocumentFragment()(Code)
Return the XML Document Fragment from the component section. the document fragment from the component section.



getDescription
public String getDescription()(Code)
Function to return the last description parsed. the last description we saw



getId
public String getId()(Code)
Function to return the last component ID parsed. the last component ID we saw



getIdentificationDocumentFragment
public DocumentFragment getIdentificationDocumentFragment()(Code)
Return the XML Document Fragment from the identification section. the document fragment from the identification section.



getInstallationContext
public ComponentInstallationContext getInstallationContext()(Code)
Function to return the installation context for the component. the installation context for the component.



getLifecycleClassNames
public Vector getLifecycleClassNames()(Code)
Function to return the last lifecycle classes parsed. the lifecycle classes names



getLifecycleClassPath
public Vector getLifecycleClassPath()(Code)
Function to return the last lifecycle classpath parsed. the lifecycle class path



getSharedLibraryIds
public Vector getSharedLibraryIds()(Code)
Function to return the last list of shared library ids parsed. the shared Library Ids list



getXmlDocument
public Document getXmlDocument()(Code)
Return the XML Document. the document as a DOM tree



isAlternateBootstrapClassLoaderDelegation
public boolean isAlternateBootstrapClassLoaderDelegation()(Code)
Function to specify if the parsed component had an alternate bootstrap class loader delegation. true iff the last component parsed had an alternate bootstrapclass loader delegation.



isAlternateComponentClassLoaderDelegation
public boolean isAlternateComponentClassLoaderDelegation()(Code)
Function to specify if the parsed component had an alternate component class loader delegation. true iff the last component parsed had an alternate componentclass loader delegation.



isAlternateSharedLibraryClassLoaderDelegation
public boolean isAlternateSharedLibraryClassLoaderDelegation()(Code)
Function to specify if the parsed shared library had an alternate class loader delegation. true iff the last shared library parsed had an alternateclass loader delegation.



isBinding
public boolean isBinding()(Code)
Function to specify if the parsed component was a binding. true iff the last component parsed was a binding



isDeployment
public boolean isDeployment()(Code)
Function to specify if the parsed component was a deployment. true iff the last component parsed was a deployment



isEngine
public boolean isEngine()(Code)
Function to specify if the parsed component was an engine. true iff the last component parsed was an engine



isSharedLibrary
public boolean isSharedLibrary()(Code)
Function to specify if the parsed component was a shared library. true iff the last component parsed was a shared library



jbiParse
void jbiParse(boolean isRegressTest)(Code)
display the information found.
Parameters:
  isRegressTest - true iff being run from regress test (println is ok)



loadAndParse
public String loadAndParse(String aFileName, boolean isOnlyIdNeeded) throws Exception(Code)
Extract all information from the jbi.xml file.
Parameters:
  aFileName - the specified "jbi.xml" file
Parameters:
  isOnlyIdNeeded - true if we want to return Id (only) the UUID of the JBI component
throws:
  Exception - when unable to process a validconfiguration file.



resolveEntity
public InputSource resolveEntity(String publicId, String systemId)(Code)
The resolveEntity method resolves schema references only, a reference to the XML definition of the XML configuration file is resolved to return an InputSource created for the local schema definition file. The schema definition file should be present in the EntityResolvers work directory. If the referenced entity is not the schema definition a null value is returned such that the XML parser can apply the default entity resolution logic.
Parameters:
  publicId - - The public identifier of the external entity being referenced,or null if none was supplied.
Parameters:
  systemId - - The system identifier of the external entity being referenced. An InputSource object describing the new input source, or null to requestthat the parser open a regular URI connection to the system identifier
See Also:   org.xml.sax.EntityResolver



setEnvironmentContext
public void setEnvironmentContext(EnvironmentContext aContext)(Code)
Specify the global environment context.
Parameters:
  aContext - the global environment context



strip
String strip(NodeList aNodeList)(Code)
Convert the given node list to a single string.
Parameters:
  aNodeList - the list of nodes (should be 1) we want the element as a string



stripArray
Vector stripArray(NodeList aNodeList)(Code)
Convert the given node list to a Vector of strings.
Parameters:
  aNodeList - the list of nodes we want the node list as a vector



stripArray
Vector stripArray(String anXpath) throws javax.xml.transform.TransformerException(Code)
Find the specified Xpath element, and return it as an array.
Parameters:
  anXpath - the path to the element we want the element as an array
throws:
  javax.xml.transform.TransformerException - unexpectedly.



stripString
String stripString(String anXpath) throws javax.xml.transform.TransformerException(Code)
Find the specified Xpath element, and return it as a string.
Parameters:
  anXpath - the path to the element we want the element as a string
throws:
  javax.xml.transform.TransformerException - unexpectedly.



tellWhatWeFound
void tellWhatWeFound()(Code)
display the information found. Note: This routine is *not* called from anywhere that records to the server.log file (it's only used by regression test manage00002), so the println messages in this routine are known to not be I18N'd.



validate
public boolean validate(java.io.InputStream istr) throws Exception(Code)
Validate the jbi.xml file.
Parameters:
  istr - is the InputStream to the "jbi.xml" file true iff the file passes validation
throws:
  Exception - when unable to process a validconfiguration file.



validate
public boolean validate(String aFileName) throws Exception(Code)
Validate the jbi.xml file.
Parameters:
  aFileName - the specified "jbi.xml" file true iff the file passes validation
throws:
  Exception - when unable to process a validconfiguration file.



validateManagementMessage
public boolean validateManagementMessage(String aMMsgStr) throws Exception(Code)
Validate management message.
Parameters:
  aMMsgStr - management message string true iff the file passes validation
throws:
  Exception - when unable to process a validconfiguration file.



warning
public void warning(SAXParseException aSaxException) throws org.xml.sax.SAXException(Code)
This is a callback from the XML parser used to handle warnings.
Parameters:
  aSaxException - SAXParseException is the warning.
throws:
  org.xml.sax.SAXException - when finished logging.



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.