org.mevenide.context
Class JDomProjectUnmarshaller

java.lang.Object
  extended byorg.mevenide.context.JDomProjectUnmarshaller
All Implemented Interfaces:
IProjectUnmarshaller

public class JDomProjectUnmarshaller
extends java.lang.Object
implements IProjectUnmarshaller

Version:
$Id: JDomProjectUnmarshaller.java,v 1.1 2004/05/09 20:16:15
Author:
Gilles Dodinet

Constructor Summary
JDomProjectUnmarshaller()
           
 
Method Summary
 org.apache.maven.project.Project generateProject(org.jdom.Element projectElement)
           
 org.apache.maven.project.Project parse(java.io.File file)
          get the Maven's project instance from the file.
 org.apache.maven.project.Project parse(java.io.Reader reader)
          Deprecated. no way to create a reasonable entity resolver.
 org.jdom.Element parseRootElement(java.io.File file)
          parse the doc of the file passed in.
 org.jdom.Element parseRootElement(java.io.Reader reader)
          parse the doc from the reader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDomProjectUnmarshaller

public JDomProjectUnmarshaller()
Method Detail

parse

public org.apache.maven.project.Project parse(java.io.Reader reader)
                                       throws java.lang.Exception
Deprecated. no way to create a reasonable entity resolver.

Specified by:
parse in interface IProjectUnmarshaller
Throws:
java.lang.Exception

parse

public org.apache.maven.project.Project parse(java.io.File file)
                                       throws java.lang.Exception
get the Maven's project instance from the file. Please not that it will not include the values from any parent files defined in

Throws:
java.lang.Exception

parseRootElement

public org.jdom.Element parseRootElement(java.io.File file)
                                  throws java.lang.Exception
parse the doc of the file passed in. External enitities are expanded.

Throws:
java.lang.Exception

parseRootElement

public org.jdom.Element parseRootElement(java.io.Reader reader)
                                  throws java.lang.Exception
parse the doc from the reader. Please note that expanding entities is not possible this way. Use only if you don't have a physical file. (eg. for project.xmls in jars..)

Throws:
java.lang.Exception

generateProject

public org.apache.maven.project.Project generateProject(org.jdom.Element projectElement)


Copyright © 2003-2005 The Codehaus. All Rights Reserved.