The STIX Package Header. Args: handling: The data marking section of the Header. information_source: The :class:`.InformationSource` section of the Header. package_intents: **DEPRECATED**. A collection of :class:`.VocabString` defining the intent
| 12 | |
| 13 | |
| 14 | class STIXHeader(stix.Entity): |
| 15 | """The STIX Package Header. |
| 16 | |
| 17 | Args: |
| 18 | handling: The data marking section of the Header. |
| 19 | information_source: The :class:`.InformationSource` section of the |
| 20 | Header. |
| 21 | package_intents: **DEPRECATED**. A collection of :class:`.VocabString` |
| 22 | defining the intent of the parent :class:`.STIXPackage`. |
| 23 | description: **DEPRECATED**. A description of the intent or purpose |
| 24 | of the parent :class:`.STIXPackage`. |
| 25 | short_description: **DEPRECATED**. A short description of the intent |
| 26 | or purpose of the parent :class:`.STIXPackage`. |
| 27 | title: **DEPRECATED**. The title of the :class:`.STIXPackage`. |
| 28 | |
| 29 | Attributes: |
| 30 | profiles: A collection of STIX Profiles the parent |
| 31 | :class:`.STIXPackage` conforms to. |
| 32 | title: **DEPRECATED**. The title of the parent :class:`.STIXPackage`. |
| 33 | |
| 34 | """ |
| 35 | _binding = stix_core_binding |
| 36 | _binding_class = _binding.STIXHeaderType |
| 37 | _namespace = 'http://docs.oasis-open.org/cti/ns/stix/core-1' |
| 38 | |
| 39 | title = fields.TypedField("Title", preset_hook=deprecated.field) |
| 40 | package_intents = VocabField("Package_Intent", PackageIntent, multiple=True, preset_hook=deprecated.field) |
| 41 | descriptions = fields.TypedField("Description", type_=StructuredTextList, preset_hook=deprecated.field) |
| 42 | short_descriptions = fields.TypedField("Short_Description", type_=StructuredTextList, preset_hook=deprecated.field) |
| 43 | handling = fields.TypedField("Handling", Marking) |
| 44 | information_source = fields.TypedField("Information_Source", InformationSource) |
| 45 | profiles = fields.TypedField("Profiles", Profiles) |
| 46 | |
| 47 | def __init__(self, package_intents=None, description=None, handling=None, |
| 48 | information_source=None, title=None, short_description=None): |
| 49 | |
| 50 | super(STIXHeader, self).__init__() |
| 51 | |
| 52 | self.package_intents = package_intents |
| 53 | self.title = title |
| 54 | self.description = StructuredTextList(description) |
| 55 | self.short_description = StructuredTextList(short_description) |
| 56 | self.handling = handling |
| 57 | self.information_source = information_source |
| 58 | self.profiles = None |
| 59 | |
| 60 | @property |
| 61 | def description(self): |
| 62 | """**DEPRECATED**. A single description about the contents or |
| 63 | purpose of this object. |
| 64 | |
| 65 | Default Value: ``None`` |
| 66 | |
| 67 | Note: |
| 68 | If this object has more than one description set, this will return |
| 69 | the description with the lowest ordinality value. |
| 70 | |
| 71 | Returns: |