2020-03-22 03:22:36 +01:00
|
|
|
"""Base classes for STIX 2.0 type definitions."""
|
|
|
|
|
2020-03-27 07:40:42 +01:00
|
|
|
from ..base import (
|
|
|
|
_DomainObject, _Extension, _Observable, _RelationshipObject, _STIXBase,
|
|
|
|
)
|
2020-03-22 03:22:36 +01:00
|
|
|
|
|
|
|
|
|
|
|
class _STIXBase20(_STIXBase):
|
2020-03-27 07:40:42 +01:00
|
|
|
pass
|
2020-03-22 03:22:36 +01:00
|
|
|
|
|
|
|
|
|
|
|
class _Observable(_Observable, _STIXBase20):
|
2020-11-11 00:32:58 +01:00
|
|
|
|
|
|
|
def __init__(self, **kwargs):
|
|
|
|
self._properties['extensions'].allow_custom = kwargs.get('allow_custom', False)
|
|
|
|
super(_Observable, self).__init__(**kwargs)
|
2020-03-22 03:22:36 +01:00
|
|
|
|
|
|
|
|
|
|
|
class _Extension(_Extension, _STIXBase20):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2020-03-27 07:40:42 +01:00
|
|
|
class _DomainObject(_DomainObject, _STIXBase20):
|
2020-03-22 03:22:36 +01:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
2020-03-27 07:40:42 +01:00
|
|
|
class _RelationshipObject(_RelationshipObject, _STIXBase20):
|
2020-03-22 03:22:36 +01:00
|
|
|
pass
|