|
||||||||||
PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.metadata.XmlFileLoader
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.
Constructor Summary | |
XmlFileLoader()
|
|
XmlFileLoader(boolean validateDTDs)
|
Method Summary | |
java.lang.ClassLoader |
getClassLoader()
Gets the class loader |
static boolean |
getDefaultValidateDTDs()
|
org.w3c.dom.Document |
getDocument(org.xml.sax.InputSource is,
java.lang.String inPath)
Parses the xml document in is to create a DOM Document. |
org.w3c.dom.Document |
getDocument(java.io.InputStream is,
java.lang.String inPath)
Parses the xml document in is to create a DOM Document. |
static org.w3c.dom.Document |
getDocument(java.net.URL url)
Invokes getDocument(url, defaultValidateDTDs) |
static org.w3c.dom.Document |
getDocument(java.net.URL url,
boolean validateDTDs)
Get the xml file from the URL and parse it into a Document object. |
org.w3c.dom.Document |
getDocumentFromURL(java.net.URL url)
Get the xml file from the URL and parse it into a Document object. |
ApplicationMetaData (src) |
getMetaData()
|
boolean |
getValidateDTDs()
Get the flag indicating that ejb-jar.dtd, jboss.dtd & jboss-web.dtd conforming documents should be validated against the DTD. |
ApplicationMetaData (src) |
load(java.net.URL alternativeDD)
Creates the ApplicationMetaData. |
void |
setClassLoader(java.net.URLClassLoader cl)
Set the class loader |
static void |
setDefaultValidateDTDs(boolean validate)
|
void |
setValidateDTDs(boolean validate)
Set the flag indicating that ejb-jar.dtd, jboss.dtd & jboss-web.dtd conforming documents should be validated against the DTD. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XmlFileLoader()
public XmlFileLoader(boolean validateDTDs)
Method Detail |
public static boolean getDefaultValidateDTDs()
public static void setDefaultValidateDTDs(boolean validate)
public ApplicationMetaData (src) getMetaData()
public void setClassLoader(java.net.URLClassLoader cl)
public java.lang.ClassLoader getClassLoader()
public boolean getValidateDTDs()
public void setValidateDTDs(boolean validate)
public ApplicationMetaData (src) load(java.net.URL alternativeDD) throws java.lang.Exception
alternativeDD
- a URL to the alternative DD given in application.xml
java.lang.Exception
public static org.w3c.dom.Document getDocument(java.net.URL url) throws DeploymentException (src)
DeploymentException (src)
public static org.w3c.dom.Document getDocument(java.net.URL url, boolean validateDTDs) throws DeploymentException (src)
url
- the URL from which the xml doc is to be obtained.
DeploymentException (src)
public org.w3c.dom.Document getDocumentFromURL(java.net.URL url) throws DeploymentException (src)
url
- the URL from which the xml doc is to be obtained.
DeploymentException (src)
public org.w3c.dom.Document getDocument(java.io.InputStream is, java.lang.String inPath) throws DeploymentException (src)
is
- the InputStream containing the xml descriptor to parseinPath
- the path information for the xml doc. This is used as the
InputSource SystemId URI for resolving relative entity references.
DeploymentException (src)
public org.w3c.dom.Document getDocument(org.xml.sax.InputSource is, java.lang.String inPath) throws DeploymentException (src)
is
- the InputSource containing the xml descriptor to parseinPath
- the path information for the xml doc. This is used for
only for error reporting.
DeploymentException (src)
|
||||||||||
PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |