|
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.ReloadVocabulary
The Reload Vocabulary - Defines a Vocabulary mapping between Elements/Attributes and a Vocabulary List. The actual Vocabulary is an XML File that defines the mappings.
Field Summary | |
protected org.jdom.Document |
_docVocab
The JDOM Document that is created from the XML File |
protected java.io.File |
_fileVocab
The XML Vocabulary File. |
protected java.util.Vector |
_lists
The Vocabulary lists |
Method Summary | |
static ReloadVocabulary |
getReloadVocabulary(java.io.File fileVocab)
Factory method for getting a static re-usable ReloadVocabulary |
protected java.lang.String |
getRootAttributeValue(java.lang.String attName)
Get the value of a root attribute |
org.jdom.Document |
getVocabularyDocument()
Get the Vocabulary JDOM Document |
ReloadVocabularyList |
getVocabularyList(DomPath nodePath)
Get a Vocabulary List for a Given Element or Attribute. |
ReloadVocabularyList |
getVocabularyList(ReloadSchemaNode schemaNode)
Get a Vocabulary List for a Given Element or Attribute. |
java.lang.String |
getVocabularyName()
Get the name of the vocabulary. |
void |
setDefaultLanguage(java.lang.String lang)
Set the default language of format "en", "fr" etc |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected org.jdom.Document _docVocab
protected java.io.File _fileVocab
protected java.util.Vector _lists
Method Detail |
public static ReloadVocabulary getReloadVocabulary(java.io.File fileVocab) throws ReloadSchemaException
fileVocab
- The file of the Vocabulary file to get
ReloadSchemaException
public org.jdom.Document getVocabularyDocument()
public java.lang.String getVocabularyName()
public ReloadVocabularyList getVocabularyList(ReloadSchemaNode schemaNode)
schemaNode
- The Element or Attribute
public ReloadVocabularyList getVocabularyList(DomPath nodePath)
nodePath
- the domPath of the element
public void setDefaultLanguage(java.lang.String lang)
lang
- the default languageprotected java.lang.String getRootAttributeValue(java.lang.String attName)
|
VdexReload 1.1.3 API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |