|
|||||||||
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.
Method Summary | |
---|---|
abstract void |
addEntityEditListener(EntityEditListener listener)
Add EntityEditListener. |
abstract void |
addProjectEventListener()
Add ProjectEventListener. |
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 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 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 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 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 |
save()
Save astah* Project. |
abstract void |
saveAs(String projectName)
Save astah* Project as parameter's name. |
abstract void |
validateProject()
Find invalid models in astah* project |
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 lockedabstract 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 lockedabstract 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 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 lockedabstract 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 errorabstract 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 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 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 |