Package com.persequor.event
Class VocabularyHelper
java.lang.Object
com.persequor.event.VocabularyHelper
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic VocabularyListextractVocabularies(CustomTag customTag) Helper to extract vocabularies from the custom tags.static VocabularyListtransformToVocabularies(CustomTag customTag) Deprecated.
- 
Constructor Details- 
VocabularyHelperpublic VocabularyHelper()
 
- 
- 
Method Details- 
transformToVocabulariesDeprecated.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
 
- 
extractVocabulariesHelper 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