Package org.dlese.dpc.vocab
Interface MetadataVocab
- All Superinterfaces:
ContentHandler
- All Known Implementing Classes:
MetadataVocabOPML,MetadataVocabTermsGroups
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:
- MetadataVocabOPML
- MetadataVocabTermsGroups (Deprecated )
- Author:
- Ryan Deardorff
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a feature to the Error attribute of the MetadataVocab objectvoidaddMessage(String msg) Adds a feature to the Message attribute of the MetadataVocab objectvoidInvoked when XML parsing completesfindVocabNode(String system, String fieldName, String valueName) Deprecated.As of MetadataUI v1.0, replaced by getVocabNode()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.getCurrentVersion(String metaFormat) Get the most recently loaded metadata format version numberGet the list of any errors that have occuredgetFieldSystemId(String field) Deprecated.As of MetadataUI v1.0, replaced by getTranslatedField()booleangetFieldValueIdPairExists(String fieldId, String valueId) Does a vocabulary definition exist for the given encoded field/value Ids?getFieldValueSystemId(String field, String value) Deprecated.As of MetadataUI v1.0, replaced by getTranslatedValue()Return stored messagesgetMetaFormatOfField(String field) Gets the metadata format associated with the given field identifier (either encoded ID or PATH)getMetaNameOfId(String system, String fieldId, String valueId) Deprecated.As of MetadataUI v1.0, replaced by getTranslatedValue()Gets the OPML for a given format/audience/language, using the current or most recently loaded version without the XML declaration taggetOPML(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 versionGets the OPML for a given format/version/audience/language without the XML declaration taggetOPML(String metaFormat, String metaVersion, String audience, String language, String field, boolean includeXmlDeclaration) Gets the OPML for a given format/version/audience/languagegetResponseOPML(PageContext context) Gets the re-ordered/grouped/labeled tree of metadata values from the cache created by setResponseGroup()getTopLevelAbbrevLabelOf(String system, String metadataField, String systemFieldId, String systemValueId) Gets the topLevelAbbrevLabelOf attribute of the MetadataVocab objectgetTranslatedField(String metaFormat, String field) Gets the translated FIELD NAME/ID of the given FIELD NAME/IDgetTranslatedField(String metaFormat, String metaVersion, String field) Gets the translated FIELD NAME/ID of the given FIELD NAME/IDgetTranslatedFieldPath(String metaFormat, String field) Gets the translated FIELD XPATH of the given FIELD NAME/IDgetTranslatedFieldPath(String metaFormat, String metaVersion, String field) Gets the translated FIELD XPATH of the given FIELD NAME/IDgetTranslatedValue(String metaFormat, String field, String value) Gets the translated VALUE NAME/ID of the given FIELD+VALUE NAMEs/IDsgetTranslatedValue(String metaFormat, String metaVersion, String field, String value) Gets the translated VALUE NAME/ID of the given FIELD+VALUE NAMEs/IDsgetUiFieldLabel(String audience, String language, String field, boolean abbrev) Gets the uiFieldLabel attribute of the MetadataVocab objectgetUiFieldLabel(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 numbergetUiFieldLabel(String metaFormat, String metaVersion, String audience, String language, String field) Gets the non-abbreviated UI label associated with the given FIELD NAME/IDgetUiFieldLabel(String metaFormat, String metaVersion, String audience, String language, String field, boolean abbrev) Gets the UI label associated with the given FIELD NAME/IDgetUiLabelOf(String system, String metadataField, String metadataValue) Deprecated.As of MetadataUI v1.0, replaced by getUiValueLabel()getUiLabelOf(String system, String metadataField, String metadataValue, boolean abbreviated) Deprecated.As of MetadataUI v1.0, replaced by getUiValueLabel()getUiLabelOfFieldId(String fieldId) Deprecated.As of MetadataUI v1.0, replaced by getUiFieldLabel()getUiLabelOfSystemIds(String system, String systemFieldId, String systemValueId) Deprecated.As of MetadataUI v1.0, replaced by getUiValueLabel()getUiLabelOfSystemIds(String system, String systemFieldId, String systemValueId, boolean abbreviated) Deprecated.As of MetadataUI v1.0, replaced by getUiValueLabel()Gets the "display" attribute value for the given field/value vocab using the CURRENT metadata framework versiongetUiValueDisplay(String metaFormat, String metaVersion, String audience, String language, String field, String value) Gets the "display" attribute value for the given field/value vocabgetUiValueLabel(String audience, String language, String field, String value, boolean abbrev) Gets the uiValueLabel attribute of the MetadataVocab objectgetUiValueLabel(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 numbergetUiValueLabel(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/IDSgetUiValueLabel(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/IDSgetVocabCheckbox(String groupTop, String value, String label, MetadataVocabInputState inputState) Returns a SINGLE HTML CHECKBOX input of the specified part of the vocabulary.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.Gets the vocabFieldIds attribute of the MetadataVocab objectgetVocabHiddenInputs(String system, String group, MetadataVocabInputState inputState) Generates HTML HIDDEN inputs of the specified part of the vocabulary.getVocabNode(String metaFormat, String audience, String language, String fieldName, String valueName) Gets a VocabNode for the given field/value pairgetVocabNodes(String system, String group) Gets the vocabNodes attribute of the MetadataVocab objectgetVocabNodes(String metaFormat, String audience, String language, String field) Gets the vocabNodes attribute of the MetadataVocab objectGets the vocabNodes attribute of the MetadataVocab objectgetVocabSelectList(String system, String group, int size, MetadataVocabInputState inputState) Returns an HTML SELECT list of the specified part of the vocabulary.Gets the set of interfaces defined in this instance of the vocabsgetVocabTreeMenu(String system, String language, String group, PageContext page) Generates an absolutely-positioned JavaScript Tree Menu (collapsable flyout hierarchy) of the specified part of the vocabularyvoidreportError(String err) Log an errorvoidreportMessage(String msg) Log a messagevoidsetResponseGroup(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 versionvoidsetResponseGroup(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)voidsetResponseList(String[] values, PageContext context) Adds an ArrayList of metadata values to the re-ordering/grouping/labeling cachevoidsetResponseList(ArrayList values, PageContext context) Adds an ArrayList of metadata values to the re-ordering/grouping/labeling cachevoidsetResponseValue(String value, PageContext context) Adds a single metadata value to the re-ordering/grouping/labeling cacheMethods inherited from interface org.xml.sax.ContentHandler
characters, declaration, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
-
Method Details
-
getErrors
ArrayList getErrors()Get the list of any errors that have occured- Returns:
- The errors value
-
addMessage
Adds a feature to the Message attribute of the MetadataVocab object- Parameters:
msg- The feature to be added to the Message attribute
-
addError
Adds a feature to the Error attribute of the MetadataVocab object- Parameters:
err- The feature to be added to the Error attribute
-
setResponseGroup
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)- Parameters:
context- JSP page contextmetaFormat- 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")- See Also:
-
setResponseGroup
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- Parameters:
context- JSP page contextmetaFormat- metadata format (i.e. "adn")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")- See Also:
-
setResponseValue
Adds a single metadata value to the re-ordering/grouping/labeling cache- Parameters:
value- metadata VALUE encoded ID (i.e. "04") or metadata NAME (i.e. "DLESE:Intermediate elementary")context- JSP page context- See Also:
-
setResponseList
Adds an ArrayList of metadata values to the re-ordering/grouping/labeling cache- Parameters:
values- List of metadata VALUE encoded ID (i.e. "04") or metadata NAME (i.e. "DLESE:Intermediate elementary")context- JSP page context- See Also:
-
setResponseList
Adds an ArrayList of metadata values to the re-ordering/grouping/labeling cache- Parameters:
values- List of metadata VALUE encoded ID (i.e. "04") or metadata NAME (i.e. "DLESE:Intermediate elementary")context- JSP page context- See Also:
-
getResponseOPML
Gets the re-ordered/grouped/labeled tree of metadata values from the cache created by setResponseGroup()- Parameters:
context- JSP page context- Returns:
- OPML for the group specified with setResponseGroup() and trimmed to the subset indicated by values passed into setResponse()
- See Also:
-
getVocabSystemInterfaces
Set getVocabSystemInterfaces()Gets the set of interfaces defined in this instance of the vocabs- Returns:
- The vocabSystemInterfaces value
-
getFieldValueIdPairExists
Does a vocabulary definition exist for the given encoded field/value Ids?- Parameters:
fieldId- Encoded vocabulary field IdvalueId- Encoded vocabulary value Id- Returns:
- The fieldValueIdPairExists value
-
getVocabNodes
Gets the vocabNodes attribute of the MetadataVocab object- Parameters:
system-group-- Returns:
- The vocabNodes value
-
getVocabSelectList
String getVocabSelectList(String system, String group, int size, MetadataVocabInputState inputState) Returns an HTML SELECT list of the specified part of the vocabulary.- Parameters:
system-group- colon-seperated specifier of the part of the vocab hierarchy which is to be displayedsize- size (height) of the SELECT listinputState-- Returns:
- The vocabSelectList value
-
getVocabCheckboxes
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.- Parameters:
system-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?inputState-- Returns:
- the HTML code
-
getVocabCheckbox
String getVocabCheckbox(String groupTop, String value, String label, MetadataVocabInputState inputState) Returns a SINGLE HTML CHECKBOX input of the specified part of the vocabulary.- Parameters:
groupTop- Top-level vocab groupvalue- vocab valuelabel- UI labelinputState-- Returns:
- the HTML code
-
getVocabTreeMenu
Generates an absolutely-positioned JavaScript Tree Menu (collapsable flyout hierarchy) of the specified part of the vocabulary- Parameters:
system-language-group- colon-seperated specifier of the part of the vocab hierarchy which is to be displayedpage-- Returns:
- the Javascript code defining the menu
-
getVocabHiddenInputs
Generates HTML HIDDEN inputs of the specified part of the vocabulary.- Parameters:
system-group- colon-seperated specifier of the part of the vocab hierarchy which is to be displayedinputState-- Returns:
- the HTML code
-
getCacheValuesInOrder
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.- Parameters:
system-group-cache-- Returns:
- The orderedCacheValues value
-
getVocabFieldIds
ArrayList getVocabFieldIds()Gets the vocabFieldIds attribute of the MetadataVocab object- Returns:
- The vocabFieldIds value
-
doneLoading
void doneLoading()Invoked when XML parsing completes -
findVocabNode
Deprecated.As of MetadataUI v1.0, replaced by getVocabNode()Description of the Method- Parameters:
system-fieldName-valueName-- Returns:
-
getVocabNode
VocabNode getVocabNode(String metaFormat, String audience, String language, String fieldName, String valueName) Gets a VocabNode for the given field/value pair- Parameters:
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- Returns:
- VocabNode for the vocab
-
getVocabNodes
Gets the vocabNodes attribute of the MetadataVocab object- Parameters:
metaFormat-audience-language-field-- Returns:
- The vocabNodes value
-
getVocabNodes
ArrayList getVocabNodes(String metaFormat, String audience, String language, String field, String group) Gets the vocabNodes attribute of the MetadataVocab object- Parameters:
metaFormat-audience-language-field-group-- Returns:
- The vocabNodes value
-
getCurrentVersion
Get the most recently loaded metadata format version number- Parameters:
metaFormat- metadata format (i.e. "adn")- Returns:
- The current (most recently loaded) version for the given format
-
getTranslatedField
Gets the translated FIELD NAME/ID of the given FIELD NAME/ID- Parameters:
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")- Returns:
- The FIELD NAME/ID as translated from input FIELD NAME/ID, i.e. "gradeRange"
- Throws:
Exception
-
getTranslatedField
Gets the translated FIELD NAME/ID of the given FIELD NAME/ID- Parameters:
metaFormat- metadata format (i.e. "adn")field- metadata FIELD encoded ID (i.e. "gr") or metadata NAME (i.e. "gradeRange")- Returns:
- The FIELD NAME/ID as translated from input FIELD NAME/ID, i.e. "gradeRange"
- Throws:
Exception
-
getTranslatedFieldPath
Gets the translated FIELD XPATH of the given FIELD NAME/ID- Parameters:
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")- Returns:
- The FIELD XPATH as translated from input FIELD NAME/ID
- Throws:
Exception
-
getTranslatedFieldPath
Gets the translated FIELD XPATH of the given FIELD NAME/ID- Parameters:
metaFormat- metadata format (i.e. "adn")field- metadata FIELD encoded ID (i.e. "gr") or metadata NAME (i.e. "gradeRange")- Returns:
- The FIELD XPATH as translated from input FIELD NAME/ID
- Throws:
Exception
-
getTranslatedValue
String getTranslatedValue(String metaFormat, String metaVersion, String field, String value) throws Exception Gets the translated VALUE NAME/ID of the given FIELD+VALUE NAMEs/IDs- Parameters:
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")- Returns:
- The VALUE NAME/ID as translated from input FIELD+VALUE NAMEs/IDs
- Throws:
Exception
-
getTranslatedValue
Gets the translated VALUE NAME/ID of the given FIELD+VALUE NAMEs/IDs- Parameters:
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")- Returns:
- The VALUE NAME/ID as translated from input FIELD+VALUE NAMEs/IDs
- Throws:
Exception
-
getUiValueLabel
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- Parameters:
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")value- metadata VALUE encoded ID (i.e. "04") or metadata NAME (i.e. "DLESE:Intermediate elementary")abbrev- get the abbreviated version of the label?- Returns:
- The user interface label associated with the given format/version/audience/language value
-
getUiValueLabel
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- Parameters:
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")value- metadata VALUE encoded ID (i.e. "04") or metadata NAME (i.e. "DLESE:Intermediate elementary")- Returns:
- The user interface label associated with the given format/version/audience/language value
-
getUiValueLabel
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- Parameters:
metaFormat- metadata format (i.e. "adn")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")value- metadata VALUE encoded ID (i.e. "04") or metadata NAME (i.e. "DLESE:Intermediate elementary")abbrev- get the abbreviated version of the label?- Returns:
- The user interface label associated with the given format/version/audience/language value
-
getUiValueLabel
String getUiValueLabel(String audience, String language, String field, String value, boolean abbrev) Gets the uiValueLabel attribute of the MetadataVocab object- Parameters:
audience-language-field-value-abbrev-- Returns:
- The uiValueLabel value
-
getUiFieldLabel
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- Parameters:
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")abbrev- get the abbreviated version of the label?- Returns:
- The user interface label associated with the given format/version/audience/language value
-
getUiFieldLabel
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- Parameters:
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")- Returns:
- The user interface label associated with the given format/version/audience/language value
-
getUiFieldLabel
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- Parameters:
metaFormat- metadata format (i.e. "adn")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- get the abbreviated version of the label?- Returns:
- The user interface label associated with the given format/version/audience/language value
-
getUiFieldLabel
Gets the uiFieldLabel attribute of the MetadataVocab object- Parameters:
audience-language-field-abbrev-- Returns:
- The uiFieldLabel value
-
getUiValueDisplay
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- Parameters:
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")value- metadata VALUE encoded ID (i.e. "04") or metadata NAME (i.e. "DLESE:Intermediate elementary")- Returns:
- The uiValueDisplay value
-
getUiValueDisplay
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- Parameters:
metaFormat- metadata format (i.e. "adn")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")value- metadata VALUE encoded ID (i.e. "04") or metadata NAME (i.e. "DLESE:Intermediate elementary")- Returns:
- The uiValueDisplay value
-
getOPML
String getOPML(String metaFormat, String metaVersion, String audience, String language, String field, boolean includeXmlDeclaration) Gets the OPML for a given format/version/audience/language- Parameters:
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")includeXmlDeclaration- should the <?xml...?> declaration tag be included with the output?- Returns:
- OPML for the given format/audience
-
getOPML
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- Parameters:
metaFormat- metadata format (i.e. "adn")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")includeXmlDeclaration- should the <?xml...?> declaration tag be included with the output?- Returns:
- OPML for the given format/audience
-
getOPML
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- Parameters:
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")- Returns:
- OPML for the given format/audience
-
getOPML
Gets the OPML for a given format/audience/language, using the current or most recently loaded version without the XML declaration tag- Parameters:
metaFormat- metadata format (i.e. "adn")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")- Returns:
- OPML for the given format/audience
-
getMetaNameOfId
Deprecated.As of MetadataUI v1.0, replaced by getTranslatedValue()Gets the metadata value or field name of the given encoded field and value Ids. Pass "" (empty string) for valueId to have it return the metadata field name (instead of value).- Parameters:
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- Returns:
- The metaNameOfId value
- See Also:
-
getFieldValueSystemId
Deprecated.As of MetadataUI v1.0, replaced by getTranslatedValue()Gets the encoded value Id of the given metadata field/value pair- Parameters:
field- Metadata field namevalue- Metadata value name- Returns:
- The encoded value Id
- Throws:
Exception
-
getFieldSystemId
Deprecated.As of MetadataUI v1.0, replaced by getTranslatedField()Gets the encoded field Id of the given metadata field- Parameters:
field- Metadata field name- Returns:
- The encoded field Id
- Throws:
Exception
-
getUiLabelOf
Deprecated.As of MetadataUI v1.0, replaced by getUiValueLabel()Gets the UI label of the given metadata field/value pair- Parameters:
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?- Returns:
- The user interface label associated with the given vocabulary value
-
getUiLabelOf
Deprecated.As of MetadataUI v1.0, replaced by getUiValueLabel()Gets the full (non-abbreviated) UI label of the given metadata field/value pair- Parameters:
system- Vocabulary system/interface/language trio, i.e. "adn/0.6.50/community/en-us"metadataField- Metadata field namemetadataValue- Metadata value name- Returns:
- The user interface label associated with the given vocabulary value
-
getUiLabelOfFieldId
Deprecated.As of MetadataUI v1.0, replaced by getUiFieldLabel()Gets the uiLabelOfFieldId attribute of the MetadataVocab object- Parameters:
fieldId- Description of the Parameter- Returns:
- The uiLabelOfFieldId value
-
getUiLabelOfSystemIds
String getUiLabelOfSystemIds(String system, String systemFieldId, String systemValueId, boolean abbreviated) Deprecated.As of MetadataUI v1.0, replaced by getUiValueLabel()Gets the UI label of the given encoded field/value Id pair- Parameters:
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?- Returns:
- The user interface label associated with the given vocabulary value
-
getUiLabelOfSystemIds
Deprecated.As of MetadataUI v1.0, replaced by getUiValueLabel()Gets the full (non-abbreviated) UI label of the given encoded field/value Id pair- Parameters:
system- Vocabulary system/interface/language trio, i.e. "dds.default.en-us"systemFieldId- Encoded field IdsystemValueId- Encoded value Id- Returns:
- The user interface label associated with the given vocabulary value
-
getMetaFormatOfField
Gets the metadata format associated with the given field identifier (either encoded ID or PATH)- Parameters:
field-- Returns:
- The metaFormatOfField value
-
getTopLevelAbbrevLabelOf
String getTopLevelAbbrevLabelOf(String system, String metadataField, String systemFieldId, String systemValueId) Gets the topLevelAbbrevLabelOf attribute of the MetadataVocab object- Parameters:
system-metadataField-systemFieldId-systemValueId-- Returns:
- The topLevelAbbrevLabelOf value
-
getMessages
ArrayList getMessages()Return stored messages- Returns:
- The messages value
-
reportMessage
Log a message- Parameters:
msg-
-
reportError
Log an error- Parameters:
err-
-