|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.change_vision.jude.api.inf.project.ProjectAccessor
public ProjectAccessor
Interface to Operate astah* project.
| Field Summary | |
|---|---|
static int |
REFERENCE_PROJECT_STATUS_LATEST
|
static int |
REFERENCE_PROJECT_STATUS_NEED_UPDATE
|
static int |
REFERENCE_PROJECT_STATUS_NOT_FOUND
|
| Method Summary | |
|---|---|
abstract void |
addEntityEditListener(EntityEditListener listener)
Add EntityEditListener. |
abstract void |
addProjectEventListener()
Add ProjectEventListener. |
abstract void |
addReferenceProject(String path)
Add Reference Project in astah* Project. |
abstract void |
changeReferenceProject(String fromPath,
String toPath)
Change Reference Project Path in astah* Project. |
abstract void |
clearReferenceProject(String path)
Clear Reference Project in astah* Project. |
abstract void |
close()
Close astah* Project. |
abstract void |
create(String projectPath,
boolean useDefinedTaggedValues)
Create astah* Project. |
abstract void |
create(String projectPath)
Create astah* Project without loading the user defined tagged values. |
abstract void |
create()
Create Astah project without loading the user defined tagged values. |
abstract void |
create(String projectPath,
String templatePath,
boolean useDefinedTaggedValue)
Create astah* Project. |
abstract void |
create(String projectPath,
String templatePath)
Create astah* Project without loading the user defined tagged values. |
abstract void |
easyCompare(String path)
Easy compare. |
abstract void |
easyMerge(String path,
boolean isKeepBase)
Merge a project into the current project. |
abstract void |
exportXMI(String fileName)
Save astah* Project as parameter's xmi name. |
abstract INamedElement[] |
findElements(Class elementKind,
String name)
Search elements in an astah* model by element kind and element name. |
abstract INamedElement[] |
findElements(Class elementKind)
Search elements in an astah* model by element kind. |
abstract INamedElement[] |
findElements(ModelFinder picker)
Search elements in an astah* model by ModelPicker. |
abstract int |
getAstahAPIModelVersion()
Obtain the model version of project created by astah* API |
abstract String |
getAstahAPIVersion()
Obtain the version of astah* API |
abstract String |
getAstahEdition()
Obtain the edition of astah* you currently use |
abstract String |
getAstahInstallPath()
Obtain where the astah* installation path |
abstract int |
getAstahModelVersion()
Obtain the model version of project created by this astah* |
abstract String |
getAstahVersion()
Obtain the version of astah* you currently use |
abstract IDiagramEditorFactory |
getDiagramEditorFactory()
Get IDiagramEditorFactory. |
abstract IEntity |
getEntity(String id)
Returns IEntity that has special ID. |
abstract IModelEditorFactory |
getModelEditorFactory()
Get IModelEditorFactory. |
abstract IModel |
getProject()
Get Model of project accessor. |
abstract String |
getProjectPath()
Obtain where the astah* project is saved |
abstract String[] |
getReferenceProjectPaths()
Get Reference Project Paths in astah* Project. |
abstract int |
getReferenceProjectStatus(String path)
Get Reference Project Status in astah* Project. |
abstract ITransactionManager |
getTransactionManager()
Get ITransactionManager. |
abstract IViewManager |
getViewManager()
Get IViewManager. |
abstract boolean |
hasProject()
Get whether a project is open or not. |
abstract boolean |
hasSameElement(String name)
hasSameElement |
abstract boolean |
hasSameElement(String name,
Class clazz)
hasSameElement |
abstract void |
importXMI(String projectName)
Open astah* Project's XMI. |
abstract void |
importXMI(String projectName,
boolean isIgnoreModelVersion)
Open astah* Project's XMI. |
abstract boolean |
isProjectModified()
isProjectModified |
abstract void |
open(String projectName)
Open astah* Project. |
abstract void |
open(String projectName,
boolean isIgnoreModelVersion)
Open astah* Project. |
abstract void |
open(String projectName,
boolean isIgnoreModelVersion,
boolean lockMode,
boolean allowReadOnly)
Open astah* Project. |
abstract void |
open(InputStream in)
Open astah* Project. |
abstract void |
open(InputStream in,
boolean isIgnoreModelVersion)
Open astah* Project. |
abstract void |
removeEntityEditListener(EntityEditListener listener)
Remove EntityEditListener. |
abstract void |
removeProjectEventListener()
Remove ProjectEventListener. |
abstract void |
removeReferenceProject(String path)
Delete Reference Project in astah* Project. |
abstract void |
save()
Save astah* Project. |
abstract void |
saveAs(String projectName)
Save astah* Project as parameter's name. |
abstract void |
updateReferenceProject(String path)
Update Reference Project in astah* Project. |
abstract void |
validateProject()
Find invalid models in astah* project |
| Field Detail |
|---|
static final int REFERENCE_PROJECT_STATUS_LATEST
static final int REFERENCE_PROJECT_STATUS_NEED_UPDATE
static final int REFERENCE_PROJECT_STATUS_NOT_FOUND
| Method Detail |
|---|
abstract void open(String projectName)
projectName - Project Name
LicenseNotFoundException - License cannot be found
ProjectNotFoundException - Project cannot be found
NonCompatibleException - Old Model Version (The version of API is older than the version of astah* this project has been last edited with)
ClassNotFoundException - Cannot read some models
IOException - input/output error
ProjectLockedException - Project file has been locked
abstract void open(String projectName,
boolean isIgnoreModelVersion)
projectName - Project NameisIgnoreModelVersion - Select if you need a Model Version Check
LicenseNotFoundException - License cannot be found
ProjectNotFoundException - Project cannot be found
NonCompatibleException - Old Model Version (The version of API is older than the version of astah* this project has been last edited with)
ClassNotFoundException - Cannot read some models
IOException - input/output error
ProjectLockedException - Project file has been locked
abstract void open(String projectName,
boolean isIgnoreModelVersion,
boolean lockMode,
boolean allowReadOnly)
projectName - Project NameisIgnoreModelVersion - Select if you need a Model Version ChecklockMode - Select if you lock a project fileallowReadOnly - Select if you open a project in ReadOnly mode when it has been locked.
LicenseNotFoundException - License cannot be found
ProjectNotFoundException - Project cannot be found
NonCompatibleException - Old Model Version (The version of API is older than the version of astah* this project has been last edited with)
ClassNotFoundException - Cannot read some models
IOException - input/output error
ProjectLockedException - Project file has been lockedabstract void saveAs(String projectName)
fileName - File Name
LicenseNotFoundException - License cannot be found
ProjectNotFoundException - Project cannot be found
IOException - input/output error
ProjectLockedException - Project file has been lockedabstract void importXMI(String projectName)
projectName - Project Name
LicenseNotFoundException - License cannot be found
ProjectNotFoundException - Project cannot be found
NonCompatibleException - Old Model Version (The version of API is older than the version of astah* this project has been last edited with)
ClassNotFoundException - Cannot read some models
IOException - input/output error
InvalidUsingException - community version and UML version cannot use XMI API.
abstract void importXMI(String projectName,
boolean isIgnoreModelVersion)
projectName - Project NameisIgnoreModelVersion - Select if you need a Model Version Check
LicenseNotFoundException - License cannot be found
ProjectNotFoundException - Project cannot be found
NonCompatibleException - Old Model Version (The version of API is older than the version of astah* this project has been last edited with)
ClassNotFoundException - Cannot read some models
IOException - input/output error
InvalidUsingException - community version and UML version cannot use XMI API.abstract void exportXMI(String fileName)
fileName - File Name
LicenseNotFoundException - License cannot be found
ProjectNotFoundException - Project cannot be found
IOException - input/output error
InvalidUsingException - community version and UML version cannot use XMI API.abstract void open(InputStream in)
in - InputStream
LicenseNotFoundException - License cannot be found
ProjectNotFoundException - Project cannot be found
NonCompatibleException - Old Model Version (The version of API is older than the version of astah* this project has been last edited with)
ClassNotFoundException - Cannot read some models
IOException - input/output error
ProjectLockedException - Project file has been locked
abstract void open(InputStream in,
boolean isIgnoreModelVersion)
in - InputStreamisIgnoreModelVersion - Select if you need a Model Version Check
LicenseNotFoundException - License cannot be found
ProjectNotFoundException - Project cannot be found
NonCompatibleException - Old Model Version (The version of API is older than the version of astah* this project has been last edited with)
ClassNotFoundException - Cannot read some models
IOException - input/output errorabstract IModel getProject()
abstract boolean hasProject()
abstract void close()
abstract void create(String projectPath,
boolean useDefinedTaggedValues)
projectPath - Project PathuseDefinedTaggedValues - Set if you need to load the user defined tagged values as creating the project
IOException - input/output errorabstract void create(String projectPath)
projectPath - Project Path
IOException - input/output errorabstract void create()
IOException - input/output error
abstract void create(String projectPath,
String templatePath,
boolean useDefinedTaggedValue)
projectPath - Project PathtemplatePath - Template PathuseDefinedTaggedValues - Set if you need to load the user defined tagged values as creating the project
IOException - input/output error
ProjectNotFoundException - Project cannot be found
abstract void create(String projectPath,
String templatePath)
projectPath - Project PathtemplatePath - Template Path
IOException - input/output error
ProjectNotFoundException - Project cannot be foundabstract void save()
LicenseNotFoundException - License cannot be found
ProjectNotFoundException - Project cannot be found
IOException - input/output error
ProjectLockedException - Project has been lockedabstract void validateProject()
ProjectNotFoundException - Project doesn't exist
InvalidEditingException - Invalid models existabstract void addReferenceProject(String path)
path - Reference Project Path. Absolute/Relative Path can be specified.
ProjectNotFoundException - Project doesn't exist
InvalidEditingException - Invalid models exist
Keys:
ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in astah* community.
PARAMETER_ERROR_KEY - if a parameter is not set properly.
Values:
Error messages for exceptions.abstract void removeReferenceProject(String path)
path - Reference Project Path. Absolute/Relative Path can be specified.
ProjectNotFoundException - Project doesn't exist
InvalidEditingException - Invalid models exist
Keys:
ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in astah* community.
PARAMETER_ERROR_KEY - if a parameter is not set properly.
Values:
Error messages for exceptions.abstract void updateReferenceProject(String path)
path - Reference Project Path. Absolute/Relative Path can be specified.
ProjectNotFoundException - Project doesn't exist
InvalidEditingException - Invalid models exist
Keys:
ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in astah* community.
PARAMETER_ERROR_KEY - if a parameter is not set properly.
Values:
Error messages for exceptions.abstract void clearReferenceProject(String path)
path - Reference Project Path. Absolute/Relative Path can be specified.
ProjectNotFoundException - Project doesn't exist
InvalidEditingException - Invalid models exist
Keys:
ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in astah* community.
PARAMETER_ERROR_KEY - if a parameter is not set properly.
Values:
Error messages for exceptions.
abstract void changeReferenceProject(String fromPath,
String toPath)
fromPath - Original Reference Project Path. Absolute/Relative Path can be specified.toPath - New Reference Project Path
Absolute/Relative Path can be specified.
ProjectNotFoundException - Project doesn't exist
InvalidEditingException - Invalid models exist
Keys:
ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in astah* community.
PARAMETER_ERROR_KEY - if a parameter is not set properly.
Values:
Error messages for exceptions.abstract String[] getReferenceProjectPaths()
ProjectNotFoundException - Project doesn't existabstract int getReferenceProjectStatus(String path)
path - Reference Project Path. Absolute/Relative Path can be specified.
ProjectAccessor.REFERENCE_PROJECT_STATUS_LATEST:Latest ProjectAccessor.REFERENCE_PROJECT_STATUS_NEED_UPDATE :Need Update ProjectAccessor.REFERENCE_PROJECT_STATUS_NOT_FOUND :Not Found
ProjectNotFoundException - Project doesn't exist
abstract void easyMerge(String path,
boolean isKeepBase)
path - Reference Project Path. Absolute/Relative Path can be specified.isKeepBase - When differences found, keep current or overwrite with reference.
ProjectNotFoundException - Project doesn't exist
InvalidEditingException - Invalid models exist
Keys:
ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in astah* community.
CAN_NOT_MERGE_IN_TRANSACTION_KEY - if a file is merged in transaction.
CAN_NOT_MERGE_WHEN_CURRENT_HAS_REFERENCE_PROJRCT_KEY - if a file is merged to the current project with reference models.
PARAMETER_ERROR_KEY - if a parameter is not set properly.
Values:
Error messages for exceptions.abstract ITransactionManager getTransactionManager()
abstract IModelEditorFactory getModelEditorFactory()
abstract IDiagramEditorFactory getDiagramEditorFactory()
abstract INamedElement[] findElements(Class elementKind,
String name)
elementKind - Element kind. API Class name is used for element kind, like IClass.name - Element name.If name is null,Search elements in an astah* model by element kind.
ProjectNotFoundException - Project doesn't existabstract INamedElement[] findElements(Class elementKind)
elementKind - Element kind. API Class name is used for element kind, like IClass.
ProjectNotFoundException - Project doesn't existabstract INamedElement[] findElements(ModelFinder picker)
ModelFinder - ModelFinder contains conditions searching models.Searching conditions should be implemented.
ProjectNotFoundException - Project doesn't existabstract String getAstahEdition()
abstract String getAstahVersion()
abstract String getProjectPath()
ProjectNotFoundException - Project cannot be foundabstract int getAstahModelVersion()
abstract String getAstahAPIVersion()
abstract int getAstahAPIModelVersion()
abstract IViewManager getViewManager()
abstract void addProjectEventListener()
listener - ProjectEventListenerabstract void removeProjectEventListener()
listener - ProjectEventListenerabstract void addEntityEditListener(EntityEditListener listener)
listener - EntityEditListenerabstract void removeEntityEditListener(EntityEditListener listener)
listener - EntityEditListenerabstract IEntity getEntity(String id)
id - ID string of the IEntity you'd like to search
abstract String getAstahInstallPath()
abstract void easyCompare(String path)
path - path
ProjectNotFoundException
InvalidEditingExceptionabstract boolean isProjectModified()
abstract boolean hasSameElement(String name)
name - Name.
abstract boolean hasSameElement(String name,
Class clazz)
name - Name.clazz - Class.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||