def idref(self, value): deprecated(value) if not value: self._idref = None else: self._idref = value self.id_ = None # unset id_ if idref is present
def add_short_description(self, description): """**DEPRECATED**. Adds a description to the ``short_descriptions`` collection. This is the same as calling "foo.short_descriptions.add(bar)". """ deprecated(description) self.short_descriptions.add(description)
def add_package_intent(self, package_intent): """**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`. """ deprecated(package_intent) self.package_intents.append(package_intent)
def _is_valid(self, value): deprecated(value) return super(RelatedIndicators, self)._is_valid(value)
def _is_valid(self, value): deprecated(value) return stix.EntityList._is_valid(self, value)
def title(self, value): deprecated(value) self._title = value
def timestamp(self, value): deprecated(value) self._timestamp = utils.dates.parse_value(value)
def short_descriptions(self, value): deprecated(value) self._short_description = StructuredTextList(value)
def package_intents(self, value): deprecated(value) self._package_intents = _PackageIntents(value)