|
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.vocabulary.Vocabulary
The Vocabulary 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 | |
Vocabulary(boolean isStandalone)
Constructor |
|
Vocabulary(java.io.File file,
org.jdom.Document doc,
VocabularySchemaController schemaController)
Constructor for a Standalone vocabulary File that exists |
Method Summary | |
void |
addRootDeclarations(org.jdom.Element root)
Add namespace and other attribute decalarations to the root element |
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 |
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 Root Element name |
boolean |
isStandalone()
Return whether we are a standalone file |
void |
newDocument(VocabularySchemaController controller)
Setup the JDOM Document with Namespaces and root element |
void |
removeElementsAndAttributesBySchema(java.lang.Object obj)
Remove elements/attributes from the JDOM document which are not in the ReloadSchema |
void |
updateDocument(VocabularySchemaController controller)
Update the JDOM Document with the new Schema 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 Vocabulary(boolean isStandalone)
isStandalone
- whether we are standalone file or attachedpublic Vocabulary(java.io.File file, org.jdom.Document doc, VocabularySchemaController schemaController)
file
- the XML file
doc the JDOM document of the XML file
schemaController the ReloadSchemaController corresponding to the schema of the XML fileMethod Detail |
public void newDocument(VocabularySchemaController controller)
controller
- the VocabularySchemaController used for obtaining the ReloadSchemapublic java.lang.String getTargetRootElementName()
getTargetRootElementName
in class ReloadSchemaDocument
public java.lang.String[] getComments()
getComments
in class ReloadSchemaDocument
public void updateDocument(VocabularySchemaController controller)
controller
- the VocabularySchemaController used for obtaining the ReloadSchemapublic void removeElementsAndAttributesBySchema(java.lang.Object obj)
obj
- either a JDOM Element or Attributepublic void addRootDeclarations(org.jdom.Element root)
root
- the root elementpublic 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 |