|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MetadataVocab
Interface for classes that manage audience-based metadata controlled vocabulary UI displays and encoded ID translation to/from metadata field/value names/xpaths. Current implementations:
Method Summary | |
---|---|
void |
addError(String err)
Adds a feature to the Error attribute of the MetadataVocab object |
void |
addMessage(String msg)
Adds a feature to the Message attribute of the MetadataVocab object |
void |
doneLoading()
Invoked when XML parsing completes |
VocabNode |
findVocabNode(String system,
String fieldName,
String valueName)
Deprecated. As of MetadataUI v1.0, replaced by getVocabNode() |
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 metaFormat)
Get the most recently loaded metadata format version number |
ArrayList |
getErrors()
Get the list of any errors that have occured |
String |
getFieldSystemId(String field)
Deprecated. As of MetadataUI v1.0, replaced by getTranslatedField() |
boolean |
getFieldValueIdPairExists(String fieldId,
String valueId)
Does a vocabulary definition exist for the given encoded field/value Ids? |
String |
getFieldValueSystemId(String field,
String value)
Deprecated. As of MetadataUI v1.0, replaced by getTranslatedValue() |
ArrayList |
getMessages()
Return stored messages |
String |
getMetaFormatOfField(String field)
Gets the metadata format associated with the given field identifier (either encoded ID or PATH) |
String |
getMetaNameOfId(String system,
String fieldId,
String valueId)
Deprecated. As of MetadataUI v1.0, replaced by getTranslatedValue() |
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 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 |
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 NAME/ID |
String |
getTranslatedFieldPath(String metaFormat,
String metaVersion,
String field)
Gets the translated FIELD XPATH of the given FIELD NAME/ID |
String |
getTranslatedValue(String metaFormat,
String field,
String value)
Gets the translated VALUE NAME/ID of the given FIELD+VALUE NAMEs/IDs |
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 MetadataVocab 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)
Deprecated. As of MetadataUI v1.0, replaced by getUiValueLabel() |
String |
getUiLabelOf(String system,
String metadataField,
String metadataValue,
boolean abbreviated)
Deprecated. As of MetadataUI v1.0, replaced by getUiValueLabel() |
String |
getUiLabelOfFieldId(String fieldId)
Deprecated. As of MetadataUI v1.0, replaced by getUiFieldLabel() |
String |
getUiLabelOfSystemIds(String system,
String systemFieldId,
String systemValueId)
Deprecated. As of MetadataUI v1.0, replaced by getUiValueLabel() |
String |
getUiLabelOfSystemIds(String system,
String systemFieldId,
String systemValueId,
boolean abbreviated)
Deprecated. As of MetadataUI v1.0, replaced by getUiValueLabel() |
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 MetadataVocab 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 a VocabNode for the given field/value pair |
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 MetadataVocab object |
ArrayList |
getVocabNodes(String metaFormat,
String audience,
String language,
String field,
String group)
Gets the vocabNodes attribute of the MetadataVocab 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 interfaces defined in this instance of the vocabs |
String |
getVocabTreeMenu(String system,
String language,
String group,
PageContext page)
Generates an absolutely-positioned JavaScript Tree Menu (collapsable flyout hierarchy) of the specified part of the vocabulary |
void |
reportError(String err)
Log an error |
void |
reportMessage(String msg)
Log a message |
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 |
Methods inherited from interface org.xml.sax.ContentHandler |
---|
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping |
Method Detail |
---|
ArrayList getErrors()
void addMessage(String msg)
msg
- The feature to be added to the Message attributevoid addError(String err)
err
- The feature to be added to the Error attributevoid setResponseGroup(PageContext context, String metaFormat, String metaVersion, String audience, String language, String field)
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")setResponseValue(String,PageContext)
,
setResponseList(String[],PageContext)
,
setResponseList(ArrayList,PageContext)
,
getResponseOPML(PageContext)
void setResponseGroup(PageContext context, String metaFormat, String audience, String language, String field)
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")setResponseValue(String,PageContext)
,
setResponseList(String[],PageContext)
,
setResponseList(ArrayList,PageContext)
,
getResponseOPML(PageContext)
void setResponseValue(String value, PageContext context)
value
- metadata VALUE encoded ID (i.e. "04") or metadata NAME
(i.e. "DLESE:Intermediate elementary")context
- JSP page contextsetResponseGroup(PageContext,String,String,String,String,String)
,
setResponseList(String[],PageContext)
,
setResponseList(ArrayList,PageContext)
,
getResponseOPML(PageContext)
void setResponseList(ArrayList values, PageContext context)
context
- JSP page contextvalues
- List of metadata VALUE encoded ID (i.e. "04") or metadata
NAME (i.e. "DLESE:Intermediate elementary")setResponseGroup(PageContext,String,String,String,String,String)
,
setResponseValue(String,PageContext)
,
setResponseList(String[],PageContext)
,
getResponseOPML(PageContext)
void setResponseList(String[] values, PageContext context)
context
- JSP page contextvalues
- List of metadata VALUE encoded ID (i.e. "04") or metadata
NAME (i.e. "DLESE:Intermediate elementary")setResponseGroup(PageContext,String,String,String,String,String)
,
setResponseValue(String,PageContext)
,
setResponseList(ArrayList,PageContext)
,
getResponseOPML(PageContext)
String getResponseOPML(PageContext context)
context
- JSP page context
setResponseValue(String,PageContext)
,
setResponseList(String[],PageContext)
,
setResponseList(ArrayList,PageContext)
,
setResponseGroup(PageContext,String,String,String,String,String)
Set getVocabSystemInterfaces()
boolean getFieldValueIdPairExists(String fieldId, String valueId)
fieldId
- Encoded vocabulary field IdvalueId
- Encoded vocabulary value Id
ArrayList getVocabNodes(String system, String group)
system
- group
-
String getVocabSelectList(String system, String group, int size, MetadataVocabInputState inputState)
group
- colon-seperated specifier of the part of the vocab
hierarchy which is to be displayedsize
- size (height) of the SELECT listsystem
- inputState
-
String getVocabCheckboxes(String system, String group, int size, String tdWidth, boolean skipTopRow, MetadataVocabInputState inputState)
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
-
String getVocabCheckbox(String groupTop, String value, String label, MetadataVocabInputState inputState)
groupTop
- Top-level vocab groupvalue
- vocab valuelabel
- UI labelinputState
-
String getVocabTreeMenu(String system, String language, String group, PageContext page)
group
- colon-seperated specifier of the part of the vocab
hierarchy which is to be displayedsystem
- page
- language
-
String getVocabHiddenInputs(String system, String group, MetadataVocabInputState inputState)
group
- colon-seperated specifier of the part of the vocab
hierarchy which is to be displayedsystem
- inputState
-
ArrayList getCacheValuesInOrder(String system, String group, Map cache)
cache
- system
- group
-
ArrayList getVocabFieldIds()
void doneLoading()
VocabNode findVocabNode(String system, String fieldName, String valueName)
system
- fieldName
- valueName
-
VocabNode getVocabNode(String metaFormat, 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 value
ArrayList getVocabNodes(String metaFormat, String audience, String language, String field)
metaFormat
- audience
- language
- field
-
ArrayList getVocabNodes(String metaFormat, String audience, String language, String field, String group)
metaFormat
- audience
- language
- field
- group
-
String getCurrentVersion(String metaFormat)
metaFormat
- metadata format (i.e. "adn")
String getTranslatedField(String metaFormat, String metaVersion, String field) throws Exception
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
String getTranslatedField(String metaFormat, String field) throws Exception
field
- metadata FIELD encoded ID (i.e. "gr") or metadata
NAME (i.e. "gradeRange")metaFormat
- metadata format (i.e. "adn")
Exception
String getTranslatedFieldPath(String metaFormat, String metaVersion, String field) throws Exception
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
String getTranslatedFieldPath(String metaFormat, String field) throws Exception
field
- metadata FIELD encoded ID (i.e. "gr") or metadata
NAME (i.e. "gradeRange")metaFormat
- metadata format (i.e. "adn")
Exception
String getTranslatedValue(String metaFormat, String metaVersion, String field, String value) throws Exception
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
String getTranslatedValue(String metaFormat, String field, String value) throws Exception
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
String getUiValueLabel(String metaFormat, String metaVersion, String audience, String language, String field, String value, boolean abbrev)
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"
String getUiValueLabel(String metaFormat, String metaVersion, String audience, String language, String field, String value)
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"
String getUiValueLabel(String metaFormat, String audience, String language, String field, String value, boolean abbrev)
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?
String getUiValueLabel(String audience, String language, String field, String value, boolean abbrev)
audience
- language
- field
- value
- abbrev
-
String getUiFieldLabel(String metaFormat, String metaVersion, String audience, String language, String field, boolean abbrev)
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")
String getUiFieldLabel(String metaFormat, String metaVersion, String audience, String language, String field)
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")
String getUiFieldLabel(String metaFormat, String audience, String language, String field, boolean abbrev)
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?
String getUiFieldLabel(String audience, String language, String field, boolean abbrev)
audience
- language
- field
- abbrev
-
String getUiValueDisplay(String metaFormat, String metaVersion, String audience, String language, String field, String value)
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"
String getUiValueDisplay(String metaFormat, String audience, String language, String field, String value)
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"
String getOPML(String metaFormat, String metaVersion, String audience, String language, String field, boolean includeXmlDeclaration)
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
- should the <?xml...?> declaration tag
be included with the output?
String getOPML(String metaFormat, String audience, String language, String field, boolean includeXmlDeclaration)
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
- should the <?xml...?> declaration tag
be included with the output?
String getOPML(String metaFormat, String metaVersion, String audience, String language, String field)
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")
String getOPML(String metaFormat, String audience, String language, String field)
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")
String getMetaNameOfId(String system, String fieldId, String valueId)
system
- Vocabulary framework/version/audience/language, i.e.
"adn/0.6.50/community/en-us" in v2.x (or "dds.descr.en-us" in v1.x)fieldId
- Encoded vocabulary field IdvalueId
- Encoded vocabulary value Id
MetadataVocab#getTranslatedField(String,String,String,String,String)
,
MetadataVocab#getTranslatedValue(String,String,String,String,String,String)
String getFieldValueSystemId(String field, String value) throws Exception
field
- Metadata field namevalue
- Metadata value name
Exception
String getFieldSystemId(String field) throws Exception
field
- Metadata field name
Exception
String getUiLabelOf(String system, String metadataField, String metadataValue, boolean abbreviated)
system
- Vocabulary system/interface/language trio, i.e.
"adn/0.6.50/community/en-us"metadataField
- Metadata field namemetadataValue
- Metadata value nameabbreviated
- Return the abbreviated form of the UI label?
String getUiLabelOf(String system, String metadataField, String metadataValue)
system
- Vocabulary system/interface/language trio, i.e.
"adn/0.6.50/community/en-us"metadataField
- Metadata field namemetadataValue
- Metadata value name
String getUiLabelOfFieldId(String fieldId)
fieldId
- Description of the Parameter
String getUiLabelOfSystemIds(String system, String systemFieldId, String systemValueId, boolean abbreviated)
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?
String getUiLabelOfSystemIds(String system, String systemFieldId, String systemValueId)
system
- Vocabulary system/interface/language trio, i.e.
"dds.default.en-us"systemFieldId
- Encoded field IdsystemValueId
- Encoded value Id
String getMetaFormatOfField(String field)
field
-
String getTopLevelAbbrevLabelOf(String system, String metadataField, String systemFieldId, String systemValueId)
system
- metadataField
- systemFieldId
- systemValueId
-
ArrayList getMessages()
void reportMessage(String msg)
msg
- void reportError(String err)
err
-
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |