|
VdexReload 1.1.3 API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.reload.moonunit.dom.ReloadDocument
uk.ac.reload.moonunit.dom.ReloadSchemaDocument
uk.ac.reload.editor.metadata.Metadata
The Metadata Class
Nested Class Summary |
Nested classes inherited from class uk.ac.reload.moonunit.dom.ReloadSchemaDocument |
ReloadSchemaDocument.UndoableAddAction, ReloadSchemaDocument.UndoableCopyAction, ReloadSchemaDocument.UndoableCutAction, ReloadSchemaDocument.UndoableDeleteAction, ReloadSchemaDocument.UndoableMoveAction, ReloadSchemaDocument.UndoablePasteAction |
Field Summary | |
protected boolean |
_isStandalone
Whether we are a standalone file or attached |
Fields inherited from class uk.ac.reload.moonunit.dom.ReloadSchemaDocument |
_controller, _undoHandler |
Fields inherited from class uk.ac.reload.moonunit.dom.ReloadDocument |
_dirty, _doc, _file |
Constructor Summary | |
Metadata(boolean isStandalone)
Constructor for blank MD |
|
Metadata(org.jdom.Element mdElement,
MetadataSchemaController schemaController)
Constructor for a non-standalone MD that has existing MD Element |
|
Metadata(java.io.File file,
org.jdom.Document doc,
MetadataSchemaController schemaController)
Constructor for a Standalone MD File that exists |
Method Summary | |
boolean |
canCopyElement(org.jdom.Element element)
Whether we can copy and element or not |
boolean |
canCutElement(org.jdom.Element element,
ReloadSchemaElement schemaElement)
Whether we can cut an element or not |
boolean |
canPasteFromClipboard(org.jdom.Element element)
Whether we can paste an element or not |
void |
exportMetadata(java.io.File file)
Export the MD from a CP or Vocabulary node to a standalone file |
java.lang.String[] |
getComments()
Get the comments to add to the XML document |
org.jdom.Namespace |
getSchemaNamespace()
Get the appropriate Namespace |
org.jdom.Namespace |
getSchemaNamespaceEmbedded()
Get the embedded Namespace |
org.jdom.Namespace |
getSchemaNamespaceStandalone()
Get the standalone Namespace |
java.lang.String |
getTargetRootElementName()
Get the Target Root element name |
void |
importMetadata(org.jdom.Document doc,
MetadataSchemaController controller)
Set the Metadata to an Imported Metadata Document |
boolean |
isStandalone()
Return whether we are a standalone file |
void |
newDocument(MetadataSchemaController controller)
Setup the JDOM Document with Namespaces and root element |
Methods inherited from class uk.ac.reload.moonunit.dom.ReloadDocument |
getDocument, getFile, getRootElement, isDirty, isDocumentNamespace, isMemberOfSameDocument, loadDocument, saveAsDocument, setDirty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean _isStandalone
Constructor Detail |
public Metadata(boolean isStandalone)
isStandalone
- whether we are standalone file or attachedpublic Metadata(java.io.File file, org.jdom.Document doc, MetadataSchemaController schemaController)
file
- the XML file
doc the JDOM document of the XML file
schemaController the ReloadSchemaController corresponding to the schema of the XML filepublic Metadata(org.jdom.Element mdElement, MetadataSchemaController schemaController)
mdElement
- the metadata elementschemaController
- the ReloadSchemaController corresponding to the schema of the XML fileMethod Detail |
public void newDocument(MetadataSchemaController controller)
controller
- the MetadataSchemaController used for obtaining the ReloadSchemapublic java.lang.String getTargetRootElementName()
ReloadSchemaDocument
getTargetRootElementName
in class ReloadSchemaDocument
public java.lang.String[] getComments()
ReloadSchemaDocument
getComments
in class ReloadSchemaDocument
public void importMetadata(org.jdom.Document doc, MetadataSchemaController controller) throws ReloadEditorException
doc
- the imported metadata document
controller the MetadataSchemaController
ReloadEditorException
public void exportMetadata(java.io.File file) throws ReloadEditorException
file
- the metadata XML file
ReloadEditorException
public boolean isStandalone()
public org.jdom.Namespace getSchemaNamespace()
getSchemaNamespace
in class ReloadSchemaDocument
public org.jdom.Namespace getSchemaNamespaceStandalone()
public org.jdom.Namespace getSchemaNamespaceEmbedded()
public boolean canCopyElement(org.jdom.Element element)
canCopyElement
in class ReloadSchemaDocument
element
- the element concerned
public boolean canCutElement(org.jdom.Element element, ReloadSchemaElement schemaElement)
canCutElement
in class ReloadSchemaDocument
element
- the element concernedschemaElement
- the ReloadSchemaElement
public boolean canPasteFromClipboard(org.jdom.Element element)
canPasteFromClipboard
in class ReloadSchemaDocument
element
- the element concerned
|
VdexReload 1.1.3 API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |