|
||||||||||
| 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.
| Field Summary | |
static java.lang.String |
MODEL_TYPE_ATTRIB
|
static java.lang.String |
MODEL_TYPE_XML
|
| Constructor Summary | |
XmlParser()
|
|
| Method Summary | |
static org.dom4j.Document |
createDocument(java.io.InputStream stream)
Creates a DOM document. |
static org.dom4j.Document |
createDocument(java.net.URL url)
Creates a DOM document. |
static org.dom4j.Document |
mergeDocuments(org.dom4j.Document document1,
org.dom4j.Document document2)
Merges two DOM documents. |
static java.util.List |
parse(org.dom4j.Document document)
Parses the definition DOM document. |
static java.util.List |
parse(java.io.File definitionFile)
Parses the XML definition file. |
static java.util.List |
parse(java.io.File definitionFile,
boolean isDirty)
Parses the XML definition file, only if it has been updated. |
static java.util.List |
parse(java.io.InputStream stream)
Parses the XML definition file retrieved from an input stream. |
static java.util.List |
parseNoCache(java.net.URL url)
Parses the XML definition file not using the cache. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String MODEL_TYPE_ATTRIB
public static final java.lang.String MODEL_TYPE_XML
| Constructor Detail |
public XmlParser()
| Method Detail |
public static java.util.List parse(java.io.File definitionFile)
definitionFile - the definition file
public static java.util.List parse(java.io.File definitionFile,
boolean isDirty)
definitionFile - the definition fileisDirty - flag to mark the the definition as updated or not
public static java.util.List parse(java.io.InputStream stream)
stream - the input stream containing the document
public static java.util.List parseNoCache(java.net.URL url)
url - the URL to the definition file
public static java.util.List parse(org.dom4j.Document document)
document - the defintion as a document
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(java.net.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(java.io.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 | |||||||||