org.jtool.jxplatform.repository
Class JxProject

java.lang.Object
  extended byorg.jtool.jxplatform.repository.JxProject

public class JxProject
extends java.lang.Object

Stores information about a project.

Author:
Katsuhisa Maruyama

Field Summary
protected  JxProjectRepository repository
          The repository of this project.
 
Constructor Summary
protected JxProject()
          Creates a new, empty object.
  JxProject(JxProjectRepository repo)
          Creates a new object.
 
Method Summary
 org.w3c.dom.Document[] getDocuments()
          Obtains DOM document objects of all files stored in this project.
 java.lang.String getProjectDir()
          Returns the directory name of this project.
 java.lang.String getProjectName()
          Returns the name of this project.
 JxProjectRepository getRepository()
          Returns the repository of this project.
static JxProject newJxProject(org.w3c.dom.Document doc)
          Creates a project which contains a file corresponding to an XML document.
static JxProject newJxProject(org.w3c.dom.Element elem)
          Creates a project which contains a code fragment corresponding to an XML element.
static JxProject newJxProject(JxElement jelem)
          Creates a project which contains a wrapper of an XML element.
static JxProject newJxProject(java.lang.String name)
          Creates a project with a name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

repository

protected JxProjectRepository repository
The repository of this project.

Constructor Detail

JxProject

protected JxProject()
Creates a new, empty object.


JxProject

public JxProject(JxProjectRepository repo)
Creates a new object.

Method Detail

newJxProject

public static JxProject newJxProject(java.lang.String name)
Creates a project with a name.

Parameters:
name - A project name.
Returns:
The created project.

newJxProject

public static JxProject newJxProject(org.w3c.dom.Document doc)
Creates a project which contains a file corresponding to an XML document.

Parameters:
doc - An XML document.
Returns:
The created project.

newJxProject

public static JxProject newJxProject(org.w3c.dom.Element elem)
Creates a project which contains a code fragment corresponding to an XML element.

Parameters:
elem - An XML element.
Returns:
The created project.

newJxProject

public static JxProject newJxProject(JxElement jelem)
Creates a project which contains a wrapper of an XML element.

Parameters:
jelem - A wrapper of an XML element.
Returns:
The created project.

getRepository

public JxProjectRepository getRepository()
Returns the repository of this project.

Returns:
The repository of this project.

getProjectDir

public java.lang.String getProjectDir()
Returns the directory name of this project.

Returns:
The directory of this project.

getProjectName

public java.lang.String getProjectName()
Returns the name of this project.

Returns:
The name of this project.

getDocuments

public org.w3c.dom.Document[] getDocuments()
Obtains DOM document objects of all files stored in this project.

Returns:
The collection of DOM document objects.