|
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.MetadataVocabOPML
public class MetadataVocabOPML
MetadataVocabOPML is an implementation of MetadataVocab that uses an OPML-based framework to provide a set of methods for accessing mappings between metadata vocabulary encoded IDs and their term names, as well as rendering groups of controlled vocabularies in a variety of ways (such as simple HTML checkboxes, or dHTML flyouts).
UI renderings and mapping lookups are keyed in one of two ways:
NOTE: the version parameter is optional, as most methods have a version that does not take it. In these instances, the current , or most recently loaded version is assumed.
Instances of this class are loaded via LoadMetadataOPML and are placed into application scope via MetadataVocabServlet as an attribute named according to the context parameter "metadataVocabInstanceAttributeName".
Field Summary | |
---|---|
static String |
OPML_GROUPS_NAMESPACE
|
static String |
OPML_NAMESPACE_PREFIX
|
static String |
OPML_VERSION
|
Constructor Summary | |
---|---|
MetadataVocabOPML(boolean debug,
String loaderFile,
ServletContext servletContext)
Constructor for the MetadataVocabOPML 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 |
doneLoading()
Invoked when all OPML files have been loaded |
void |
endDocument()
(SAX) Invoked at the end of parsing. |
void |
endElement(String namespaceURI,
String lName,
String qName)
(SAX) Invoked upon closing tag of an XML element |
void |
endPrefixMapping(String prefix)
(SAX) Required by SAX, but not used here |
String |
errorDisplay(String err,
String method)
Display vocab error as HTML |
VocabNode |
findVocabNode(String system,
String fieldName,
String valueName)
Description of the Method |
ArrayList |
getCacheValuesInOrder(String system,
String group,
Map cache)
Gets the cacheValuesInOrder attribute of the MetadataVocabOPML object |
org.dlese.dpc.gui.OPMLTree |
getCurrentTree()
Gets the currentTree attribute of the MetadataVocabOPML object |
String |
getCurrentVersion(String metaFormat)
Get the most recently loaded metadata format version number |
static String |
getDateStamp()
Return a string for the current time and date, sutiable for display in log files and output to standout: |
String |
getDescription(org.dlese.dpc.gui.OPMLTree.TreeNode node,
PageContext page)
Gets the description from HTTP request of SRC URL |
ArrayList |
getErrors()
Gets the errors attribute of the MetadataUIManager 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 |
String |
getFilenameOfFieldPath(String format,
String version,
String audience,
String language,
String fieldPath)
Physical filename of the OPML that loaded the given vocabulary field XPath |
ArrayList |
getMessages()
Gets the messages attribute of the MetadataVocabOPML object |
String |
getMetaFormatOfField(String field)
Gets the metaFormatOfField attribute of the MetadataVocabOPML object |
String |
getMetaNameOfId(String system,
String fieldId,
String valueId)
Deprecated. As of MetadataUI v1.0, replaced by getTranslatedValue OR getTranslatedField |
String |
getNameFromPath(String fieldPath)
Gets the vocab field name by clipping from the end of a full xpath |
org.dlese.dpc.gui.OPMLTree |
getNewTree()
Gets the newTree attribute of the MetadataVocabOPML object |
String |
getNodeId(org.dlese.dpc.gui.OPMLTree.TreeNode node)
Gets the nodeId attribute of the MetadataVocabOPML object |
String |
getOPML(String metaFormat,
String audience,
String language,
String field)
Gets the OPML for a given format/audience/language using the current or most recently loaded version without the XML declaration tag |
String |
getOPML(String metaFormat,
String audience,
String language,
String field,
boolean includeXmlDeclaration)
Gets the OPML for a given format/audience/language using the current or most recently loaded version |
String |
getOPML(String metaFormat,
String metaVersion,
String audience,
String language,
String field)
Gets the OPML for a given format/version/audience/language without the XML declaration tag |
String |
getOPML(String metaFormat,
String metaVersion,
String audience,
String language,
String field,
boolean includeXmlDeclaration)
Gets the OPML for a given format/version/audience/language |
String |
getResponseOPML(PageContext context)
Gets the re-ordered/grouped/labeled OPML tree of metadata values from the cache created by setResponseGroup() |
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 translated FIELD NAME/ID of the given FIELD NAME/ID using the current or most recently loaded metadata format version number |
String |
getTranslatedField(String metaFormat,
String metaVersion,
String field)
Gets the translated FIELD NAME/ID of the given FIELD NAME/ID |
String |
getTranslatedFieldPath(String metaFormat,
String field)
Gets the translated FIELD XPATH of the given FIELD+VALUE NAMES/IDS using the current or most recently loaded metadata format version number |
String |
getTranslatedFieldPath(String metaFormat,
String metaVersion,
String field)
Gets the translated FIELD XPATH of the given FIELD+VALUE NAMES/IDS |
String |
getTranslatedValue(String metaFormat,
String field,
String value)
Gets the translated VALUE NAME/ID of the given FIELD+VALUE NAMES/IDS using the current or most recently loaded metadata format version number |
String |
getTranslatedValue(String metaFormat,
String metaVersion,
String field,
String value)
Gets the translated VALUE NAME/ID of the given FIELD+VALUE NAMES/IDS |
String |
getUiFieldLabel(String audience,
String language,
String field,
boolean abbrev)
Gets the uiFieldLabel attribute of the MetadataVocabOPML 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 uiLabelOf attribute of the MetadataVocabOPML object |
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 MetadataVocabOPML 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 MetadataVocabOPML 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 |
ArrayList |
getVocabFieldPaths()
Gets the vocabFieldPaths attribute of the MetadataVocabOPML 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 MetadataVocabOPML object |
VocabNode |
getVocabNode(String metaFormat,
String metaVersion,
String audience,
String language,
String fieldName,
String valueName)
Gets a VocabNode for the given field/value pair |
ArrayList |
getVocabNodes(String system,
String group)
Gets the vocabNodes attribute of the MetadataVocabOPML object |
ArrayList |
getVocabNodes(String metaFormat,
String audience,
String language,
String field)
Gets the vocabNodes attribute of the MetadataVocab object |
ArrayList |
getVocabNodes(String metaFormat,
String audience,
String language,
String field,
String group)
Gets the vocabNodes attribute of the MetadataVocabOPML 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 vocabSystemInterfaces attribute of the MetadataUIManager object |
String |
getVocabTreeMenu(String system,
String language,
String group,
PageContext page)
Generates a Javascript Tree Menu (collapsable hierarchy) of the specified part of the vocabulary |
boolean |
hasValue(String metaFormat,
String field,
String value)
Does the given field/value pair (in the CURRENT version of the given framework) exist in this MetadataVocab instance? |
boolean |
hasValue(String metaFormat,
String metaVersion,
String field,
String value)
Does the given field/value pair exist in this MetadataVocab instance? |
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. |
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 |
String |
setCurrentTree(String key)
Sets the currentTree OPMLTree using the system info. |
String |
setCurrentTree(String key,
String subGroup)
Sets currentTree using its key (framework/version/audience/language/id) |
void |
setDocumentLocator(Locator locator)
(SAX) Sets the SAX locator, which indicates the current position of the parser within the document (line number, column number). |
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 metaFormat,
String metaVersion,
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) |
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)
Adds a single metadata value to the re-ordering/grouping/labeling cache |
void |
setTreeKey(String key)
Sets the treeKey attribute of the MetadataVocabOPML object |
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 lName,
String qName,
Attributes atts)
(SAX) Invoked upon opening tag of an XML element |
void |
startPrefixMapping(String prefix,
String uri)
(SAX) Required by SAX, but not used here |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String OPML_VERSION
public static final String OPML_GROUPS_NAMESPACE
public static final String OPML_NAMESPACE_PREFIX
Constructor Detail |
---|
public MetadataVocabOPML(boolean debug, String loaderFile, ServletContext servletContext)
debug
- loaderFile
- servletContext
- Method Detail |
---|
public org.dlese.dpc.gui.OPMLTree getCurrentTree()
public String setCurrentTree(String key, String subGroup)
key
- system (framework/version/audience/language/id) keysubGroup
- The new currentTree value
public String setCurrentTree(String key)
key
- system (framework/version/audience/language/id) key
public org.dlese.dpc.gui.OPMLTree getNewTree()
public void setTreeKey(String key)
key
- The new treeKey valuepublic 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 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 framework/version/audience/language, i.e.
"adn/0.6.50/community/en-us"fieldId
- Encoded vocabulary field IdvalueId
- Encoded vocabulary value Id
#getTranslatedField(String,String,String,String,String)
,
#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 getFilenameOfFieldPath(String format, String version, String audience, String language, String fieldPath)
fieldPath
- field XPathformat
- version
- audience
- language
-
public String getUiLabelOf(String system, String metadataField, String metadataValue, boolean abbreviated)
getUiLabelOf
in interface MetadataVocab
system
- Vocabulary framework/version/audience/language key,
i.e. "adn/0.6.50/community/en-us"metadataField
- Metadata field namemetadataValue
- Metadata value nameabbreviated
- Return the abbreviated form of the UI label?
public String getTopLevelAbbrevLabelOf(String system, String metadataField, String systemFieldId, String systemValueId)
getTopLevelAbbrevLabelOf
in interface MetadataVocab
system
- metadataField
- systemFieldId
- systemValueId
-
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 ArrayList getVocabNodes(String system, String group)
getVocabNodes
in interface MetadataVocab
system
- 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 getNodeId(org.dlese.dpc.gui.OPMLTree.TreeNode node)
node
-
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 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 String getMetaFormatOfField(String field)
getMetaFormatOfField
in interface MetadataVocab
field
-
public ArrayList getVocabFieldIds()
getVocabFieldIds
in interface MetadataVocab
public ArrayList getVocabFieldPaths()
public void doneLoading()
doneLoading
in interface MetadataVocab
public String getNameFromPath(String fieldPath)
fieldPath
-
public VocabNode findVocabNode(String system, String fieldName, String valueName)
findVocabNode
in interface MetadataVocab
system
- fieldName
- valueName
-
public 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
public void startElement(String namespaceURI, String lName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
namespaceURI
- lName
- qName
- atts
-
SAXException
public void endElement(String namespaceURI, String lName, String qName) throws SAXException
endElement
in interface ContentHandler
namespaceURI
- XML namespacelName
- local tag nameqName
- fully qualified tag name
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
ch
- start
- length
-
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 String errorDisplay(String err, String method)
err
- method
-
public String getDescription(org.dlese.dpc.gui.OPMLTree.TreeNode node, PageContext page)
page
- node
-
public String getCurrentVersion(String metaFormat)
getCurrentVersion
in interface MetadataVocab
metaFormat
- metadata format (i.e. "adn")
public VocabNode getVocabNode(String metaFormat, String metaVersion, String audience, String language, String fieldName, String valueName)
metaFormat
- metadata format (i.e. "adn")audience
- UI audience, i.e. "community" or "cataloger"language
- UI language, i.e. "en-us"fieldName
- vocab fieldvalueName
- vocab valuemetaVersion
-
public VocabNode getVocabNode(String metaFormat, String audience, String language, String fieldName, String valueName)
getVocabNode
in interface MetadataVocab
metaFormat
- audience
- language
- fieldName
- valueName
-
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
- metadata format (i.e. "adn")metaVersion
- metadata version (i.e. "0.6.50")
Exception
public String getTranslatedField(String metaFormat, String field) throws Exception
getTranslatedField
in interface MetadataVocab
field
- metadata FIELD encoded ID (i.e. "gr") or metadata
NAME (i.e. "gradeRange")metaFormat
- metadata format (i.e. "adn")
Exception
public String getTranslatedFieldPath(String metaFormat, String metaVersion, String field) throws Exception
getTranslatedFieldPath
in interface MetadataVocab
field
- metadata FIELD encoded ID (i.e. "gr") or metadata
NAME (i.e. "gradeRange")metaFormat
- metadata format (i.e. "adn")metaVersion
- metadata version (i.e. "0.6.50")
Exception
public String getTranslatedFieldPath(String metaFormat, String field) throws Exception
getTranslatedFieldPath
in interface MetadataVocab
field
- metadata FIELD encoded ID (i.e. "gr") or metadata
NAME (i.e. "gradeRange")metaFormat
- metadata format (i.e. "adn")
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
- metadata format (i.e. "adn")metaVersion
- metadata version (i.e. "0.6.50")
Exception
public String getTranslatedValue(String metaFormat, 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
- metadata format (i.e. "adn")
Exception
public boolean hasValue(String metaFormat, String metaVersion, String field, String value)
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
- metadata format (i.e. "adn")metaVersion
- metadata version (i.e. "0.6.50")
public boolean hasValue(String metaFormat, String field, String value)
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
- metadata format (i.e. "adn")
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, i.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, i.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, i.e. "en-us"abbrev
- get the abbreviated version of the label?
public String getUiValueLabel(String audience, String language, String field, String value, boolean abbrev)
getUiValueLabel
in interface MetadataVocab
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")abbrev
- return the "textAbbrev" version of the label?value
-
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, i.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, i.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, i.e. "en-us"abbrev
- get the abbreviated version of the label?
public String getUiFieldLabel(String audience, String language, String field, boolean abbrev)
getUiFieldLabel
in interface MetadataVocab
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")abbrev
- return the "textAbbrev" version of the label?
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 void setResponseGroup(PageContext context, String metaFormat, String metaVersion, String audience, String language, String field)
setResponseGroup
in interface MetadataVocab
context
- JSP page contextmetaVersion
- 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")MetadataVocab.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
- metadata VALUE encoded ID (i.e. "04") or metadata NAME
(i.e. "DLESE:Intermediate elementary")context
- JSP page contextMetadataVocab.setResponseGroup(PageContext,String,String,String,String,String)
,
MetadataVocab.setResponseList(String[],PageContext)
,
MetadataVocab.setResponseList(ArrayList,PageContext)
,
MetadataVocab.getResponseOPML(PageContext)
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.setResponseValue(String,PageContext)
,
MetadataVocab.setResponseList(String[],PageContext)
,
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.setResponseValue(String,PageContext)
,
MetadataVocab.setResponseList(ArrayList,PageContext)
,
MetadataVocab.getResponseOPML(PageContext)
public String getResponseOPML(PageContext context)
getResponseOPML
in interface MetadataVocab
context
- JSP page context
MetadataVocab.setResponseValue(String,PageContext)
,
MetadataVocab.setResponseList(String[],PageContext)
,
MetadataVocab.setResponseList(ArrayList,PageContext)
,
MetadataVocab.setResponseGroup(PageContext,String,String,String,String,String)
public String getOPML(String metaFormat, String metaVersion, String audience, String language, String field, boolean includeXmlDeclaration)
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")includeXmlDeclaration
-
public String getOPML(String metaFormat, String audience, String language, String field, boolean includeXmlDeclaration)
getOPML
in interface MetadataVocab
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")includeXmlDeclaration
-
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
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 static String getDateStamp()
public void reportMessage(String msg)
reportMessage
in interface MetadataVocab
msg
- public void reportError(String err)
reportError
in interface MetadataVocab
err
- public ArrayList getMessages()
getMessages
in interface MetadataVocab
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 getUiLabelOfFieldId(String fieldId)
getUiLabelOfFieldId
in interface MetadataVocab
fieldId
-
public String getUiLabelOf(String system, String metadataField, String metadataValue)
getUiLabelOf
in interface MetadataVocab
system
- metadataField
- metadataValue
-
public ArrayList getCacheValuesInOrder(String system, String group, Map cache)
getCacheValuesInOrder
in interface MetadataVocab
system
- group
- cache
-
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |