|
|||||||||||
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)
|
static boolean |
populatePartiesList(CustomList partiesCustomList,
java.util.List partiesOrderedMapList,
java.lang.String partyXPathRoot,
java.lang.String pageType)
Given a UI CustomList, populates it from the nvps in the List of OrderedMap objects passed as partiesOrderedMapList |
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 |
static void |
updateDOMFromPartiesList(CustomList partiesCustomList,
java.lang.String rootXPath,
java.lang.String subtreeGenericName,
java.lang.String pageType)
Given a CustomList containing Party listings, updates the DOM to contain those listings |
static void |
updatePartiesListFromDOM(CustomList partiesCustomList,
java.lang.String rootXPath,
java.lang.String subtreeGenericName,
java.lang.String pageType)
Given a CustomList containing Party listings, updates that list to contain the parties in the DOM |
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)
public static void updateDOMFromPartiesList(CustomList partiesCustomList, java.lang.String rootXPath, java.lang.String subtreeGenericName, java.lang.String pageType)
partiesCustomList
- CustomList the UI CustomList containing the party objects
to 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)pageType
- the type of page object to use, as defined in the
DataPackageWizardInterface class - eg:
DataPackageWizardInterface.PARTY_CREATOR
DataPackageWizardInterface.PARTY_PERSONNEL
etc...public static void updatePartiesListFromDOM(CustomList partiesCustomList, java.lang.String rootXPath, java.lang.String subtreeGenericName, java.lang.String pageType)
partiesCustomList
- CustomList the UI CustomList containing the party objects
to 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)public static boolean populatePartiesList(CustomList partiesCustomList, java.util.List partiesOrderedMapList, java.lang.String partyXPathRoot, java.lang.String pageType)
partiesCustomList
- CustomList the CustomList of parties to be updatedpartiesOrderedMapList
- List the list OrderedMaps containing party
nvps to be made into entries on the parties listpartyXPathRoot
- String - the xpath relative to the subtree root we're
dealing with - so for example, if we're in dataset, contact's path would be:
/contact
or if we're dealing with project, the path would be
/project/personnel etc
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |