org.jtool.jxplatform.repository
Class JxRepository

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

public class JxRepository
extends java.lang.Object

Stores the repositories of projects within the workspace.

Author:
Katsuhisa Maruyama

Method Summary
static void close()
          Closes project's repositories and resource manager.
static void delete()
          Deletes project's repositories.
static JxProjectRepository[] getAllRepositories()
          Returns all repositories in the whole of workspace.
static JxBinaryFileRepository getBinaryFileRepository()
          Returns a repository for binary (class and jar) files.
 boolean getConvertBinaryFiles()
          Requests if the converter generates XML documents from binary files.
static JxProjectRepository getRepository(org.eclipse.core.resources.IProject project)
          Returns a repository of a given or new project.
static JxProjectRepository getRepository(java.lang.String projectname)
          Returns a repository of a given project.
 boolean getResolveBindings()
          Tests if the converter adds binding information.
 void setConvertBinaryFiles(boolean convert)
          Requests that the converter generates XML documents from binary files.
 void setResolveBindings(boolean bindings)
          Requests that the converter should add binding information.
static void start()
          Initializes the resource change manager.
static void update()
          Updates the repositories of all projects existing in the workspace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

start

public static void start()
Initializes the resource change manager.


delete

public static void delete()
Deletes project's repositories.


close

public static void close()
Closes project's repositories and resource manager.


update

public static void update()
Updates the repositories of all projects existing in the workspace.


getAllRepositories

public static JxProjectRepository[] getAllRepositories()
Returns all repositories in the whole of workspace.

Returns:
All the repositories in the whole of workspace.

getRepository

public static JxProjectRepository getRepository(org.eclipse.core.resources.IProject project)
Returns a repository of a given or new project.

Parameters:
project - A project.
Returns:
The project's repository.

getRepository

public static JxProjectRepository getRepository(java.lang.String projectname)
Returns a repository of a given project.

Parameters:
projectname - A project name.
Returns:
The project's repository, or null if there is no project found.

getBinaryFileRepository

public static JxBinaryFileRepository getBinaryFileRepository()
Returns a repository for binary (class and jar) files.

Returns:
The repository for binary files.

setResolveBindings

public void setResolveBindings(boolean bindings)
Requests that the converter should add binding information.

Parameters:
bindings - true if bindings are wanted.

getResolveBindings

public boolean getResolveBindings()
Tests if the converter adds binding information.

Returns:
true if bindings are wanted, or false if bindings are not of interest.

setConvertBinaryFiles

public void setConvertBinaryFiles(boolean convert)
Requests that the converter generates XML documents from binary files.

Parameters:
convert - true if generation are wanted.

getConvertBinaryFiles

public boolean getConvertBinaryFiles()
Requests if the converter generates XML documents from binary files.

Returns:
true if generation is wanted, or false if generation is not of interest.