MCPcopy Create free account
hub / github.com/STIXProject/python-stix / add_package_intent

Method add_package_intent

stix/core/stix_header.py:124–133  ·  view source on GitHub ↗

**DEPRECATED**. Adds :class:`.VocabString` object to the :attr:`package_intents` collection. If the input is not an instance of :class:`.VocabString`, an effort will be made to convert it into an instance of :class:`.PackageIntent`.

(self, package_intent)

Source from the content-addressed store, hash-verified

122
123
124 def add_package_intent(self, package_intent):
125 """**DEPRECATED**. Adds :class:`.VocabString` object to the
126 :attr:`package_intents` collection.
127
128 If the input is not an instance of :class:`.VocabString`, an effort
129 will be made to convert it into an instance of :class:`.PackageIntent`.
130
131 """
132 deprecated.warn(package_intent)
133 self.package_intents.append(package_intent)
134
135 def add_profile(self, profile):
136 """Adds a profile to the STIX Header. A Profile is represented by a

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected