|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.vocab.MetadataVocabTermsGroups
public class MetadataVocabTermsGroups
Facilitates interface representation of metadata vocabulary.
Controlled vocabulary is stored in XML files and read into the hierarchical
class data structure via a SAX reader. Various methods are provided for
representing the vocabulary through a Web interface (HTML/Javascript) using
JSP scriptlet calls or custom tags (see org.dlese.dpc.vocab.tags
).
Methods that might be usefull outside of any particular UI are as follows:
Method descriptions often use the following terms:
The last two terms are often used in combination with the first two. For example, "Encoded field Id" refers to the unique system Id of a vocabulary field.
Most public methods take an initial parameter called "system", which is a period-seperated trio that corresponds to the system/interface/language attributes of the XML files. To retreive values associated with the english language version of the default DDS interface, for example, one would pass the string "dds.default.en-us".
Almost all of the public methods that produce lists for UI display take a parameter named "group". This is a colon-seperated identifier of the spot within the vocabulary hierarchy which is being requested for display. Passing "topic:geography" would return a representation of only the metadata entries that fall under the "geography" sub-heading in the "topic" category. The colon is not always necessary, however--passing simply "topic" will return a represenation of all entries in the "topic" category.
Field Summary | |
---|---|
protected VocabList |
vocab
|
MetadataVocabOPML |
vocabCompare
|
Constructor Summary | |
---|---|
MetadataVocabTermsGroups()
Constructor for the MetadataVocab object |
|
MetadataVocabTermsGroups(String sqlDriver,
String sqlURL,
String sqlUser,
String sqlPassword,
String vocabTextFile)
Constructor for the MetadataVocab object |
Method Summary | |
---|---|
void |
addError(String err)
Adds a feature to the Error attribute of the MetadataVocabOPML object |
void |
addMessage(String msg)
Adds a feature to the Message attribute of the MetadataVocabOPML object |
void |
characters(char[] ch,
int start,
int length)
(SAX) Element data (characters between tags) |
void |
charactersDefinition(char[] ch,
int start,
int length)
(SAX) Element data for definitions |
void |
charactersUI(char[] ch,
int start,
int length)
(SAX) Element data for UIs |
void |
doneLoading()
When all vocabs are loaded, generate the Lucene queries, register all current UI labels into the database, and close any database connection |
void |
endDocument()
(SAX) Invoked at the end of parsing. |
void |
endElement(String namespaceURI,
String localName,
String qName)
(SAX) Invoked upon closing tag of an XML element |
void |
endElementDefinition(String namespaceURI,
String localName,
String qName)
(SAX) End element for definitions |
void |
endElementUI(String namespaceURI,
String localName,
String qName)
(SAX) End element for UIs |
void |
endPrefixMapping(String prefix)
(SAX) Required by SAX, but not used here |
VocabNode |
findVocabNode(String system,
String fieldName,
String valueName)
Within a given system (system.interface.language), find the node that contains the given value for its 'name' attribute. |
ArrayList |
getCacheValuesInOrder(String system,
String group,
Map cache)
Given a cache (Map) of vocab values, this method returns a list of those values in the order that they are defined in their groups file. |
String |
getCurrentVersion(String metaFramework)
Gets the currentVersion attribute of the MetadataVocabTermsGroups object |
ArrayList |
getErrors()
Gets the errors attribute of the MetadataVocab object |
String |
getFieldSystemId(String field)
Gets the encoded field Id of the given metadata field |
boolean |
getFieldValueIdPairExists(String fieldId,
String valueId)
Does a vocabulary definition exist for the given encoded field/value Ids? |
String |
getFieldValueSystemId(String field,
String value)
Gets the encoded value Id of the given metadata field/value pair |
ArrayList |
getMessages()
Gets the messages attribute of the MetadataVocab object |
String |
getMetaFormatOfField(String field)
Gets the metaFormatOfField attribute of the MetadataVocabTermsGroups object |
String |
getMetaNameOfId(String system,
String fieldId,
String valueId)
Gets the metadata value or field name of the given encoded field and value Ids. |
String |
getOPML(String metaFormat,
String audience,
String language,
String field)
Gets the oPML attribute of the MetadataVocabTermsGroups object |
String |
getOPML(String metaFormat,
String audience,
String language,
String field,
boolean includeXmlDeclaration)
Gets the oPML attribute of the MetadataVocabTermsGroups object |
String |
getOPML(String metaFormat,
String metaVersion,
String audience,
String language,
String field)
Gets the OPML for a given format/version/audience/language |
String |
getOPML(String metaFormat,
String metaVersion,
String audience,
String language,
String field,
boolean includeXmlDeclaration)
Gets the oPML attribute of the MetadataVocabTermsGroups object |
String |
getResponseOPML(PageContext context)
Gets the responseGroup attribute of the MetadataVocabOPML object |
String |
getTopLevelAbbrevLabelOf(String system,
String metadataField,
String systemFieldId,
String systemValueId)
Gets the topLevelAbbrevLabelOf attribute of the MetadataVocab object |
String |
getTranslatedField(String metaFormat,
String field)
Gets the translatedField attribute of the MetadataVocabTermsGroups object |
String |
getTranslatedField(String metaFormat,
String metaVersion,
String field)
Gets the translated FIELD NAME/ID of the given FIELD+VALUE NAMEs/IDs |
String |
getTranslatedFieldPath(String metaFormat,
String field)
Gets the translatedFieldPath attribute of the MetadataVocabTermsGroups object |
String |
getTranslatedFieldPath(String metaFormat,
String metaVersion,
String field)
Gets the translatedFieldPath attribute of the MetadataVocabTermsGroups object |
String |
getTranslatedValue(String metaFormat,
String field,
String value)
Gets the translatedValue attribute of the MetadataVocabTermsGroups object |
String |
getTranslatedValue(String metaFormat,
String metaVersion,
String field,
String value)
Gets the translated VALUE NAME/ID of the given FIELD NAME/ID |
String |
getUiFieldLabel(String audience,
String language,
String field,
boolean abbrev)
Gets the uiFieldLabel attribute of the MetadataVocabTermsGroups object |
String |
getUiFieldLabel(String metaFormat,
String audience,
String language,
String field,
boolean abbrev)
Gets the UI label associated with the given FIELD NAME/ID, using the current or most recently loaded metadata format version number |
String |
getUiFieldLabel(String metaFormat,
String metaVersion,
String audience,
String language,
String field)
Gets the non-abbreviated UI label associated with the given FIELD NAME/ID |
String |
getUiFieldLabel(String metaFormat,
String metaVersion,
String audience,
String language,
String field,
boolean abbrev)
Gets the UI label associated with the given FIELD NAME/ID |
String |
getUiLabelOf(String system,
String metadataField,
String metadataValue)
Gets the full (non-abbreviated) UI label of the given metadata field/value pair |
String |
getUiLabelOf(String system,
String metadataField,
String metadataValue,
boolean abbreviated)
Gets the UI label of the given metadata field/value pair |
String |
getUiLabelOfFieldId(String fieldId)
Gets the uiLabelOfFieldId attribute of the MetadataVocab object |
String |
getUiLabelOfSystemIds(String system,
String systemFieldId,
String systemValueId)
Gets the full (non-abbreviated) UI label of the given encoded field/value Id pair |
String |
getUiLabelOfSystemIds(String system,
String systemFieldId,
String systemValueId,
boolean abbreviated)
Gets the UI label of the given encoded field/value Id pair |
String |
getUiValueDisplay(String metaFormat,
String audience,
String language,
String field,
String value)
Gets the "display" attribute value for the given field/value vocab using the CURRENT metadata framework version |
String |
getUiValueDisplay(String metaFormat,
String metaVersion,
String audience,
String language,
String field,
String value)
Gets the "display" attribute value for the given field/value vocab |
String |
getUiValueLabel(String audience,
String language,
String field,
String value,
boolean abbrev)
Gets the uiValueLabel attribute of the MetadataVocabTermsGroups object |
String |
getUiValueLabel(String metaFormat,
String audience,
String language,
String field,
String value,
boolean abbrev)
Gets the UI label associated with the given FIELD+VALUE NAMES/IDS, using the current or most recently loaded metadata format version number |
String |
getUiValueLabel(String metaFormat,
String metaVersion,
String audience,
String language,
String field,
String value)
Gets the non-abbreviated UI label associated with the given FIELD+VALUE NAMES/IDS |
String |
getUiValueLabel(String metaFormat,
String metaVersion,
String audience,
String language,
String field,
String value,
boolean abbrev)
Gets the UI label associated with the given FIELD+VALUE NAMES/IDS |
String |
getVocabCheckbox(String groupTop,
String value,
String label,
MetadataVocabInputState inputState)
Returns a SINGLE HTML CHECKBOX input of the specified part of the vocabulary. |
String |
getVocabCheckboxes(String system,
String group,
int size,
String tdWidth,
boolean skipTopRow,
MetadataVocabInputState inputState)
Returns an HTML TABLE of CHECKBOX inputs of the specified part of the vocabulary. |
ArrayList |
getVocabFieldIds()
Gets the vocabFieldIds attribute of the MetadataVocab object |
String |
getVocabHiddenInputs(String system,
String group,
MetadataVocabInputState inputState)
Generates HTML HIDDEN inputs of the specified part of the vocabulary. |
VocabNode |
getVocabNode(String metaFormat,
String audience,
String language,
String fieldName,
String valueName)
Gets the vocabNode attribute of the MetadataVocabTermsGroups object |
ArrayList |
getVocabNodes(String system,
String group)
Gets the vocabNodes attribute of the MetadataVocab object |
ArrayList |
getVocabNodes(String metaFormat,
String audience,
String language,
String field)
Gets the vocabNodes attribute of the MetadataVocabTermsGroups object |
ArrayList |
getVocabNodes(String metaFormat,
String audience,
String language,
String field,
String group)
Gets the vocabNodes attribute of the MetadataVocabTermsGroups object |
String |
getVocabSelectList(String system,
String group,
int size,
MetadataVocabInputState inputState)
Returns an HTML SELECT list of the specified part of the vocabulary. |
Set |
getVocabSystemInterfaces()
Gets the set of UI system interfaces (i.e., "dds.descr.en-us") that this vocabulary is defined for |
String |
getVocabTreeMenu(String system,
String language,
String group,
PageContext page)
Generates a Javascript Tree Menu (collapsable hierarchy) of the specified part of the vocabulary |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
(SAX) Reports any whitespace that is ignored because it falls outside of the DTD or schema definition--usefull for re-generating the file with indents intact. |
String |
nonWrappedLabel(String label)
Replaces "||" in label values with spaces |
void |
processingInstruction(String target,
String data)
(SAX) Required by SAX, but not used here |
void |
reportError(String err)
Log an error |
void |
reportMessage(String msg)
Log a message |
void |
setDocumentLocator(Locator locator)
(SAX) Sets the SAX locator, which indicates the current position of the parser within the document (line number, column number). |
protected void |
setNodesIsLastInSubList(VocabList list,
boolean topList)
Sets the isLastInSubList attribute of each vocab node |
void |
setParsingDefinitions(boolean bool)
(SAX) Not strictly part of the SAX interface, but we use this to figure out which type of XML we're parsing (definitions/terms vs. |
void |
setResponseGroup(PageContext context,
String metaFormat,
String audience,
String language,
String field)
Initiate the re-ordering/grouping/labeling of a flat list of metadata values in a search response (Services or otherwise) by indicating an audience grouping (OPML tree) sans version |
void |
setResponseGroup(PageContext context,
String metaFramework,
String metaVersion,
String audience,
String language,
String field)
Gets the responseGroup attribute of the MetadataVocabOPML object |
void |
setResponseList(ArrayList values,
PageContext context)
Adds an ArrayList of metadata values to the re-ordering/grouping/labeling cache |
void |
setResponseList(String[] values,
PageContext context)
Adds an ArrayList of metadata values to the re-ordering/grouping/labeling cache |
void |
setResponseValue(String value,
PageContext context)
Caches a response value for rendering within proper order/grouping |
void |
skippedEntity(String name)
(SAX) Required by SAX, but not used here |
void |
startDocument()
(SAX) Invoked at the start of any document parse |
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
(SAX) Invoked upon opening tag of an XML element |
void |
startElementDefinition(String namespaceURI,
String localName,
String qName,
Attributes atts)
(SAX) Invoked upon opening tag of a definitions XML element |
void |
startElementUI(String namespaceURI,
String localName,
String qName,
Attributes atts)
(SAX) Start element for the UI files |
void |
startPrefixMapping(String prefix,
String uri)
(SAX) Required by SAX, but not used here |
String |
wrappedLabel(String label)
Replaces "||" in label values with <br> |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected VocabList vocab
public MetadataVocabOPML vocabCompare
Constructor Detail |
---|
public MetadataVocabTermsGroups(String sqlDriver, String sqlURL, String sqlUser, String sqlPassword, String vocabTextFile)
sqlDriver
- sqlURL
- sqlUser
- sqlPassword
- vocabTextFile
- public MetadataVocabTermsGroups()
Method Detail |
---|
public void addError(String err)
addError
in interface MetadataVocab
err
- The feature to be added to the Error attributepublic void addMessage(String msg)
addMessage
in interface MetadataVocab
msg
- The feature to be added to the Message attributepublic ArrayList getMessages()
getMessages
in interface MetadataVocab
public ArrayList getErrors()
getErrors
in interface MetadataVocab
public Set getVocabSystemInterfaces()
getVocabSystemInterfaces
in interface MetadataVocab
public String getMetaNameOfId(String system, String fieldId, String valueId)
getMetaNameOfId
in interface MetadataVocab
system
- Vocabulary system/interface/language trio, i.e.
"dds.default.en-us"fieldId
- Encoded vocabulary field IdvalueId
- Encoded vocabulary value Id
MetadataVocab#getTranslatedField(String,String,String,String,String)
,
MetadataVocab#getTranslatedValue(String,String,String,String,String,String)
public boolean getFieldValueIdPairExists(String fieldId, String valueId)
getFieldValueIdPairExists
in interface MetadataVocab
fieldId
- Encoded vocabulary field IdvalueId
- Encoded vocabulary value Id
public String getFieldValueSystemId(String field, String value) throws Exception
getFieldValueSystemId
in interface MetadataVocab
field
- Metadata field namevalue
- Metadata value name
Exception
public String getFieldSystemId(String field) throws Exception
getFieldSystemId
in interface MetadataVocab
field
- Metadata field name
Exception
public String getUiLabelOf(String system, String metadataField, String metadataValue, boolean abbreviated)
getUiLabelOf
in interface MetadataVocab
system
- Vocabulary system/interface/language trio, i.e.
"dds.default.en-us"metadataField
- Metadata field namemetadataValue
- Metadata value nameabbreviated
- Return the abbreviated form of the UI label?
public String getUiLabelOf(String system, String metadataField, String metadataValue)
getUiLabelOf
in interface MetadataVocab
system
- Vocabulary system/interface/language trio, i.e.
"dds.default.en-us"metadataField
- Metadata field namemetadataValue
- Metadata value name
public String getUiLabelOfFieldId(String fieldId)
getUiLabelOfFieldId
in interface MetadataVocab
fieldId
- Description of the Parameter
public String getUiLabelOfSystemIds(String system, String systemFieldId, String systemValueId, boolean abbreviated)
getUiLabelOfSystemIds
in interface MetadataVocab
system
- Vocabulary system/interface/language trio, i.e.
"dds.default.en-us"systemFieldId
- Encoded field IdsystemValueId
- Encoded value Idabbreviated
- Return the abbreviated form of the UI label?
public String getUiLabelOfSystemIds(String system, String systemFieldId, String systemValueId)
getUiLabelOfSystemIds
in interface MetadataVocab
system
- Vocabulary system/interface/language trio, i.e.
"dds.default.en-us"systemFieldId
- Encoded field IdsystemValueId
- Encoded value Id
public String getTopLevelAbbrevLabelOf(String system, String metadataField, String systemFieldId, String systemValueId)
getTopLevelAbbrevLabelOf
in interface MetadataVocab
system
- metadataField
- systemFieldId
- systemValueId
-
public ArrayList getVocabNodes(String system, String group)
getVocabNodes
in interface MetadataVocab
system
- group
-
public ArrayList getVocabNodes(String metaFormat, String audience, String language, String field)
getVocabNodes
in interface MetadataVocab
metaFormat
- audience
- language
- field
-
public ArrayList getVocabNodes(String metaFormat, String audience, String language, String field, String group)
getVocabNodes
in interface MetadataVocab
metaFormat
- audience
- language
- field
- group
-
public String getVocabSelectList(String system, String group, int size, MetadataVocabInputState inputState)
getVocabSelectList
in interface MetadataVocab
group
- colon-seperated specifier of the part of the vocab
hierarchy which is to be displayedsize
- size (height) of the SELECT listsystem
- inputState
-
public String getVocabCheckboxes(String system, String group, int size, String tdWidth, boolean skipTopRow, MetadataVocabInputState inputState)
getVocabCheckboxes
in interface MetadataVocab
group
- colon-seperated specifier of the part of the vocab
hierarchy which is to be displayedsize
- how many inputs to display before starting a new column
in the tabletdWidth
- value inserted into the width param of the TD tagskipTopRow
- Should the top row of checkboxes (next to All | Clear)
be skipped?system
- inputState
-
public String getVocabCheckbox(String groupTop, String value, String label, MetadataVocabInputState inputState)
getVocabCheckbox
in interface MetadataVocab
groupTop
- Top-level vocab groupvalue
- vocab valuelabel
- UI labelinputState
-
public String getVocabTreeMenu(String system, String language, String group, PageContext page)
getVocabTreeMenu
in interface MetadataVocab
group
- colon-seperated specifier of the part of the vocab
hierarchy which is to be displayedsystem
- page
- language
-
public String wrappedLabel(String label)
label
-
public String nonWrappedLabel(String label)
label
-
public String getVocabHiddenInputs(String system, String group, MetadataVocabInputState inputState)
getVocabHiddenInputs
in interface MetadataVocab
group
- colon-seperated specifier of the part of the vocab
hierarchy which is to be displayedsystem
- inputState
-
public void doneLoading()
doneLoading
in interface MetadataVocab
public ArrayList getCacheValuesInOrder(String system, String group, Map cache)
getCacheValuesInOrder
in interface MetadataVocab
cache
- system
- group
-
public ArrayList getVocabFieldIds()
getVocabFieldIds
in interface MetadataVocab
public void setParsingDefinitions(boolean bool)
bool
- The new parsingDefinitions valuepublic void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
locator
- The new saxLocator valuepublic void startDocument() throws SAXException
startDocument
in interface ContentHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
SAXException
protected void setNodesIsLastInSubList(VocabList list, boolean topList)
list
- The new nodesIsLastInSubList valuetopList
- The new nodesIsLastInSubList valuepublic void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
namespaceURI
- localName
- qName
- atts
-
SAXException
public void startElementDefinition(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
namespaceURI
- localName
- qName
- atts
-
SAXException
public VocabNode findVocabNode(String system, String fieldName, String valueName)
findVocabNode
in interface MetadataVocab
system
- fieldName
- valueName
- pass null if only the field node is desired
public void startElementUI(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
namespaceURI
- XML namespacelocalName
- local tag nameqName
- fully qualified tag nameatts
- tag attributes
SAXException
public void endElement(String namespaceURI, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
namespaceURI
- XML namespacelocalName
- local tag nameqName
- fully qualified tag name
SAXException
public void endElementDefinition(String namespaceURI, String localName, String qName) throws SAXException
namespaceURI
- localName
- qName
-
SAXException
public void endElementUI(String namespaceURI, String localName, String qName) throws SAXException
namespaceURI
- localName
- qName
-
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
ch
- start
- length
-
SAXException
public void charactersDefinition(char[] ch, int start, int length) throws SAXException
ch
- start
- length
-
SAXException
public void charactersUI(char[] ch, int start, int length) throws SAXException
ch
- character arraystart
- starting index of character datalength
- length of character data
SAXException
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
ignorableWhitespace
in interface ContentHandler
ch
- start
- length
-
SAXException
public void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping
in interface ContentHandler
prefix
- uri
-
SAXException
public void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping
in interface ContentHandler
prefix
-
SAXException
public void processingInstruction(String target, String data) throws SAXException
processingInstruction
in interface ContentHandler
target
- data
-
SAXException
public void skippedEntity(String name) throws SAXException
skippedEntity
in interface ContentHandler
name
-
SAXException
public void reportMessage(String msg)
reportMessage
in interface MetadataVocab
msg
- public void reportError(String err)
reportError
in interface MetadataVocab
err
- public String getCurrentVersion(String metaFramework)
getCurrentVersion
in interface MetadataVocab
metaFramework
-
public String getTranslatedField(String metaFormat, String metaVersion, String field) throws Exception
getTranslatedField
in interface MetadataVocab
field
- metadata FIELD encoded ID (i.e. "gr") or metadata
NAME (i.e. "gradeRange")metaFormat
- metaVersion
-
Exception
public String getTranslatedField(String metaFormat, String field) throws Exception
getTranslatedField
in interface MetadataVocab
metaFormat
- field
-
Exception
public String getTranslatedFieldPath(String metaFormat, String metaVersion, String field) throws Exception
getTranslatedFieldPath
in interface MetadataVocab
metaFormat
- metaVersion
- field
-
Exception
public String getTranslatedFieldPath(String metaFormat, String field) throws Exception
getTranslatedFieldPath
in interface MetadataVocab
metaFormat
- field
-
Exception
public String getTranslatedValue(String metaFormat, String metaVersion, String field, String value) throws Exception
getTranslatedValue
in interface MetadataVocab
field
- metadata FIELD encoded ID (i.e. "gr") or metadata
NAME (i.e. "gradeRange")value
- metadata VALUE encoded ID (i.e. "04") or metadata
NAME (i.e. "DLESE:Intermediate elementary")metaFormat
- metaVersion
-
Exception
public String getTranslatedValue(String metaFormat, String field, String value) throws Exception
getTranslatedValue
in interface MetadataVocab
metaFormat
- field
- value
-
Exception
public String getUiValueLabel(String metaFormat, String metaVersion, String audience, String language, String field, String value, boolean abbrev)
getUiValueLabel
in interface MetadataVocab
metaFormat
- metadata format (i.e. "adn")metaVersion
- metadata version (i.e. "0.6.50")field
- metadata FIELD encoded ID (i.e. "gr") or metadata NAME
(i.e. "gradeRange")value
- metadata VALUE encoded ID (i.e. "04") or metadata NAME
(i.e. "DLESE:Intermediate elementary")abbrev
- get the abbreviated version of the label?audience
- UI audience, i.e. "community" or "cataloger"language
- UI language, ie.e. "en-us"
public String getUiValueLabel(String metaFormat, String metaVersion, String audience, String language, String field, String value)
getUiValueLabel
in interface MetadataVocab
metaFormat
- metadata format (i.e. "adn")metaVersion
- metadata version (i.e. "0.6.50")field
- metadata FIELD encoded ID (i.e. "gr") or metadata NAME
(i.e. "gradeRange")value
- metadata VALUE encoded ID (i.e. "04") or metadata NAME
(i.e. "DLESE:Intermediate elementary")audience
- UI audience, i.e. "community" or "cataloger"language
- UI language, ie.e. "en-us"
public String getUiValueLabel(String metaFormat, String audience, String language, String field, String value, boolean abbrev)
getUiValueLabel
in interface MetadataVocab
metaFormat
- metadata format (i.e. "adn")field
- metadata FIELD encoded ID (i.e. "gr") or metadata NAME
(i.e. "gradeRange")value
- metadata VALUE encoded ID (i.e. "04") or metadata NAME
(i.e. "DLESE:Intermediate elementary")audience
- UI audience, i.e. "community" or "cataloger"language
- UI language, ie.e. "en-us"abbrev
- get the abbreviated version of the label?
public void setResponseGroup(PageContext context, String metaFramework, String metaVersion, String audience, String language, String field)
setResponseGroup
in interface MetadataVocab
context
- metaFramework
- The new responseGroup valuemetaVersion
- The new responseGroup valueaudience
- The new responseGroup valuelanguage
- The new responseGroup valuefield
- The new responseGroup valueMetadataVocab.setResponseValue(String,PageContext)
,
MetadataVocab.setResponseList(String[],PageContext)
,
MetadataVocab.setResponseList(ArrayList,PageContext)
,
MetadataVocab.getResponseOPML(PageContext)
public void setResponseGroup(PageContext context, String metaFormat, String audience, String language, String field)
setResponseGroup
in interface MetadataVocab
context
- JSP page contextaudience
- UI audience, i.e. "community" or "cataloger"language
- UI language, i.e. "en-us"field
- metadata FIELD encoded ID (i.e. "gr") or metadata NAME
(i.e. "gradeRange")metaFormat
- metadata format (i.e. "adn")MetadataVocab.setResponseValue(String,PageContext)
,
MetadataVocab.setResponseList(String[],PageContext)
,
MetadataVocab.setResponseList(ArrayList,PageContext)
,
MetadataVocab.getResponseOPML(PageContext)
public void setResponseValue(String value, PageContext context)
setResponseValue
in interface MetadataVocab
value
- the metadata vocab value, i.e. "DLESE:High school"context
- The new response valueMetadataVocab.setResponseGroup(PageContext,String,String,String,String,String)
,
MetadataVocab.setResponseList(String[],PageContext)
,
MetadataVocab.setResponseList(ArrayList,PageContext)
,
MetadataVocab.getResponseOPML(PageContext)
public String getResponseOPML(PageContext context)
getResponseOPML
in interface MetadataVocab
context
-
MetadataVocab.setResponseValue(String,PageContext)
,
MetadataVocab.setResponseList(String[],PageContext)
,
MetadataVocab.setResponseList(ArrayList,PageContext)
,
MetadataVocab.setResponseGroup(PageContext,String,String,String,String,String)
public String getUiFieldLabel(String metaFormat, String metaVersion, String audience, String language, String field, boolean abbrev)
getUiFieldLabel
in interface MetadataVocab
metaFormat
- metadata format (i.e. "adn")metaVersion
- metadata version (i.e. "0.6.50")abbrev
- get the abbreviated version of the label?audience
- UI audience, i.e. "community" or "cataloger"language
- UI language, ie.e. "en-us"field
- metadata FIELD encoded ID (i.e. "gr") or metadata NAME
(i.e. "gradeRange")
public String getUiFieldLabel(String metaFormat, String metaVersion, String audience, String language, String field)
getUiFieldLabel
in interface MetadataVocab
metaFormat
- metadata format (i.e. "adn")metaVersion
- metadata version (i.e. "0.6.50")audience
- UI audience, i.e. "community" or "cataloger"language
- UI language, ie.e. "en-us"field
- metadata FIELD encoded ID (i.e. "gr") or metadata NAME
(i.e. "gradeRange")
public String getUiFieldLabel(String metaFormat, String audience, String language, String field, boolean abbrev)
getUiFieldLabel
in interface MetadataVocab
metaFormat
- metadata format (i.e. "adn")field
- metadata FIELD encoded ID (i.e. "gr") or metadata NAME
(i.e. "gradeRange")audience
- UI audience, i.e. "community" or "cataloger"language
- UI language, ie.e. "en-us"abbrev
- get the abbreviated version of the label?
public String getOPML(String metaFormat, String metaVersion, String audience, String language, String field)
getOPML
in interface MetadataVocab
metaVersion
- metadata version (i.e. "0.6.50")audience
- UI audience, i.e. "community" or "cataloger"language
- UI language, i.e. "en-us"field
- metadata FIELD encoded ID (i.e. "gr") or metadata NAME
(i.e. "gradeRange")metaFormat
- metadata format (i.e. "adn")
public String getOPML(String metaFormat, String audience, String language, String field)
getOPML
in interface MetadataVocab
metaFormat
- audience
- language
- field
-
public String getOPML(String metaFormat, String metaVersion, String audience, String language, String field, boolean includeXmlDeclaration)
getOPML
in interface MetadataVocab
metaFormat
- metaVersion
- audience
- language
- field
- includeXmlDeclaration
-
public String getUiValueLabel(String audience, String language, String field, String value, boolean abbrev)
getUiValueLabel
in interface MetadataVocab
audience
- language
- field
- value
- abbrev
-
public String getUiFieldLabel(String audience, String language, String field, boolean abbrev)
getUiFieldLabel
in interface MetadataVocab
audience
- language
- field
- abbrev
-
public String getUiValueDisplay(String metaFormat, String metaVersion, String audience, String language, String field, String value)
getUiValueDisplay
in interface MetadataVocab
metaFormat
- metadata format (i.e. "adn")metaVersion
- metadata version (i.e. "0.6.50")field
- metadata FIELD encoded ID (i.e. "gr") or metadata NAME
(i.e. "gradeRange")value
- metadata VALUE encoded ID (i.e. "04") or metadata NAME
(i.e. "DLESE:Intermediate elementary")audience
- UI audience, i.e. "community" or "cataloger"language
- UI language, i.e. "en-us"
public String getUiValueDisplay(String metaFormat, String audience, String language, String field, String value)
getUiValueDisplay
in interface MetadataVocab
metaFormat
- metadata format (i.e. "adn")field
- metadata FIELD encoded ID (i.e. "gr") or metadata NAME
(i.e. "gradeRange")value
- metadata VALUE encoded ID (i.e. "04") or metadata NAME
(i.e. "DLESE:Intermediate elementary")audience
- UI audience, i.e. "community" or "cataloger"language
- UI language, i.e. "en-us"
public String getOPML(String metaFormat, String audience, String language, String field, boolean includeXmlDeclaration)
getOPML
in interface MetadataVocab
metaFormat
- audience
- language
- field
- includeXmlDeclaration
-
public String getMetaFormatOfField(String field)
getMetaFormatOfField
in interface MetadataVocab
field
-
public VocabNode getVocabNode(String metaFormat, String audience, String language, String fieldName, String valueName)
getVocabNode
in interface MetadataVocab
metaFormat
- audience
- language
- fieldName
- valueName
-
public void setResponseList(ArrayList values, PageContext context)
setResponseList
in interface MetadataVocab
context
- JSP page contextvalues
- List of metadata VALUE encoded ID (i.e. "04") or metadata
NAME (i.e. "DLESE:Intermediate elementary")MetadataVocab.setResponseGroup(PageContext,String,String,String,String,String)
,
MetadataVocab.getResponseOPML(PageContext)
public void setResponseList(String[] values, PageContext context)
setResponseList
in interface MetadataVocab
context
- JSP page contextvalues
- List of metadata VALUE encoded ID (i.e. "04") or metadata
NAME (i.e. "DLESE:Intermediate elementary")MetadataVocab.setResponseGroup(PageContext,String,String,String,String,String)
,
MetadataVocab.getResponseOPML(PageContext)
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |