Source code for maec.bundle.object_reference

# MAEC Object Reference Class

# Copyright (c) 2018, The MITRE Corporation
# All rights reserved

from mixbox import fields

import maec
from . import _namespace
import maec.bindings.maec_bundle as bundle_binding

[docs]class ObjectReference(maec.Entity): _binding = bundle_binding _binding_class = bundle_binding.ObjectReferenceType _namespace = _namespace def __init__(self, object_idref = None): super(ObjectReference, self).__init__() self.object_idref = object_idref
[docs]class ObjectReferenceList(maec.EntityList): _binding_class = bundle_binding.ObjectReferenceListType _namespace = _namespace object_reference = fields.TypedField("Object_Reference", ObjectReference, multiple=True)