|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.definition.XmlParser
Parses the XML definition file using dom4j.
Constructor Summary | |
XmlParser()
|
Method Summary | |
static org.dom4j.Document |
createDocument(InputStream stream)
Creates a DOM document. |
static org.dom4j.Document |
createDocument(URL url)
Creates a DOM document. |
static List |
getAspectClassNames(File definitionFile)
|
static List |
getAspectClassNames(InputStream stream)
|
static List |
getAspectClassNames(URL definitionURL)
|
static org.dom4j.Document |
mergeDocuments(org.dom4j.Document document1,
org.dom4j.Document document2)
Merges two DOM documents. |
static List |
parse(ClassLoader loader,
File definitionFile,
boolean isDirty)
Parses the XML definition file, only if it has been updated. |
static List |
parse(ClassLoader loader,
InputStream stream)
Parses the XML definition file retrieved from an input stream. |
static List |
parseNoCache(ClassLoader loader,
URL url)
Parses the XML definition file not using the cache. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XmlParser()
Method Detail |
public static List getAspectClassNames(File definitionFile)
definitionFile
- the definition file
public static List getAspectClassNames(URL definitionURL)
public static List getAspectClassNames(InputStream stream)
stream
- the input stream containing the document
public static List parse(ClassLoader loader, File definitionFile, boolean isDirty)
loader
- the current class loaderdefinitionFile
- the definition fileisDirty
- flag to mark the the definition as updated or not
public static List parse(ClassLoader loader, InputStream stream)
loader
- the current class loaderstream
- the input stream containing the document
public static List parseNoCache(ClassLoader loader, URL url)
loader
- the current class loaderurl
- the URL to the definition file
public static org.dom4j.Document mergeDocuments(org.dom4j.Document document1, org.dom4j.Document document2)
document1
- the first documentdocument2
- the second document
public static org.dom4j.Document createDocument(URL url) throws org.dom4j.DocumentException
url
- the URL to the file containing the XML
org.dom4j.DocumentException
org.dom4j.DocumentException
public static org.dom4j.Document createDocument(InputStream stream) throws org.dom4j.DocumentException
stream
- the stream containing the XML
org.dom4j.DocumentException
org.dom4j.DocumentException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |