|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ImportInterface
An interface which identifies an ArgoUML plug-in which imports source language modules and creates UML model elements in our model.
This interface is GUI independent and must not have any dependency on Swing/AWT or SWT.
| Nested Class Summary | |
|---|---|
static class |
ImportInterface.ImportException
Import subsystem exception to wrap any nested exceptions with when thrown. |
| Field Summary | |
|---|---|
static java.lang.String |
SOURCE_MODIFIERS_TAG
The name of the TagDefinition which types the TaggedValues used store information about a ModelElement which can't be stored in the model. |
static java.lang.String |
SOURCE_PATH_TAG
The name of the TagDefinition which types the TaggedValues used store the source path of a ModelElement. |
| Fields inherited from interface org.argouml.moduleloader.ModuleInterface |
|---|
AUTHOR, DESCRIPTION, DOWNLOADSITE, VERSION |
| Method Summary | |
|---|---|
java.util.List<SettingsTypes.Setting> |
getImportSettings()
Returns a list with objects that represent settings for this import. |
org.argouml.util.SuffixFilter[] |
getSuffixFilters()
Provides an array of suffix filters for the module. |
boolean |
isParseable(java.io.File file)
Tells if the object is parseable or not. |
java.util.Collection |
parseFiles(org.argouml.kernel.Project p,
java.util.Collection<java.io.File> files,
ImportSettings settings,
org.argouml.taskmgmt.ProgressMonitor monitor)
Parse a collection of source files. |
| Methods inherited from interface org.argouml.moduleloader.ModuleInterface |
|---|
disable, enable, getInfo, getName |
| Field Detail |
|---|
static final java.lang.String SOURCE_PATH_TAG
static final java.lang.String SOURCE_MODIFIERS_TAG
| Method Detail |
|---|
org.argouml.util.SuffixFilter[] getSuffixFilters()
boolean isParseable(java.io.File file)
file - object to be tested.
java.util.Collection parseFiles(org.argouml.kernel.Project p,
java.util.Collection<java.io.File> files,
ImportSettings settings,
org.argouml.taskmgmt.ProgressMonitor monitor)
throws ImportInterface.ImportException
If the import module needs multiple parsing passes to resolve identifiers or for other reasons it needs to implement that internally. In previous versions of ArgoUML the multipass behavior was implemented both in the calling code and in some import modules. It is now solely the responsibility of the module.
p - the current projectfiles - Collection of files to be parsedsettings - Use this object to get common settings.monitor - ProgressMonitor which will be updated as files are parsed and
checked for user requests to cancel. It is mandatory for the
module to both update progress and check for cancel requests.
ImportInterface.ImportException - if an error occurs, this will contain the nested exception
that was originally thrownjava.util.List<SettingsTypes.Setting> getImportSettings()
The caller must determine what interface an object is implementing iterating the interfaces SettingsTypes.*
This is done this way to eliminate the need to use GUI elements. The settings can easily be mapped into any GUI elements, this way we are independent from the type of GUI.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Cookbook |