org.codehaus.aspectwerkz.definition
Class DocumentParser

java.lang.Object
  extended byorg.codehaus.aspectwerkz.definition.DocumentParser

public class DocumentParser
extends java.lang.Object

Parses the XML definition file using dom4j.

Author:
Jonas Bonér

Constructor Summary
DocumentParser()
           
 
Method Summary
static java.util.List parse(org.dom4j.Document document)
          Parses the definition DOM document.
static void parseExcludePackageElements(org.dom4j.Element root, AspectWerkzDefinition definition, java.lang.String packageName)
          Parses the exclude elements.
static void parseIncludePackageElements(org.dom4j.Element root, AspectWerkzDefinition definition, java.lang.String packageName)
          Parses the include elements.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentParser

public DocumentParser()
Method Detail

parse

public static java.util.List parse(org.dom4j.Document document)
Parses the definition DOM document.

Parameters:
document - the defintion as a document
Returns:
the definitions

parseIncludePackageElements

public static void parseIncludePackageElements(org.dom4j.Element root,
                                               AspectWerkzDefinition definition,
                                               java.lang.String packageName)
Parses the include elements.

Parameters:
root - the root element
definition - the definition object
packageName - the package name

parseExcludePackageElements

public static void parseExcludePackageElements(org.dom4j.Element root,
                                               AspectWerkzDefinition definition,
                                               java.lang.String packageName)
Parses the exclude elements.

Parameters:
root - the root element
definition - the definition object
packageName - the package name


Copyright (c) 2002-2004 The AspectWerkz Team. All Rights Reserved.