MCPcopy Create free account
hub / github.com/STIXProject/python-stix / CustomVocab

Class CustomVocab

examples/custom_vocabstring.py:38–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37# Create a VocabString class for our CustomVocab-1.0 vocabular
38class CustomVocab(vocabs.VocabString):
39 _namespace = 'http://customvocabs.com/vocabs-1'
40 _XSI_TYPE = 'customVocabs:CustomVocab-1.0'
41 _ALLOWED_VALUES = ('FOO', 'BAR')
42
43# Register the namespace of the CustomVocab
44mixbox.namespaces.register_namespace(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected