Version: 2.1.0.14

cybox.core.object module

class cybox.core.object.DomainSpecificObjectProperties[source]

Bases: mixbox.entities.Entity

The Cybox DomainSpecificObjectProperties base class.

XML binding class: cybox.bindings.cybox_core.DomainSpecificObjectPropertiesType
to_dict()[source]
to_obj(ns_info=None)[source]
class cybox.core.object.Object(properties=None, type_=None, id_=None, idref=None)[source]

Bases: mixbox.entities.Entity

The CybOX Object element.

Currently only supports the following data members: - id_ - idref - properties - related_objects - domain specific object properties

XML binding class: cybox.bindings.cybox_core.ObjectType
domain_specific_object_properties
XML Binding class name: Domain_Specific_Object_Properties
Dictionary key name: domain_specific_object_properties
id_
XML Binding class name: id
Dictionary key name: id
idref
XML Binding class name: idref
Dictionary key name: idref
properties
XML Binding class name: Properties
Dictionary key name: properties
related_objects
XML Binding class name: Related_Objects
Dictionary key name: related_objects
class cybox.core.object.RelatedObject(*args, **kwargs)[source]

Bases: cybox.core.object.Object

XML binding class: cybox.bindings.cybox_core.RelatedObjectType
classmethod from_dict(cls_dict)[source]
classmethod from_obj(cls_obj)[source]
get_properties()[source]
relationship

TypedField subclass for VocabString fields.

XML Binding class name: Relationship
Dictionary key name: relationship
to_dict()[source]
to_obj(ns_info=None)[source]
class cybox.core.object.RelatedObjects(*args)[source]

Bases: mixbox.entities.EntityList

XML binding class: cybox.bindings.cybox_core.RelatedObjectsType
related_object
(List of values permitted)
XML Binding class name: Related_Object
Dictionary key name: related_object
cybox.core.object.add_external_class(klass, xsi_type)[source]

Adds a class implementation to this binding’s globals() dict.

These classes can be used to implement Properties, Domain_Specific_Object_Properties, or Defined_Effect fields on an Object.

Parameters:
  • klass (class) – Python class that implements the new type
  • xsi_type (str) – An xsi:type value corresponding to the klass.