Version: 2.1.0.11

cybox.common.structured_text module

class cybox.common.structured_text.StructuredText(value=None)[source]

Bases: cybox.Entity

XML binding class: <undefined>
classmethod from_dict(text_dict, text=None)[source]
classmethod from_obj(text_obj, text=None)[source]
is_plain()[source]

Whether this can be represented as a string rather than a dictionary

Subclasses can override this to include their custom fields in this check:

return (super(..., self).is_plain() and self.other_field is None)
to_dict()[source]
to_obj(return_obj=None, ns_info=None)[source]