本文整理汇总了Python中stix.data_marking.MarkingStructure.to_obj方法的典型用法代码示例。如果您正苦于以下问题:Python MarkingStructure.to_obj方法的具体用法?Python MarkingStructure.to_obj怎么用?Python MarkingStructure.to_obj使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类stix.data_marking.MarkingStructure
的用法示例。
在下文中一共展示了MarkingStructure.to_obj方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: to_obj
# 需要导入模块: from stix.data_marking import MarkingStructure [as 别名]
# 或者: from stix.data_marking.MarkingStructure import to_obj [as 别名]
def to_obj(self):
obj = self._binding_class()
MarkingStructure.to_obj(self, obj)
obj.set_color(self.color)
return obj
示例2: to_obj
# 需要导入模块: from stix.data_marking import MarkingStructure [as 别名]
# 或者: from stix.data_marking.MarkingStructure import to_obj [as 别名]
def to_obj(self):
obj = self._binding_class()
MarkingStructure.to_obj(self, obj)
obj.set_Statement(self.statement)
return obj
示例3: to_obj
# 需要导入模块: from stix.data_marking import MarkingStructure [as 别名]
# 或者: from stix.data_marking.MarkingStructure import to_obj [as 别名]
def to_obj(self):
obj = self._binding_class()
MarkingStructure.to_obj(self, obj)
obj.set_Terms_Of_Use(self.terms_of_use)
return obj
示例4: to_obj
# 需要导入模块: from stix.data_marking import MarkingStructure [as 别名]
# 或者: from stix.data_marking.MarkingStructure import to_obj [as 别名]
def to_obj(self, return_obj=None, ns_info=None):
super(TermsOfUseMarkingStructure, self).to_obj(return_obj=return_obj, ns_info=ns_info)
obj = self._binding_class()
MarkingStructure.to_obj(self, return_obj=obj, ns_info=ns_info)
obj.Terms_Of_Use = self.terms_of_use
return obj
示例5: to_obj
# 需要导入模块: from stix.data_marking import MarkingStructure [as 别名]
# 或者: from stix.data_marking.MarkingStructure import to_obj [as 别名]
def to_obj(self, return_obj=None, ns_info=None):
super(SimpleMarkingStructure, self).to_obj(return_obj=return_obj, ns_info=ns_info)
obj = self._binding_class()
MarkingStructure.to_obj(self, return_obj=obj, ns_info=ns_info)
obj.Statement = self.statement
return obj
示例6: to_obj
# 需要导入模块: from stix.data_marking import MarkingStructure [as 别名]
# 或者: from stix.data_marking.MarkingStructure import to_obj [as 别名]
def to_obj(self, return_obj=None, ns_info=None):
super(TLPMarkingStructure, self).to_obj(return_obj=return_obj, ns_info=ns_info)
if not return_obj:
return_obj = self._binding_class()
MarkingStructure.to_obj(self, return_obj=return_obj, ns_info=ns_info)
return_obj.color = self.color
return return_obj
示例7: to_obj
# 需要导入模块: from stix.data_marking import MarkingStructure [as 别名]
# 或者: from stix.data_marking.MarkingStructure import to_obj [as 别名]
def to_obj(self, return_obj=None, ns_info=None):
super(ISAMarkingAssertionsStructure, self).to_obj(return_obj=return_obj, ns_info=ns_info)
ns_info.input_schemalocs.update({self._namespace: self._namespace_xsd})
obj = self._binding_class()
MarkingStructure.to_obj(self, return_obj=obj, ns_info=ns_info)
obj.isam_version = self.isam_version
obj.default_marking = self.default_marking
obj.most_restrictive = self.most_restrictive
if (self.policyref):
obj.policyref = self.policyref.to_obj(ns_info=ns_info)
if (self.accessprivilege):
obj.accessprivilege = self.accessprivilege.to_obj(ns_info=ns_info)
if (self.resourcedisposition):
obj.resourcedisposition = self.resourcedisposition.to_obj(ns_info=ns_info)
if (self.controlset):
obj.controlset = self.controlset.to_obj(ns_info=ns_info)
if (self.originalclassification):
obj.originalclassification = self.originalclassification.to_obj(ns_info=ns_info)
if (self.derivativeclassification):
obj.derivativeclassification = self.derivativeclassification.to_obj(ns_info=ns_info)
if (self.declassification):
obj.declassification = self.declassification.to_obj(ns_info=ns_info)
if (self.publicrelease):
obj.publicrelease = self.publicrelease.to_obj(ns_info=ns_info)
if (self.addlreference):
obj.addlreference = self.addlreference.to_obj(ns_info=ns_info)
return obj