|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.ucsb.nceas.morpho.plugins.datapackagewizard.DataPackageWizardPlugin
Main controller class for creating and starting a Data Package Wizard Plugin
Field Summary |
Fields inherited from interface edu.ucsb.nceas.morpho.plugins.DataPackageWizardInterface |
ACCESS, ACCESS_PAGE, ATTRIBUTE_PAGE, CITATION_PAGE, CODE_DEFINITION, CODE_IMPORT_PAGE, CODE_IMPORT_SUMMARY, CUSTOM_UNIT_PAGE, DATA_FORMAT, DATA_LOCATION, ENTITY, GENERAL, GEOGRAPHIC, GEOGRAPHIC_PAGE, INTRODUCTION, KEYWORDS, KEYWORDS_PAGE, METHODS, METHODS_PAGE, PARTY_ASSOCIATED, PARTY_ASSOCIATED_PAGE, PARTY_CITATION_AUTHOR, PARTY_CONTACT, PARTY_CONTACT_PAGE, PARTY_CREATOR, PARTY_CREATOR_PAGE, PARTY_INTRO, PARTY_PERSONNEL, PROJECT, SUMMARY, TAXONOMIC, TEMPORAL, TEMPORAL_PAGE, TEXT_IMPORT_WIZARD, USAGE_RIGHTS |
Constructor Summary | |
DataPackageWizardPlugin()
Constructor |
Method Summary | |
static boolean |
deleteExistingAndAddPageDataToDOM(AbstractDataPackage adp,
java.util.List pageList,
java.lang.String rootXPath,
java.lang.String subtreeGenericName)
deletes all existing subtrees of name subtreeGenericName, then inserts data for each AbstractUIPage in pageList into the passed AbstractDataPackage |
AbstractUIPage |
getPage(java.lang.String pageID)
returns the WizardPage with the corresponding pageID provided |
void |
initialize(Morpho morpho)
Required by PluginInterface; called automatically at runtime |
static void |
main(java.lang.String[] args)
|
void |
startCodeDefImportWizard(DataPackageWizardListener listener)
method to start the Code Definitions Import wizard |
void |
startEntityWizard(DataPackageWizardListener listener)
Required by DataPackageWizardInterface: method to start the Entity wizard |
void |
startPackageWizard(DataPackageWizardListener listener)
Required by DataPackageWizardInterface: method to start the Package wizard |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DataPackageWizardPlugin()
Method Detail |
public void initialize(Morpho morpho)
initialize
in interface PluginInterface
morpho
- a reference to the Morpho
public void startPackageWizard(DataPackageWizardListener listener)
startPackageWizard
in interface DataPackageWizardInterface
listener
- the DataPackageWizardListener
to be called
back when the Package Wizard has finishedpublic void startEntityWizard(DataPackageWizardListener listener)
startEntityWizard
in interface DataPackageWizardInterface
listener
- the DataPackageWizardListener
to be called
back when the Entity Wizard has finishedpublic void startCodeDefImportWizard(DataPackageWizardListener listener)
startCodeDefImportWizard
in interface DataPackageWizardInterface
listener
- the DataPackageWizardListener
to be called
back when the Wizard has finishedpublic AbstractUIPage getPage(java.lang.String pageID)
getPage
in interface DataPackageWizardInterface
pageID
- the String pageID for the WizardPage to be returned
public static void main(java.lang.String[] args)
public static boolean deleteExistingAndAddPageDataToDOM(AbstractDataPackage adp, java.util.List pageList, java.lang.String rootXPath, java.lang.String subtreeGenericName)
adp
- the AbstractDataPackage where the data will be insertedpageList
- List of AbstractUIPages that are the source of the data, in
the order that they should be added to the DOMrootXPath
- the String that represents the "root" of the XPath to the
content of each AbstractUIPage, NOT INCLUDING PREDICATES. example - if the
list contains "Party" widgets, being used for "creator" entries, then
xPathRoot = "/creator/"subtreeGenericName
- String - eg "contact", "project" etc
(@see lib/eml200KeymapConfig.xml)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |