org.freecompany.imp.index
Class Magic

java.lang.Object
  extended by org.freecompany.imp.index.Generator
      extended by org.freecompany.imp.index.Magic

public class Magic
extends Generator


Field Summary
protected  javax.xml.xpath.XPath path
           
 
Fields inherited from class org.freecompany.imp.index.Generator
index, name, project, source
 
Constructor Summary
Magic()
           
 
Method Summary
protected  void addType(java.lang.String type, java.lang.StringBuffer buffer)
           
protected  void buildBuffer(java.lang.StringBuffer buffer, java.lang.String value)
           
protected  void buildDependency(java.lang.String key, java.lang.String types, org.w3c.dom.Node element)
           
protected  void buildIndex(org.w3c.dom.Element element)
           
protected  void buildPackagingType(org.w3c.dom.Element element)
           
protected  void buildProject(java.lang.String directory)
           
protected  void buildTypes(java.lang.StringBuffer buffer, boolean compile, boolean test, boolean run)
           
protected  void generate(org.w3c.dom.Document document)
          Builds the current element.
 
Methods inherited from class org.freecompany.imp.index.Generator
execute, setIndex, setName, setProject, setSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

path

protected javax.xml.xpath.XPath path
Constructor Detail

Magic

public Magic()
Method Detail

generate

protected void generate(org.w3c.dom.Document document)
                 throws java.lang.Exception
Builds the current element. If this element is found to correspond to the key of the root element, then we act to build all subelements.

Specified by:
generate in class Generator
Throws:
java.lang.Exception

buildProject

protected void buildProject(java.lang.String directory)
                     throws java.lang.Exception
Throws:
java.lang.Exception

buildIndex

protected void buildIndex(org.w3c.dom.Element element)
                   throws java.lang.Exception
Throws:
java.lang.Exception

buildPackagingType

protected void buildPackagingType(org.w3c.dom.Element element)
                           throws java.lang.Exception
Throws:
java.lang.Exception

addType

protected void addType(java.lang.String type,
                       java.lang.StringBuffer buffer)

buildDependency

protected void buildDependency(java.lang.String key,
                               java.lang.String types,
                               org.w3c.dom.Node element)
                        throws java.lang.Exception
Throws:
java.lang.Exception

buildTypes

protected void buildTypes(java.lang.StringBuffer buffer,
                          boolean compile,
                          boolean test,
                          boolean run)

buildBuffer

protected void buildBuffer(java.lang.StringBuffer buffer,
                           java.lang.String value)