public class VocabUtils
extends java.lang.Object
Constructor and Description |
---|
VocabUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getFieldContent(java.lang.String metaFormat,
java.lang.String[] values,
java.lang.String useVocabMapping,
MetadataVocab vocab)
Gets the vocab encoded keys for the given values, separated by the '+' symbol.
|
static java.lang.String |
getFieldContent(java.lang.String metaFormat,
java.lang.String value,
java.lang.String useVocabMapping,
MetadataVocab vocab)
Gets the encoded vocab key for the given content.
|
public static java.lang.String getFieldContent(java.lang.String metaFormat, java.lang.String[] values, java.lang.String useVocabMapping, MetadataVocab vocab) throws java.lang.Exception
metaFormat
- The metadata format, for example 'adn'values
- The valuse to encode.useVocabMapping
- The mapping to use, for example 'contentStandards'vocab
- The MetadataVocab instancejava.lang.Exception
- If error.public static java.lang.String getFieldContent(java.lang.String metaFormat, java.lang.String value, java.lang.String useVocabMapping, MetadataVocab vocab) throws java.lang.Exception
metaFormat
- The metadata format, for example 'adn'value
- The value to encode.useVocabMapping
- The vocab mapping to use, for example "contentStandard".vocab
- The MetadataVocab instancejava.lang.Exception
- If error.