VdexReload 1.1.3 API

uk.ac.reload.editor
Class ReloadEditorDocumentHandler

java.lang.Object
  extended byuk.ac.reload.moonunit.IMSDocumentHandler
      extended byuk.ac.reload.editor.ReloadEditorDocumentHandler
All Implemented Interfaces:
MoonUnitConstants

public final class ReloadEditorDocumentHandler
extends IMSDocumentHandler

The Reload Editor Document/Editor opening routines


Field Summary
static java.io.File fileDefaultCPProfile
           
static java.io.File fileDefaultMDProfile
           
static java.io.File fileDefaultSCORMProfile
           
static java.io.File fileDefaultVXProfile
           
static java.io.File fileHelperSS
           
static java.io.File fileProfileVX_FLAT
           
static java.io.File fileProfileVX_GLOSSARY
           
static java.io.File fileProfileVX_HIERARCHICAL
           
static java.io.File fileProfileVX_LAX
           
static java.io.File fileProfileVX_THESAURUS
           
static java.io.File fileSchemaCP1_1_2
           
static java.io.File fileSchemaCP1_1_3
           
static java.io.File fileSchemaMD1_2_1
           
static java.io.File fileSchemaMD1_2_2
           
static java.io.File fileSchemaSCORM1_2_IMCP1_1_2
           
static java.io.File fileSchemaSCORM1_2_IMCP1_1_3
           
static java.io.File fileSchemaSS1_0
           
static java.io.File fileSchemaVX_FLAT_1_0_0
           
static java.io.File fileSchemaVX_GLOSSARY_1_0_0
           
static java.io.File fileSchemaVX_HIERARCHICAL_1_0_0
           
static java.io.File fileSchemaVX_LAX_1_0_0
           
static java.io.File fileSchemaVX_THESAURUS_1_0_0
           
static java.io.File fileVocabSS
           
static java.io.File folderCPHelper
           
static java.io.File folderCPProfile
           
static java.io.File folderCPSchemahelper
           
static java.io.File folderCPVocab
           
static java.io.File folderMDHelper
           
static java.io.File folderMDOtherVocab
           
static java.io.File folderMDProfile
           
static java.io.File folderMDSchemahelper
           
static java.io.File folderMDVdexVocab
           
static java.io.File folderMDVocab
           
static java.io.File folderMDZthesVocab
           
static java.io.File folderSCORMHelper
           
static java.io.File folderSCORMProfile
           
static java.io.File folderSCORMSchemahelper
           
static java.io.File folderSCORMVocab
           
static java.io.File folderSSHelper
           
static java.io.File folderSSSchemahelper
           
static java.io.File folderSSVocab
           
static java.io.File folderStylesheets
           
static java.io.File folderVXHelper
           
static java.io.File folderVXProfile
           
static java.io.File folderVXSchemahelper
           
static java.io.File folderVXVocab
           
static java.io.File HELPERFOLDER
          Helper root Folder
static java.io.File SCHEMAMODELFOLDER
          Schema model Folder
static java.io.File SCHEMAROOTFOLDER
          Schema root Folder
static java.io.File SCHEMASHIPPEDFOLDER
          Schema shipped Folder
static java.io.File TERM_METADATA_STYLESHEET
           
static java.io.File VDEX_BROWSER_STYLESHEET
           
static java.io.File VDEX_METADATA_STYLESHEET
           
static java.io.File VDEX_TO_ENTRIES_STYLESHEET
           
static java.io.File VDEX_TO_KEYWORDS_STYLESHEET
           
static java.io.File VDEX_TO_TEMP_STYLESHEET
           
static java.io.File VDEX_TO_ZTHES_STYLESHEET
           
static java.io.File ZTHES_TO_VDEX_STYLESHEET
           
 
Fields inherited from class uk.ac.reload.moonunit.IMSDocumentHandler
ADLCP_120_112, ADLCP_120_113, ADLCP_130, ADLCP_NAMESPACE_12, ADLCP_NAMESPACE_13, ADLCP_NAMESPACE_PREFIX, ADLCP_NAMESPACE_URI_12, ADLCP_NAMESPACE_URI_13, ADLCP_NAMESPACE_URIS, BOGUS_NAMESPACE_MAPPING, IMSCP_111, IMSCP_112, IMSCP_113, IMSCP_NAMESPACE_PREFIX, IMSCP_NAMESPACE_URI_111A, IMSCP_NAMESPACE_URI_111B, IMSCP_NAMESPACE_URI_111C, IMSCP_NAMESPACE_URI_112, IMSCP_NAMESPACE_URI_112A, IMSCP_NAMESPACE_URI_113, IMSCP_NAMESPACE_URI_113A, IMSCP_NAMESPACE_URIS, IMSLD_100, IMSLD_100A, IMSLD_100B, IMSLD_100C, IMSLD_NAMESPACE_PREFIX, IMSLD_NAMESPACE_URI_10, IMSLD_NAMESPACE_URIS, IMSMD_110, IMSMD_120, IMSMD_121, IMSMD_122, IMSMD_NAMESPACE_PREFIX, IMSMD_NAMESPACE_URI_11, IMSMD_NAMESPACE_URI_112, IMSMD_NAMESPACE_URI_121, IMSMD_NAMESPACE_URI_121A, IMSMD_NAMESPACE_URI_122, IMSMD_NAMESPACE_URI_12A, IMSMD_NAMESPACE_URI_12B, IMSMD_NAMESPACE_URI_12C, IMSMD_NAMESPACE_URIS, IMSSS_100, IMSSS_NAMESPACE_PREFIX, IMSSS_NAMESPACE_URI_10, IMSSS_NAMESPACE_URIS, IMSVX_000, IMSVX_100, IMSVX_FLAT_000, IMSVX_FLAT_100, IMSVX_GLOSSARY_000, IMSVX_GLOSSARY_100, IMSVX_HIERARCHICAL_000, IMSVX_HIERARCHICAL_100, IMSVX_LAX_000, IMSVX_LAX_100, IMSVX_NAMESPACE_PREFIX, IMSVX_NAMESPACE_URI_000, IMSVX_NAMESPACE_URI_100, IMSVX_NAMESPACE_URIS, IMSVX_THESAURUS_000, IMSVX_THESAURUS_100, MANIFEST_NAME, XSI_Namespace, XSI_NamespaceOLD, XSI_SchemaLocation
 
Fields inherited from interface uk.ac.reload.moonunit.MoonUnitConstants
DEBUG
 
Constructor Summary
ReloadEditorDocumentHandler()
           
 
Method Summary
static java.io.File askManifestFileOpen(java.awt.Component parent)
          Ask for a file to open - xml or archive files
static java.io.File askNewContentPackageFolder(java.lang.String title)
          Ask for a New CP Project Folder
static void exportOtherVocabulary()
          Dialogue routine to allow user to export a vdex vocabulary as another vocabulary
static void exportZthesVocabulary()
          Dialogue routine to allow user to export a vdex vocabulary as Zthes
static java.io.File getVXSchemaProfileFile(java.lang.String schemaFileName)
          Get a Schema Profile File
static void importOtherVocabulary()
          Dialogue routine to allow user to import other vocabulary as Vdex
static void importZthesVocabulary()
          Dialogue routine to allow user to import a new Zthes vocabulary as Vdex
protected static void launchEditor(ReloadInternalFrame editorWindow)
          Launch and Show an Editor Window later in the Event queue
static ContentPackageEditor launchNewContentPackageEditor()
          New Content Package and Editor
static MetadataEditorFrame launchNewMetadataEditor()
          New Metadata Standalone Editor with New blank Document
static SCORM1_2PackageEditor launchNewSCORM1_2PackageEditor()
          Brand new SCORM Package and Editor
static VocabularyEditorFrame launchNewVocabularyEditor()
          New Vocabulary Standalone Editor with New blank Document
static void openFile(java.awt.Component parent)
          Ask and Open a file, determine what it is, load it, get the SchemaController and open an appropriate Editor
static void openFile(java.awt.Component parent, java.io.File file)
          Open a file, determine what it is, load it, get the SchemaController and open an appropriate Editor
static ReloadDocument openFile(java.io.File file)
          Load the given file, get the SchemaController and create the ReloadDocument, the Editor is not launched
static void openFile2(java.io.File file)
          Load the given file, get the SchemaController and open an appropriate Editor
protected static void showWarningMessage(java.lang.String msg)
          Warn the user that we can't cope with an old version
static java.io.File unzipContentPackage(java.io.File zipFile, java.io.File targetFolder, ReloadProgressMonitor progressMonitor)
          Ask to Unzip a Content Package Archive File
 
Methods inherited from class uk.ac.reload.moonunit.IMSDocumentHandler
containsManifest, correctAdditionalNamespace, correctAdditionalNamespaces, correctLomElement, getCorrectRootNamespace, getDocumentNamespace, getDocumentNamespace, getSchemaLocation, getSchemaProfileVersion, getSchemaVersion, getSchemaVersionFromNamespace, isAcceptedMetadataNamespaceURI, replaceNamespaces
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCHEMAROOTFOLDER

public static java.io.File SCHEMAROOTFOLDER
Schema root Folder


SCHEMASHIPPEDFOLDER

public static java.io.File SCHEMASHIPPEDFOLDER
Schema shipped Folder


SCHEMAMODELFOLDER

public static java.io.File SCHEMAMODELFOLDER
Schema model Folder


HELPERFOLDER

public static java.io.File HELPERFOLDER
Helper root Folder


fileSchemaMD1_2_1

public static java.io.File fileSchemaMD1_2_1

fileSchemaMD1_2_2

public static java.io.File fileSchemaMD1_2_2

folderMDHelper

public static java.io.File folderMDHelper

folderMDProfile

public static java.io.File folderMDProfile

fileDefaultMDProfile

public static java.io.File fileDefaultMDProfile

folderMDSchemahelper

public static java.io.File folderMDSchemahelper

folderMDVocab

public static java.io.File folderMDVocab

fileSchemaVX_LAX_1_0_0

public static java.io.File fileSchemaVX_LAX_1_0_0

fileSchemaVX_FLAT_1_0_0

public static java.io.File fileSchemaVX_FLAT_1_0_0

fileSchemaVX_HIERARCHICAL_1_0_0

public static java.io.File fileSchemaVX_HIERARCHICAL_1_0_0

fileSchemaVX_GLOSSARY_1_0_0

public static java.io.File fileSchemaVX_GLOSSARY_1_0_0

fileSchemaVX_THESAURUS_1_0_0

public static java.io.File fileSchemaVX_THESAURUS_1_0_0

folderVXHelper

public static java.io.File folderVXHelper

folderVXProfile

public static java.io.File folderVXProfile

fileDefaultVXProfile

public static java.io.File fileDefaultVXProfile

fileProfileVX_LAX

public static java.io.File fileProfileVX_LAX

fileProfileVX_FLAT

public static java.io.File fileProfileVX_FLAT

fileProfileVX_HIERARCHICAL

public static java.io.File fileProfileVX_HIERARCHICAL

fileProfileVX_GLOSSARY

public static java.io.File fileProfileVX_GLOSSARY

fileProfileVX_THESAURUS

public static java.io.File fileProfileVX_THESAURUS

folderVXSchemahelper

public static java.io.File folderVXSchemahelper

folderVXVocab

public static java.io.File folderVXVocab

folderMDVdexVocab

public static java.io.File folderMDVdexVocab

folderMDZthesVocab

public static java.io.File folderMDZthesVocab

folderMDOtherVocab

public static java.io.File folderMDOtherVocab

folderStylesheets

public static java.io.File folderStylesheets

VDEX_BROWSER_STYLESHEET

public static java.io.File VDEX_BROWSER_STYLESHEET

ZTHES_TO_VDEX_STYLESHEET

public static java.io.File ZTHES_TO_VDEX_STYLESHEET

VDEX_TO_ZTHES_STYLESHEET

public static java.io.File VDEX_TO_ZTHES_STYLESHEET

VDEX_TO_TEMP_STYLESHEET

public static java.io.File VDEX_TO_TEMP_STYLESHEET

VDEX_TO_KEYWORDS_STYLESHEET

public static java.io.File VDEX_TO_KEYWORDS_STYLESHEET

VDEX_TO_ENTRIES_STYLESHEET

public static java.io.File VDEX_TO_ENTRIES_STYLESHEET

VDEX_METADATA_STYLESHEET

public static java.io.File VDEX_METADATA_STYLESHEET

TERM_METADATA_STYLESHEET

public static java.io.File TERM_METADATA_STYLESHEET

fileSchemaCP1_1_2

public static java.io.File fileSchemaCP1_1_2

fileSchemaCP1_1_3

public static java.io.File fileSchemaCP1_1_3

folderCPHelper

public static java.io.File folderCPHelper

folderCPProfile

public static java.io.File folderCPProfile

fileDefaultCPProfile

public static java.io.File fileDefaultCPProfile

folderCPSchemahelper

public static java.io.File folderCPSchemahelper

folderCPVocab

public static java.io.File folderCPVocab

fileSchemaSCORM1_2_IMCP1_1_2

public static java.io.File fileSchemaSCORM1_2_IMCP1_1_2

fileSchemaSCORM1_2_IMCP1_1_3

public static java.io.File fileSchemaSCORM1_2_IMCP1_1_3

folderSCORMHelper

public static java.io.File folderSCORMHelper

folderSCORMProfile

public static java.io.File folderSCORMProfile

fileDefaultSCORMProfile

public static java.io.File fileDefaultSCORMProfile

folderSCORMSchemahelper

public static java.io.File folderSCORMSchemahelper

folderSCORMVocab

public static java.io.File folderSCORMVocab

fileSchemaSS1_0

public static java.io.File fileSchemaSS1_0

folderSSHelper

public static java.io.File folderSSHelper

folderSSSchemahelper

public static java.io.File folderSSSchemahelper

fileHelperSS

public static java.io.File fileHelperSS

folderSSVocab

public static java.io.File folderSSVocab

fileVocabSS

public static java.io.File fileVocabSS
Constructor Detail

ReloadEditorDocumentHandler

public ReloadEditorDocumentHandler()
Method Detail

openFile

public static void openFile(java.awt.Component parent)
Ask and Open a file, determine what it is, load it, get the SchemaController and open an appropriate Editor


openFile

public static void openFile(java.awt.Component parent,
                            java.io.File file)
Open a file, determine what it is, load it, get the SchemaController and open an appropriate Editor


openFile

public static ReloadDocument openFile(java.io.File file)
Load the given file, get the SchemaController and create the ReloadDocument, the Editor is not launched

Parameters:
file - the XML file
Returns:
the created ReloadDocument instance of the file

openFile2

public static void openFile2(java.io.File file)
Load the given file, get the SchemaController and open an appropriate Editor

Parameters:
file - the file to open

getVXSchemaProfileFile

public static java.io.File getVXSchemaProfileFile(java.lang.String schemaFileName)
Get a Schema Profile File

Parameters:
schemaFileName - the name of the schema file for which we want the profile file
Returns:
a Schema Profile File

launchNewMetadataEditor

public static MetadataEditorFrame launchNewMetadataEditor()
New Metadata Standalone Editor with New blank Document

Returns:
the MetadataEditorFrame with new blank document

launchNewVocabularyEditor

public static VocabularyEditorFrame launchNewVocabularyEditor()
New Vocabulary Standalone Editor with New blank Document

Returns:
the VocabularyEditorFrame with new blank document

launchNewContentPackageEditor

public static ContentPackageEditor launchNewContentPackageEditor()
New Content Package and Editor

Returns:
the ContentPackageEditor with new content package

launchNewSCORM1_2PackageEditor

public static SCORM1_2PackageEditor launchNewSCORM1_2PackageEditor()
Brand new SCORM Package and Editor

Returns:
the SCORM1_2PackageEditor with new SCORM package

launchEditor

protected static void launchEditor(ReloadInternalFrame editorWindow)
Launch and Show an Editor Window later in the Event queue

Parameters:
editorWindow - the ReloadInternalFrame to be launched

askManifestFileOpen

public static java.io.File askManifestFileOpen(java.awt.Component parent)
Ask for a file to open - xml or archive files

Returns:
the xml or archive file

unzipContentPackage

public static java.io.File unzipContentPackage(java.io.File zipFile,
                                               java.io.File targetFolder,
                                               ReloadProgressMonitor progressMonitor)
                                        throws ReloadEditorException
Ask to Unzip a Content Package Archive File

Parameters:
zipFile - the content package archive file
Returns:
the Unzipped imsmanifest.xml file or null
Throws:
ReloadEditorException

askNewContentPackageFolder

public static java.io.File askNewContentPackageFolder(java.lang.String title)
Ask for a New CP Project Folder

Parameters:
title - the title displayed in the dialog's border; a null value results in an empty title
Returns:
the Folder or null if cancelled or folder not valid

showWarningMessage

protected static void showWarningMessage(java.lang.String msg)
Warn the user that we can't cope with an old version

Parameters:
msg - the warning message to be displayed

importZthesVocabulary

public static void importZthesVocabulary()
Dialogue routine to allow user to import a new Zthes vocabulary as Vdex


importOtherVocabulary

public static void importOtherVocabulary()
Dialogue routine to allow user to import other vocabulary as Vdex


exportZthesVocabulary

public static void exportZthesVocabulary()
Dialogue routine to allow user to export a vdex vocabulary as Zthes


exportOtherVocabulary

public static void exportOtherVocabulary()
Dialogue routine to allow user to export a vdex vocabulary as another vocabulary


VdexReload 1.1.3 API