Java Doc for XmlFileLoader.java in  » EJB-Server-JBoss-4.2.1 » server » org » jboss » metadata » 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 » EJB Server JBoss 4.2.1 » server » org.jboss.metadata 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jboss.metadata.XmlFileLoader

XmlFileLoader
public class XmlFileLoader (Code)
XmlFileLoader class is used to read ejb-jar.xml, standardjboss.xml, jboss.xml files, process them using DTDs and create ApplicationMetaData object for future use. It also provides the local entity resolver for the JBoss specific DTDs.
author:
   Bill Burke
author:
   Sebastien Alborini
author:
   Wolfgang Werner
author:
   Darius Davidavicius
author:
   Scott Stark
author:
   Christoph G. Jung.
version:
   $Revision: 57209 $



Constructor Summary
public  XmlFileLoader()
    
public  XmlFileLoader(boolean validateDTDs)
    

Method Summary
public  ClassLoadergetClassLoader()
    
public static  booleangetDefaultValidateDTDs()
    
public static  DocumentgetDocument(URL url)
    
public static  DocumentgetDocument(URL url, boolean validateDTDs)
     Get the xml file from the URL and parse it into a Document object. Calls new XmlFileLoader(validateDTDs).getDocumentFromURL(url);
Parameters:
  url - the URL from which the xml doc is to be obtained.
public  DocumentgetDocument(InputStream is, String inPath)
     Parses the xml document in is to create a DOM Document.
public  DocumentgetDocument(InputSource is, String inPath)
     Parses the xml document in is to create a DOM Document.
public  DocumentgetDocumentFromURL(URL url)
     Get the xml file from the URL and parse it into a Document object. Calls getDocument(new InputSource(url.openStream()), url.getPath()) with the InputSource.SystemId set to url.toExternalForm().
Parameters:
  url - the URL from which the xml doc is to be obtained.
public  ApplicationMetaDatagetMetaData()
    
public  booleangetValidateDTDs()
     Get the flag indicating that ejb-jar.dtd, jboss.dtd & jboss-web.dtd conforming documents should be validated against the DTD.
public  ApplicationMetaDataload(URL alternativeDD)
     Creates the ApplicationMetaData.
public  voidsetClassLoader(URLClassLoader cl)
    
public static  voidsetDefaultValidateDTDs(boolean validate)
    
public  voidsetValidateDTDs(boolean validate)
     Set the flag indicating that ejb-jar.dtd, jboss.dtd & jboss-web.dtd conforming documents should be validated against the DTD.


Constructor Detail
XmlFileLoader
public XmlFileLoader()(Code)



XmlFileLoader
public XmlFileLoader(boolean validateDTDs)(Code)




Method Detail
getClassLoader
public ClassLoader getClassLoader()(Code)
Gets the class loader ClassLoader - the class loader



getDefaultValidateDTDs
public static boolean getDefaultValidateDTDs()(Code)



getDocument
public static Document getDocument(URL url) throws DeploymentException(Code)
Invokes getDocument(url, defaultValidateDTDs)



getDocument
public static Document getDocument(URL url, boolean validateDTDs) throws DeploymentException(Code)
Get the xml file from the URL and parse it into a Document object. Calls new XmlFileLoader(validateDTDs).getDocumentFromURL(url);
Parameters:
  url - the URL from which the xml doc is to be obtained. Document



getDocument
public Document getDocument(InputStream is, String inPath) throws DeploymentException(Code)
Parses the xml document in is to create a DOM Document. DTD validation is enabled if validateDTDs is true and we install an EntityResolver and ErrorHandler to resolve J2EE DTDs and handle errors. We also create an InputSource for the InputStream and set the SystemId URI to the inPath value. This allows relative entity references to be resolved against the inPath URI. The is argument will be closed.
Parameters:
  is - the InputStream containing the xml descriptor to parse
Parameters:
  inPath - the path information for the xml doc. This is used as theInputSource SystemId URI for resolving relative entity references. Document



getDocument
public Document getDocument(InputSource is, String inPath) throws DeploymentException(Code)
Parses the xml document in is to create a DOM Document. DTD validation is enabled if validateDTDs is true and we install an EntityResolver and ErrorHandler to resolve J2EE DTDs and handle errors. We also create an InputSource for the InputStream and set the SystemId URI to the inPath value. This allows relative entity references to be resolved against the inPath URI.
Parameters:
  is - the InputSource containing the xml descriptor to parse
Parameters:
  inPath - the path information for the xml doc. This is used foronly for error reporting. Document



getDocumentFromURL
public Document getDocumentFromURL(URL url) throws DeploymentException(Code)
Get the xml file from the URL and parse it into a Document object. Calls getDocument(new InputSource(url.openStream()), url.getPath()) with the InputSource.SystemId set to url.toExternalForm().
Parameters:
  url - the URL from which the xml doc is to be obtained. Document



getMetaData
public ApplicationMetaData getMetaData()(Code)



getValidateDTDs
public boolean getValidateDTDs()(Code)
Get the flag indicating that ejb-jar.dtd, jboss.dtd & jboss-web.dtd conforming documents should be validated against the DTD.



load
public ApplicationMetaData load(URL alternativeDD) throws Exception(Code)
Creates the ApplicationMetaData. The configuration files are found in the classLoader when not explicitly given as the alternativeDD. The default jboss.xml and jaws.xml files are always read first, then we override the defaults if the user provides them
Parameters:
  alternativeDD - a URL to the alternative DD given in application.xml



setClassLoader
public void setClassLoader(URLClassLoader cl)(Code)
Set the class loader



setDefaultValidateDTDs
public static void setDefaultValidateDTDs(boolean validate)(Code)



setValidateDTDs
public void setValidateDTDs(boolean validate)(Code)
Set the flag indicating that ejb-jar.dtd, jboss.dtd & jboss-web.dtd conforming documents should be validated against the DTD.



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.