This documentation is still a work in progress. If you have any issues or questions, please ask on the cybox-discussion mailing list or file a bug in our issue tracker.

cybox.common.vocabs module

class cybox.common.vocabs.VocabString(value=None)[source]

Bases: cybox.common.attribute_groups.PatternFieldGroup, cybox.Entity

XML binding class: <undefined>
classmethod from_dict(vocab_dict)[source]
classmethod from_obj(vocab_obj)[source]

Whether the VocabString can be represented as a single value.

If value is the only non-None properties and a custom XSI type has not been set, the VocabString can be represented by a single value rather than a dictionary. This makes the JSON representation simpler without losing any data fidelity.


For a vocab string to be valid, it must have an xsi:type, a vocab_name, or a vocab_reference.

to_obj(return_obj=None, ns_info=None)[source]

Previous topic

cybox.common.tools module

Next topic

cybox.core package

This Page

Related Documentation