com.change_vision.jude.api.inf
Class AstahAPI

com.change_vision.jude.api.inf.AstahAPI

public abstract class AstahAPI

Class to access Astah's features by Astah API.


Field Summary
private static SingletonFactory<AstahAPI> factory
           
 
Method Summary
static AstahAPI getAstahAPI()
          Create AstahAPI.
static AstahAPI getAstahAPI(ClassLoader classLoader)
          Create AstahAPI.
abstract  ProjectAccessor getProjectAccessor()
          get the accessor to operate Astah project.
abstract  SystemPropertyAccessor getSystemPropertyAccessor()
          get the accessor to read and write Astah's system property.
abstract  IViewManager getViewManager()
          Get IViewManager.
 

Field Detail

factory

private static SingletonFactory<AstahAPI> factory
Method Detail

getAstahAPI

public static AstahAPI getAstahAPI()
Create AstahAPI.
Only one AstahAPI can be created.

Returns:
AstahAPI
Throws:
ClassNotFoundException - Invalid Class Path

getAstahAPI

public static AstahAPI getAstahAPI(ClassLoader classLoader)
Create AstahAPI.
Only one AstahAPI can be created.

Parameters:
classLoader - ClassLoader
Returns:
URLConnectionFactory
Throws:
ClassNotFoundException - Invalid Class Path

getSystemPropertyAccessor

public abstract SystemPropertyAccessor getSystemPropertyAccessor()
get the accessor to read and write Astah's system property.

Returns:
SystemPropertyaccessor

getProjectAccessor

public abstract ProjectAccessor getProjectAccessor()
get the accessor to operate Astah project.

Returns:
ProjectAccessor

getViewManager

public abstract IViewManager getViewManager()
Get IViewManager.

Returns:
The object that implements IViewManager
Throws:
InvalidUsingException - InvalidUsingException occurs.