|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.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 using
Constructor Summary | |
XmlFileLoader()
|
|
XmlFileLoader(boolean validateDTDs)
|
Method Summary | |
java.lang.ClassLoader |
getClassLoader()
Gets the class loader |
static boolean |
getDefaultValidateDTDs()
|
org.w3c.dom.Document |
getDocument(java.io.InputStream is,
java.lang.String inPath)
Parses the xml document in is and created the 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 |
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 |
load()
load() This method creates the ApplicationMetaData. |
void |
setClassLoader(java.lang.ClassLoader 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 getMetaData()
public void setClassLoader(java.lang.ClassLoader cl)
ClassLoader
- cl - class loaderpublic java.lang.ClassLoader getClassLoader()
public boolean getValidateDTDs()
public void setValidateDTDs(boolean validate)
public ApplicationMetaData load() throws java.lang.Exception
public static org.w3c.dom.Document getDocument(java.net.URL url) throws DeploymentException
public static org.w3c.dom.Document getDocument(java.net.URL url, boolean validateDTDs) throws DeploymentException
url,
- the URL from which the xml doc is to be obtained.public org.w3c.dom.Document getDocumentFromURL(java.net.URL url) throws DeploymentException
url,
- the URL from which the xml doc is to be obtained.public org.w3c.dom.Document getDocument(java.io.InputStream is, java.lang.String inPath) throws DeploymentException
is,
- the InputStream container the xml descriptor to parseinPath,
- the path information for the xml doc. This is used for
only for error reporting.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |