Package com.persequor.event
Class VocabularyHelper
java.lang.Object
com.persequor.event.VocabularyHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VocabularyListextractVocabularies(CustomTag customTag) Helper to extract vocabularies from the custom tags.static VocabularyListtransformToVocabularies(CustomTag customTag) Deprecated.
-
Constructor Details
-
VocabularyHelper
public VocabularyHelper()
-
-
Method Details
-
transformToVocabularies
Deprecated.use more lenientextractVocabularies(com.persequor.event.CustomTag)insteadDeprecated because throwing different type of RuntimeExceptions in case CustomTags are not shaped properly.- Parameters:
customTag- custom tag to extract vocabularies from- Returns:
- extracted vocabularies
-
extractVocabularies
Helper to extract vocabularies from the custom tags. This requires the Custom Tag to contain tag(s) with tag nameVocabularyList. The children of these will be parsed an must contain an attributetypespecifying the URI of the vocabulary, and an attributeidspecifying the URI/ID of the element. The xml-tag value of the node will be the value of the vocabulary element. Example:<VocabularyList> <Element type="urn:myvocabulary" id="vocab123">The Value of the element</Element> </VocabularyList>- Parameters:
customTag- custom tag to extract vocabularies from- Returns:
- extracted vocabularies, empty list in case no vocabularies were found
-
extractVocabularies(com.persequor.event.CustomTag)instead