|
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.schema.ReloadVocabularyList
A Reload Vocabulary List - A String list and default value
Field Summary | |
protected static java.lang.String |
DEFAULT_VDEX_VOCAB
Vdex vocabulary file with a default list name |
protected java.lang.String[] |
defaultList
The Default String list, initialised to an Empty list |
protected java.lang.String |
defaultListName
The default vocabulary list name if we are using Vdex files |
protected java.lang.String |
defaultValue
The default value |
protected DomPath |
domPath
The path mapping |
protected static java.lang.String |
INTERNAL_LISTNAME
|
protected static java.lang.String |
LANG_LISTNAME
|
protected java.lang.String[] |
list
The Actual String list, initialised to an Empty list |
protected java.lang.String |
listName
The list name. |
protected java.lang.String |
purposeValue
The LOM Element lom/classification/purpose/value/langstring Value. |
protected static java.lang.String[] |
TF_LIST
True / False vocabulary list |
protected static java.lang.String |
TRUEFALSE_LISTNAME
|
protected static java.lang.String |
VDEX_VOCAB
Vdex vocabulary file without a default list name |
protected static java.lang.String[] |
YESNO_LIST
Yes / No list |
protected static java.lang.String |
YESNO_LISTNAME
|
Constructor Summary | |
ReloadVocabularyList()
Default constructor |
|
ReloadVocabularyList(DomPath domPath,
java.lang.String listName)
Constructor |
Method Summary | |
void |
addReloadVocabularyListener(ReloadVocabularyListener listener)
Add a ReloadVocabularyListener |
void |
fireElementChanged(ReloadVocabularyListenerEvent event)
Tell our listeners that we have changed the vocabulary list |
java.lang.String |
getDefaultValue()
Get the default value of this vocab list |
DomPath |
getDomPath()
Get the DomPath |
java.lang.String[] |
getList()
Get the Vocab list. |
java.lang.String[] |
getListFromVdexSource(java.lang.String vocabSource,
java.lang.String elementName)
Get the vocabulary list items from a Vdex file. |
java.lang.String |
getListName()
Get the Name of the List |
boolean |
isLangList()
Determine if this list is a language list. |
void |
removeReloadVocabularyListener(ReloadVocabularyListener listener)
Remove a ReloadVocabularyListener |
void |
setDefaultList(java.lang.String[] list)
Set the Default Vocabulary List |
void |
setDefaultListName(java.lang.String defaultListName)
Set the default listName for this vocab list |
void |
setDefaultValue(java.lang.String defaultValue)
Set the default value for this vocab list |
void |
setList(java.lang.String[] list)
Set the Vocabulary List |
void |
setListUsingVocabSource(java.lang.Object source,
java.lang.String vocabSource,
org.jdom.Element valueElement)
Set the vocabulary list depending on the vocabulary source value. |
void |
updateTaxonPathSourceListUsingPurposeValue(java.lang.Object source,
java.lang.String purposeValue)
Update the LOM lom/classification/taxonpath/source/langstring element's vocabulary list depending on the value of the Purpose element lom/classification/purpose/value/langstring. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static java.lang.String INTERNAL_LISTNAME
protected static java.lang.String LANG_LISTNAME
protected static java.lang.String YESNO_LISTNAME
protected static java.lang.String TRUEFALSE_LISTNAME
protected static java.lang.String[] YESNO_LIST
protected static java.lang.String[] TF_LIST
protected static java.lang.String VDEX_VOCAB
protected static java.lang.String DEFAULT_VDEX_VOCAB
protected DomPath domPath
protected java.lang.String listName
protected java.lang.String defaultListName
protected java.lang.String[] list
protected java.lang.String[] defaultList
protected java.lang.String defaultValue
protected java.lang.String purposeValue
Constructor Detail |
public ReloadVocabularyList()
public ReloadVocabularyList(DomPath domPath, java.lang.String listName)
domPath
- the node path bound to this vocabulary listlistName
- the list nameMethod Detail |
public DomPath getDomPath()
public void setList(java.lang.String[] list)
list
- the vocabulary listpublic void setDefaultList(java.lang.String[] list)
list
- the default vocabulary listpublic java.lang.String[] getList()
public java.lang.String getListName()
public void setDefaultListName(java.lang.String defaultListName)
defaultListName
- the default list name to be given for this vocab listpublic boolean isLangList()
public void setDefaultValue(java.lang.String defaultValue)
defaultValue
- the default value to be set for this vocab listpublic java.lang.String getDefaultValue()
public void setListUsingVocabSource(java.lang.Object source, java.lang.String vocabSource, org.jdom.Element valueElement)
source
- who is telling us thisvocabSource
- the vocabulary source valuevalueElement
- the element that will be bound to this vocabulary listpublic void updateTaxonPathSourceListUsingPurposeValue(java.lang.Object source, java.lang.String purposeValue)
source
- who is telling us thispurposeValue
- the value of the Purpose elementpublic java.lang.String[] getListFromVdexSource(java.lang.String vocabSource, java.lang.String elementName)
vocabSource
- the Vdex vocabulary name or identifierelementName
- the Vdex vocabulary element who's value becomes an item of this vocabulary list
public void addReloadVocabularyListener(ReloadVocabularyListener listener)
listener
- The ReloadVocabularyListenerpublic void removeReloadVocabularyListener(ReloadVocabularyListener listener)
listener
- The ReloadVocabularyListenerpublic void fireElementChanged(ReloadVocabularyListenerEvent event)
event
- the ReloadVocabularyListenerEvent
|
VdexReload 1.1.3 API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |