use of org.eclipse.milo.opcua.binaryschema.parser.BsdParser in project milo by eclipse.
the class BsdParserTest method parseTypeDictionary.
@BeforeSuite
public void parseTypeDictionary() throws Exception {
BsdParser parser = createBsdParser();
DictionaryDescription dictionary = parser.parse(getClass().getClassLoader().getResourceAsStream("dictionaries/BsdParserTest.bsd.xml"));
dictionary.getStructCodecs().forEach(cd -> codecTable.put(dictionary.getNamespaceUri(), cd.getDescription(), cd.getCodec()));
dictionary.getEnumCodecs().forEach(cd -> codecTable.put(dictionary.getNamespaceUri(), cd.getDescription(), cd.getCodec()));
}
Aggregations