public class MetadataVocabOPML extends java.lang.Object implements MetadataVocab, java.io.Serializable
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".Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OPML_GROUPS_NAMESPACE |
static java.lang.String |
OPML_NAMESPACE_PREFIX |
static java.lang.String |
OPML_VERSION |
Constructor and Description |
---|
MetadataVocabOPML(boolean debug,
java.lang.String loaderFile,
javax.servlet.ServletContext servletContext)
Constructor for the MetadataVocabOPML object
|
Modifier and Type | Method and Description |
---|---|
void |
addError(java.lang.String err)
Adds a feature to the Error attribute of the MetadataVocabOPML object
|
void |
addMessage(java.lang.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(java.lang.String namespaceURI,
java.lang.String lName,
java.lang.String qName)
(SAX) Invoked upon closing tag of an XML element
|
void |
endPrefixMapping(java.lang.String prefix)
(SAX) Required by SAX, but not used here
|
java.lang.String |
errorDisplay(java.lang.String err,
java.lang.String method)
Display vocab error as HTML
|
VocabNode |
findVocabNode(java.lang.String system,
java.lang.String fieldName,
java.lang.String valueName)
Description of the Method
|
java.util.ArrayList |
getCacheValuesInOrder(java.lang.String system,
java.lang.String group,
java.util.Map cache)
Gets the cacheValuesInOrder attribute of the MetadataVocabOPML object
|
org.dlese.dpc.gui.OPMLTree |
getCurrentTree()
Gets the currentTree attribute of the MetadataVocabOPML object
|
java.lang.String |
getCurrentVersion(java.lang.String metaFormat)
Get the most recently loaded metadata format version number
|
static java.lang.String |
getDateStamp()
Return a string for the current time and date, sutiable for display in log
files and output to standout:
|
java.lang.String |
getDescription(org.dlese.dpc.gui.OPMLTree.TreeNode node,
javax.servlet.jsp.PageContext page)
Gets the description from HTTP request of SRC URL
|
java.util.ArrayList |
getErrors()
Gets the errors attribute of the MetadataUIManager object
|
java.lang.String |
getFieldSystemId(java.lang.String field)
Gets the encoded field Id of the given metadata field
|
boolean |
getFieldValueIdPairExists(java.lang.String fieldId,
java.lang.String valueId)
Does a vocabulary definition exist for the given encoded FIELD + VALUE IDs?
|
java.lang.String |
getFieldValueSystemId(java.lang.String field,
java.lang.String value)
Gets the encoded value Id of the given metadata field/value pair
|
java.lang.String |
getFilenameOfFieldPath(java.lang.String format,
java.lang.String version,
java.lang.String audience,
java.lang.String language,
java.lang.String fieldPath)
Physical filename of the OPML that loaded the given vocabulary field XPath
|
java.util.ArrayList |
getMessages()
Gets the messages attribute of the MetadataVocabOPML object
|
java.lang.String |
getMetaFormatOfField(java.lang.String field)
Gets the metaFormatOfField attribute of the MetadataVocabOPML object
|
java.lang.String |
getMetaNameOfId(java.lang.String system,
java.lang.String fieldId,
java.lang.String valueId)
Deprecated.
As of MetadataUI v1.0, replaced by getTranslatedValue OR
getTranslatedField
|
java.lang.String |
getNameFromPath(java.lang.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
|
java.lang.String |
getNodeId(org.dlese.dpc.gui.OPMLTree.TreeNode node)
Gets the nodeId attribute of the MetadataVocabOPML object
|
java.lang.String |
getOPML(java.lang.String metaFormat,
java.lang.String audience,
java.lang.String language,
java.lang.String field)
Gets the OPML for a given format/audience/language using the current
or most recently loaded version without the XML declaration tag
|
java.lang.String |
getOPML(java.lang.String metaFormat,
java.lang.String audience,
java.lang.String language,
java.lang.String field,
boolean includeXmlDeclaration)
Gets the OPML for a given format/audience/language using the current
or most recently loaded version
|
java.lang.String |
getOPML(java.lang.String metaFormat,
java.lang.String metaVersion,
java.lang.String audience,
java.lang.String language,
java.lang.String field)
Gets the OPML for a given format/version/audience/language without the
XML declaration tag
|
java.lang.String |
getOPML(java.lang.String metaFormat,
java.lang.String metaVersion,
java.lang.String audience,
java.lang.String language,
java.lang.String field,
boolean includeXmlDeclaration)
Gets the OPML for a given format/version/audience/language
|
java.lang.String |
getResponseOPML(javax.servlet.jsp.PageContext context)
Gets the re-ordered/grouped/labeled OPML tree of metadata values from the
cache created by setResponseGroup()
|
java.lang.String |
getTopLevelAbbrevLabelOf(java.lang.String system,
java.lang.String metadataField,
java.lang.String systemFieldId,
java.lang.String systemValueId)
Gets the topLevelAbbrevLabelOf attribute of the MetadataVocab object
|
java.lang.String |
getTranslatedField(java.lang.String metaFormat,
java.lang.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
|
java.lang.String |
getTranslatedField(java.lang.String metaFormat,
java.lang.String metaVersion,
java.lang.String field)
Gets the translated FIELD NAME/ID of the given FIELD NAME/ID
|
java.lang.String |
getTranslatedFieldPath(java.lang.String metaFormat,
java.lang.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
|
java.lang.String |
getTranslatedFieldPath(java.lang.String metaFormat,
java.lang.String metaVersion,
java.lang.String field)
Gets the translated FIELD XPATH of the given FIELD+VALUE NAMES/IDS
|
java.lang.String |
getTranslatedValue(java.lang.String metaFormat,
java.lang.String field,
java.lang.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
|
java.lang.String |
getTranslatedValue(java.lang.String metaFormat,
java.lang.String metaVersion,
java.lang.String field,
java.lang.String value)
Gets the translated VALUE NAME/ID of the given FIELD+VALUE NAMES/IDS
|
java.lang.String |
getUiFieldLabel(java.lang.String audience,
java.lang.String language,
java.lang.String field,
boolean abbrev)
Gets the uiFieldLabel attribute of the MetadataVocabOPML object
|
java.lang.String |
getUiFieldLabel(java.lang.String metaFormat,
java.lang.String audience,
java.lang.String language,
java.lang.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
|
java.lang.String |
getUiFieldLabel(java.lang.String metaFormat,
java.lang.String metaVersion,
java.lang.String audience,
java.lang.String language,
java.lang.String field)
Gets the non-abbreviated UI label associated with the given FIELD NAME/ID
|
java.lang.String |
getUiFieldLabel(java.lang.String metaFormat,
java.lang.String metaVersion,
java.lang.String audience,
java.lang.String language,
java.lang.String field,
boolean abbrev)
Gets the UI label associated with the given FIELD NAME/ID
|
java.lang.String |
getUiLabelOf(java.lang.String system,
java.lang.String metadataField,
java.lang.String metadataValue)
Gets the uiLabelOf attribute of the MetadataVocabOPML object
|
java.lang.String |
getUiLabelOf(java.lang.String system,
java.lang.String metadataField,
java.lang.String metadataValue,
boolean abbreviated)
Gets the UI label of the given metadata field/value pair
|
java.lang.String |
getUiLabelOfFieldId(java.lang.String fieldId)
Gets the uiLabelOfFieldId attribute of the MetadataVocabOPML object
|
java.lang.String |
getUiLabelOfSystemIds(java.lang.String system,
java.lang.String systemFieldId,
java.lang.String systemValueId)
Gets the full (non-abbreviated) UI label of the given encoded field/value
Id pair
|
java.lang.String |
getUiLabelOfSystemIds(java.lang.String system,
java.lang.String systemFieldId,
java.lang.String systemValueId,
boolean abbreviated)
Gets the UI label of the given encoded field/value Id pair
|
java.lang.String |
getUiValueDisplay(java.lang.String metaFormat,
java.lang.String audience,
java.lang.String language,
java.lang.String field,
java.lang.String value)
Gets the "display" attribute value for the given field/value vocab using
the CURRENT metadata framework version
|
java.lang.String |
getUiValueDisplay(java.lang.String metaFormat,
java.lang.String metaVersion,
java.lang.String audience,
java.lang.String language,
java.lang.String field,
java.lang.String value)
Gets the "display" attribute value for the given field/value vocab
|
java.lang.String |
getUiValueLabel(java.lang.String audience,
java.lang.String language,
java.lang.String field,
java.lang.String value,
boolean abbrev)
Gets the uiValueLabel attribute of the MetadataVocabOPML object
|
java.lang.String |
getUiValueLabel(java.lang.String metaFormat,
java.lang.String audience,
java.lang.String language,
java.lang.String field,
java.lang.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
|
java.lang.String |
getUiValueLabel(java.lang.String metaFormat,
java.lang.String metaVersion,
java.lang.String audience,
java.lang.String language,
java.lang.String field,
java.lang.String value)
Gets the non-abbreviated UI label associated with the given FIELD+VALUE
NAMES/IDS
|
java.lang.String |
getUiValueLabel(java.lang.String metaFormat,
java.lang.String metaVersion,
java.lang.String audience,
java.lang.String language,
java.lang.String field,
java.lang.String value,
boolean abbrev)
Gets the UI label associated with the given FIELD+VALUE NAMES/IDS
|
java.lang.String |
getVocabCheckbox(java.lang.String groupTop,
java.lang.String value,
java.lang.String label,
MetadataVocabInputState inputState)
Returns a SINGLE HTML CHECKBOX input of the specified part of the
vocabulary.
|
java.lang.String |
getVocabCheckboxes(java.lang.String system,
java.lang.String group,
int size,
java.lang.String tdWidth,
boolean skipTopRow,
MetadataVocabInputState inputState)
Returns an HTML TABLE of CHECKBOX inputs of the specified part of the
vocabulary.
|
java.util.ArrayList |
getVocabFieldIds()
Gets the vocabFieldIds attribute of the MetadataVocab object
|
java.util.ArrayList |
getVocabFieldPaths()
Gets the vocabFieldPaths attribute of the MetadataVocabOPML object
|
java.lang.String |
getVocabHiddenInputs(java.lang.String system,
java.lang.String group,
MetadataVocabInputState inputState)
Generates HTML HIDDEN inputs of the specified part of the vocabulary.
|
VocabNode |
getVocabNode(java.lang.String metaFormat,
java.lang.String audience,
java.lang.String language,
java.lang.String fieldName,
java.lang.String valueName)
Gets the vocabNode attribute of the MetadataVocabOPML object
|
VocabNode |
getVocabNode(java.lang.String metaFormat,
java.lang.String metaVersion,
java.lang.String audience,
java.lang.String language,
java.lang.String fieldName,
java.lang.String valueName)
Gets a VocabNode for the given field/value pair
|
java.util.ArrayList |
getVocabNodes(java.lang.String system,
java.lang.String group)
Gets the vocabNodes attribute of the MetadataVocabOPML object
|
java.util.ArrayList |
getVocabNodes(java.lang.String metaFormat,
java.lang.String audience,
java.lang.String language,
java.lang.String field)
Gets the vocabNodes attribute of the MetadataVocab object
|
java.util.ArrayList |
getVocabNodes(java.lang.String metaFormat,
java.lang.String audience,
java.lang.String language,
java.lang.String field,
java.lang.String group)
Gets the vocabNodes attribute of the MetadataVocabOPML object
|
java.lang.String |
getVocabSelectList(java.lang.String system,
java.lang.String group,
int size,
MetadataVocabInputState inputState)
Returns an HTML SELECT list of the specified part of the vocabulary.
|
java.util.Set |
getVocabSystemInterfaces()
Gets the vocabSystemInterfaces attribute of the MetadataUIManager object
|
java.lang.String |
getVocabTreeMenu(java.lang.String system,
java.lang.String language,
java.lang.String group,
javax.servlet.jsp.PageContext page)
Generates a Javascript Tree Menu (collapsable hierarchy) of the specified
part of the vocabulary
|
boolean |
hasValue(java.lang.String metaFormat,
java.lang.String field,
java.lang.String value)
Does the given field/value pair (in the CURRENT version of the given
framework) exist in this MetadataVocab instance?
|
boolean |
hasValue(java.lang.String metaFormat,
java.lang.String metaVersion,
java.lang.String field,
java.lang.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(java.lang.String target,
java.lang.String data)
(SAX) Required by SAX, but not used here
|
void |
reportError(java.lang.String err)
Log an error
|
void |
reportMessage(java.lang.String msg)
Log a message
|
java.lang.String |
setCurrentTree(java.lang.String key)
Sets the currentTree OPMLTree using the system info.
|
java.lang.String |
setCurrentTree(java.lang.String key,
java.lang.String subGroup)
Sets currentTree using its key (framework/version/audience/language/id)
|
void |
setDocumentLocator(org.xml.sax.Locator locator)
(SAX) Sets the SAX locator, which indicates the current position of the
parser within the document (line number, column number).
|
void |
setResponseGroup(javax.servlet.jsp.PageContext context,
java.lang.String metaFormat,
java.lang.String audience,
java.lang.String language,
java.lang.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(javax.servlet.jsp.PageContext context,
java.lang.String metaFormat,
java.lang.String metaVersion,
java.lang.String audience,
java.lang.String language,
java.lang.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(java.util.ArrayList values,
javax.servlet.jsp.PageContext context)
Adds an ArrayList of metadata values to the re-ordering/grouping/labeling
cache
|
void |
setResponseList(java.lang.String[] values,
javax.servlet.jsp.PageContext context)
Adds an ArrayList of metadata values to the re-ordering/grouping/labeling
cache
|
void |
setResponseValue(java.lang.String value,
javax.servlet.jsp.PageContext context)
Adds a single metadata value to the re-ordering/grouping/labeling cache
|
void |
setTreeKey(java.lang.String key)
Sets the treeKey attribute of the MetadataVocabOPML object
|
void |
skippedEntity(java.lang.String name)
(SAX) Required by SAX, but not used here
|
void |
startDocument()
(SAX) Invoked at the start of any document parse
|
void |
startElement(java.lang.String namespaceURI,
java.lang.String lName,
java.lang.String qName,
org.xml.sax.Attributes atts)
(SAX) Invoked upon opening tag of an XML element
|
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
(SAX) Required by SAX, but not used here
|
public static final java.lang.String OPML_VERSION
public static final java.lang.String OPML_GROUPS_NAMESPACE
public static final java.lang.String OPML_NAMESPACE_PREFIX
public MetadataVocabOPML(boolean debug, java.lang.String loaderFile, javax.servlet.ServletContext servletContext)
debug
- loaderFile
- servletContext
- public org.dlese.dpc.gui.OPMLTree getCurrentTree()
public java.lang.String setCurrentTree(java.lang.String key, java.lang.String subGroup)
key
- system (framework/version/audience/language/id) keysubGroup
- The new currentTree valuepublic java.lang.String setCurrentTree(java.lang.String key)
key
- system (framework/version/audience/language/id) keypublic org.dlese.dpc.gui.OPMLTree getNewTree()
public void setTreeKey(java.lang.String key)
key
- The new treeKey valuepublic void addError(java.lang.String err)
addError
in interface MetadataVocab
err
- The feature to be added to the Error attributepublic void addMessage(java.lang.String msg)
addMessage
in interface MetadataVocab
msg
- The feature to be added to the Message attributepublic java.util.ArrayList getErrors()
getErrors
in interface MetadataVocab
public java.util.Set getVocabSystemInterfaces()
getVocabSystemInterfaces
in interface MetadataVocab
public java.lang.String getMetaNameOfId(java.lang.String system, java.lang.String fieldId, java.lang.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(java.lang.String fieldId, java.lang.String valueId)
getFieldValueIdPairExists
in interface MetadataVocab
fieldId
- Encoded vocabulary field IdvalueId
- Encoded vocabulary value Idpublic java.lang.String getFieldValueSystemId(java.lang.String field, java.lang.String value) throws java.lang.Exception
getFieldValueSystemId
in interface MetadataVocab
field
- Metadata field namevalue
- Metadata value namejava.lang.Exception
public java.lang.String getFieldSystemId(java.lang.String field) throws java.lang.Exception
getFieldSystemId
in interface MetadataVocab
field
- Metadata field namejava.lang.Exception
public java.lang.String getFilenameOfFieldPath(java.lang.String format, java.lang.String version, java.lang.String audience, java.lang.String language, java.lang.String fieldPath)
fieldPath
- field XPathformat
- version
- audience
- language
- public java.lang.String getUiLabelOf(java.lang.String system, java.lang.String metadataField, java.lang.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 java.lang.String getTopLevelAbbrevLabelOf(java.lang.String system, java.lang.String metadataField, java.lang.String systemFieldId, java.lang.String systemValueId)
getTopLevelAbbrevLabelOf
in interface MetadataVocab
system
- metadataField
- systemFieldId
- systemValueId
- public java.util.ArrayList getVocabNodes(java.lang.String metaFormat, java.lang.String audience, java.lang.String language, java.lang.String field)
getVocabNodes
in interface MetadataVocab
metaFormat
- audience
- language
- field
- public java.util.ArrayList getVocabNodes(java.lang.String metaFormat, java.lang.String audience, java.lang.String language, java.lang.String field, java.lang.String group)
getVocabNodes
in interface MetadataVocab
metaFormat
- audience
- language
- field
- group
- public java.util.ArrayList getVocabNodes(java.lang.String system, java.lang.String group)
getVocabNodes
in interface MetadataVocab
system
- group
- public java.lang.String getVocabSelectList(java.lang.String system, java.lang.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 java.lang.String getVocabCheckboxes(java.lang.String system, java.lang.String group, int size, java.lang.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 java.lang.String getNodeId(org.dlese.dpc.gui.OPMLTree.TreeNode node)
node
- public java.lang.String getVocabCheckbox(java.lang.String groupTop, java.lang.String value, java.lang.String label, MetadataVocabInputState inputState)
getVocabCheckbox
in interface MetadataVocab
groupTop
- Top-level vocab groupvalue
- vocab valuelabel
- UI labelinputState
- public java.lang.String getVocabTreeMenu(java.lang.String system, java.lang.String language, java.lang.String group, javax.servlet.jsp.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 java.lang.String getVocabHiddenInputs(java.lang.String system, java.lang.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 java.lang.String getMetaFormatOfField(java.lang.String field)
getMetaFormatOfField
in interface MetadataVocab
field
- public java.util.ArrayList getVocabFieldIds()
getVocabFieldIds
in interface MetadataVocab
public java.util.ArrayList getVocabFieldPaths()
public void doneLoading()
doneLoading
in interface MetadataVocab
public java.lang.String getNameFromPath(java.lang.String fieldPath)
fieldPath
- public VocabNode findVocabNode(java.lang.String system, java.lang.String fieldName, java.lang.String valueName)
findVocabNode
in interface MetadataVocab
system
- fieldName
- valueName
- public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator
in interface org.xml.sax.ContentHandler
locator
- The new saxLocator valuepublic void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void startElement(java.lang.String namespaceURI, java.lang.String lName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
namespaceURI
- lName
- qName
- atts
- org.xml.sax.SAXException
public void endElement(java.lang.String namespaceURI, java.lang.String lName, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
namespaceURI
- XML namespacelName
- local tag nameqName
- fully qualified tag nameorg.xml.sax.SAXException
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
ch
- start
- length
- org.xml.sax.SAXException
public void ignorableWhitespace(char[] ch, int start, int length) throws org.xml.sax.SAXException
ignorableWhitespace
in interface org.xml.sax.ContentHandler
ch
- start
- length
- org.xml.sax.SAXException
public void startPrefixMapping(java.lang.String prefix, java.lang.String uri) throws org.xml.sax.SAXException
startPrefixMapping
in interface org.xml.sax.ContentHandler
prefix
- uri
- org.xml.sax.SAXException
public void endPrefixMapping(java.lang.String prefix) throws org.xml.sax.SAXException
endPrefixMapping
in interface org.xml.sax.ContentHandler
prefix
- org.xml.sax.SAXException
public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
processingInstruction
in interface org.xml.sax.ContentHandler
target
- data
- org.xml.sax.SAXException
public void skippedEntity(java.lang.String name) throws org.xml.sax.SAXException
skippedEntity
in interface org.xml.sax.ContentHandler
name
- org.xml.sax.SAXException
public java.lang.String errorDisplay(java.lang.String err, java.lang.String method)
err
- method
- public java.lang.String getDescription(org.dlese.dpc.gui.OPMLTree.TreeNode node, javax.servlet.jsp.PageContext page)
page
- node
- public java.lang.String getCurrentVersion(java.lang.String metaFormat)
getCurrentVersion
in interface MetadataVocab
metaFormat
- metadata format (i.e. "adn")public VocabNode getVocabNode(java.lang.String metaFormat, java.lang.String metaVersion, java.lang.String audience, java.lang.String language, java.lang.String fieldName, java.lang.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(java.lang.String metaFormat, java.lang.String audience, java.lang.String language, java.lang.String fieldName, java.lang.String valueName)
getVocabNode
in interface MetadataVocab
metaFormat
- audience
- language
- fieldName
- valueName
- public java.lang.String getTranslatedField(java.lang.String metaFormat, java.lang.String metaVersion, java.lang.String field) throws java.lang.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")java.lang.Exception
public java.lang.String getTranslatedField(java.lang.String metaFormat, java.lang.String field) throws java.lang.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")java.lang.Exception
public java.lang.String getTranslatedFieldPath(java.lang.String metaFormat, java.lang.String metaVersion, java.lang.String field) throws java.lang.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")java.lang.Exception
public java.lang.String getTranslatedFieldPath(java.lang.String metaFormat, java.lang.String field) throws java.lang.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")java.lang.Exception
public java.lang.String getTranslatedValue(java.lang.String metaFormat, java.lang.String metaVersion, java.lang.String field, java.lang.String value) throws java.lang.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")java.lang.Exception
public java.lang.String getTranslatedValue(java.lang.String metaFormat, java.lang.String field, java.lang.String value) throws java.lang.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")java.lang.Exception
public boolean hasValue(java.lang.String metaFormat, java.lang.String metaVersion, java.lang.String field, java.lang.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(java.lang.String metaFormat, java.lang.String field, java.lang.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 java.lang.String getUiValueLabel(java.lang.String metaFormat, java.lang.String metaVersion, java.lang.String audience, java.lang.String language, java.lang.String field, java.lang.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 java.lang.String getUiValueLabel(java.lang.String metaFormat, java.lang.String metaVersion, java.lang.String audience, java.lang.String language, java.lang.String field, java.lang.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 java.lang.String getUiValueLabel(java.lang.String metaFormat, java.lang.String audience, java.lang.String language, java.lang.String field, java.lang.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 java.lang.String getUiValueLabel(java.lang.String audience, java.lang.String language, java.lang.String field, java.lang.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 java.lang.String getUiFieldLabel(java.lang.String metaFormat, java.lang.String metaVersion, java.lang.String audience, java.lang.String language, java.lang.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 java.lang.String getUiFieldLabel(java.lang.String metaFormat, java.lang.String metaVersion, java.lang.String audience, java.lang.String language, java.lang.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 java.lang.String getUiFieldLabel(java.lang.String metaFormat, java.lang.String audience, java.lang.String language, java.lang.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 java.lang.String getUiFieldLabel(java.lang.String audience, java.lang.String language, java.lang.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 java.lang.String getUiValueDisplay(java.lang.String metaFormat, java.lang.String metaVersion, java.lang.String audience, java.lang.String language, java.lang.String field, java.lang.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 java.lang.String getUiValueDisplay(java.lang.String metaFormat, java.lang.String audience, java.lang.String language, java.lang.String field, java.lang.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(javax.servlet.jsp.PageContext context, java.lang.String metaFormat, java.lang.String metaVersion, java.lang.String audience, java.lang.String language, java.lang.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(javax.servlet.jsp.PageContext context, java.lang.String metaFormat, java.lang.String audience, java.lang.String language, java.lang.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(java.lang.String value, javax.servlet.jsp.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(java.util.ArrayList values, javax.servlet.jsp.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(java.lang.String[] values, javax.servlet.jsp.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 java.lang.String getResponseOPML(javax.servlet.jsp.PageContext context)
getResponseOPML
in interface MetadataVocab
context
- JSP page contextMetadataVocab.setResponseValue(String,PageContext)
,
MetadataVocab.setResponseList(String[],PageContext)
,
MetadataVocab.setResponseList(ArrayList,PageContext)
,
MetadataVocab.setResponseGroup(PageContext,String,String,String,String,String)
public java.lang.String getOPML(java.lang.String metaFormat, java.lang.String metaVersion, java.lang.String audience, java.lang.String language, java.lang.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 java.lang.String getOPML(java.lang.String metaFormat, java.lang.String audience, java.lang.String language, java.lang.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 java.lang.String getOPML(java.lang.String metaFormat, java.lang.String metaVersion, java.lang.String audience, java.lang.String language, java.lang.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 java.lang.String getOPML(java.lang.String metaFormat, java.lang.String audience, java.lang.String language, java.lang.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 java.lang.String getDateStamp()
public void reportMessage(java.lang.String msg)
reportMessage
in interface MetadataVocab
msg
- public void reportError(java.lang.String err)
reportError
in interface MetadataVocab
err
- public java.util.ArrayList getMessages()
getMessages
in interface MetadataVocab
public java.lang.String getUiLabelOfSystemIds(java.lang.String system, java.lang.String systemFieldId, java.lang.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 java.lang.String getUiLabelOfSystemIds(java.lang.String system, java.lang.String systemFieldId, java.lang.String systemValueId)
getUiLabelOfSystemIds
in interface MetadataVocab
system
- Vocabulary system/interface/language trio, i.e.
"dds.default.en-us"systemFieldId
- Encoded field IdsystemValueId
- Encoded value Idpublic java.lang.String getUiLabelOfFieldId(java.lang.String fieldId)
getUiLabelOfFieldId
in interface MetadataVocab
fieldId
- public java.lang.String getUiLabelOf(java.lang.String system, java.lang.String metadataField, java.lang.String metadataValue)
getUiLabelOf
in interface MetadataVocab
system
- metadataField
- metadataValue
- public java.util.ArrayList getCacheValuesInOrder(java.lang.String system, java.lang.String group, java.util.Map cache)
getCacheValuesInOrder
in interface MetadataVocab
system
- group
- cache
-