本文整理汇总了Python中stix.data_marking.MarkingStructure类的典型用法代码示例。如果您正苦于以下问题:Python MarkingStructure类的具体用法?Python MarkingStructure怎么用?Python MarkingStructure使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了MarkingStructure类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: to_obj
def to_obj(self):
obj = self._binding_class()
MarkingStructure.to_obj(self, obj)
obj.set_Statement(self.statement)
return obj
开发者ID:SYNchroACK,项目名称:crits_dependencies,代码行数:8,代码来源:simple_marking.py
示例2: to_obj
def to_obj(self):
obj = self._binding_class()
MarkingStructure.to_obj(self, obj)
obj.set_color(self.color)
return obj
开发者ID:chongkim,项目名称:python-stix,代码行数:8,代码来源:tlp.py
示例3: to_obj
def to_obj(self):
obj = self._binding_class()
MarkingStructure.to_obj(self, obj)
obj.set_Terms_Of_Use(self.terms_of_use)
return obj
开发者ID:SYNchroACK,项目名称:crits_dependencies,代码行数:8,代码来源:terms_of_use_marking.py
示例4: from_dict
def from_dict(marking_dict):
if not marking_dict:
return None
m = TermsOfUseMarkingStructure()
MarkingStructure.from_dict(marking_dict, m)
m.terms_of_use = marking_dict.get('terms_of_use')
return m
开发者ID:DavidWatersHub,项目名称:python-stix,代码行数:9,代码来源:terms_of_use_marking.py
示例5: from_obj
def from_obj(obj):
if not obj:
return None
m = SimpleMarkingStructure()
MarkingStructure.from_obj(obj, m)
m.statement = obj.Statement
return m
开发者ID:Seevil,项目名称:python-stix,代码行数:9,代码来源:simple_marking.py
示例6: from_dict
def from_dict(marking_dict):
if not marking_dict:
return None
m = SimpleMarkingStructure()
MarkingStructure.from_dict(marking_dict, m)
m.statement = marking_dict.get('statement')
return m
开发者ID:Seevil,项目名称:python-stix,代码行数:9,代码来源:simple_marking.py
示例7: from_obj
def from_obj(obj):
if not obj:
return None
m = TermsOfUseMarkingStructure()
MarkingStructure.from_obj(obj, m)
m.terms_of_use = obj.Terms_Of_Use
return m
开发者ID:DavidWatersHub,项目名称:python-stix,代码行数:9,代码来源:terms_of_use_marking.py
示例8: from_dict
def from_dict(marking_dict):
if not marking_dict:
return None
m = TLPMarkingStructure()
MarkingStructure.from_dict(marking_dict, m)
m.color = marking_dict.get('color')
return m
开发者ID:Seevil,项目名称:python-stix,代码行数:9,代码来源:tlp.py
示例9: from_obj
def from_obj(obj):
if not obj:
return None
m = TLPMarkingStructure()
MarkingStructure.from_obj(obj, m)
m.color = obj.color
return m
开发者ID:Seevil,项目名称:python-stix,代码行数:9,代码来源:tlp.py
示例10: to_obj
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
开发者ID:andybarilla,项目名称:python-stix,代码行数:10,代码来源:tlp.py
示例11: to_obj
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
开发者ID:Seevil,项目名称:python-stix,代码行数:10,代码来源:simple_marking.py
示例12: to_obj
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
开发者ID:DavidWatersHub,项目名称:python-stix,代码行数:10,代码来源:terms_of_use_marking.py
示例13: from_obj
def from_obj(cls, obj, return_obj=None):
if not obj:
return None
if not return_obj:
return_obj = cls()
MarkingStructure.from_obj(obj, return_obj=return_obj)
return_obj.terms_of_use = obj.Terms_Of_Use
return return_obj
开发者ID:ExodusIntelligence,项目名称:python-stix,代码行数:11,代码来源:terms_of_use_marking.py
示例14: from_dict
def from_dict(cls, d, return_obj=None):
if not d:
return None
if not return_obj:
return_obj = cls()
MarkingStructure.from_dict(d, return_obj=return_obj)
return_obj.statement = d.get('statement')
return return_obj
开发者ID:andybarilla,项目名称:python-stix,代码行数:11,代码来源:simple_marking.py
示例15: from_obj
def from_obj(cls, obj, return_obj=None):
if not obj:
return None
if not return_obj:
return_obj = cls()
MarkingStructure.from_obj(obj, return_obj=return_obj)
return_obj.color = obj.color
return return_obj
开发者ID:andybarilla,项目名称:python-stix,代码行数:11,代码来源:tlp.py
示例16: from_dict
def from_dict(cls, d, return_obj=None):
if not d:
return None
if not return_obj:
return_obj = cls()
MarkingStructure.from_dict(d, return_obj)
return_obj.color = d.get('color')
return return_obj
开发者ID:andybarilla,项目名称:python-stix,代码行数:11,代码来源:tlp.py
示例17: from_dict
def from_dict(cls, d, return_obj=None):
if not d:
return None
if not return_obj:
return_obj = cls()
MarkingStructure.from_dict(d, return_obj)
return_obj.terms_of_use = d.get('terms_of_use')
return return_obj
开发者ID:ExodusIntelligence,项目名称:python-stix,代码行数:11,代码来源:terms_of_use_marking.py
示例18: from_obj
def from_obj(cls, obj, return_obj=None):
if not obj:
return None
if not return_obj:
return_obj = cls()
MarkingStructure.from_obj(obj, return_obj)
return_obj.statement = obj.Statement
return return_obj
开发者ID:andybarilla,项目名称:python-stix,代码行数:11,代码来源:simple_marking.py
示例19: from_obj
def from_obj(obj):
if not obj:
return None
m = ISAMarkingStructure()
MarkingStructure.from_obj(obj, m)
m.isam_version = obj.isam_version
m.identifier = EDH2Text.from_obj(obj.identifier)
m.createdatetime = EDH2Text.from_obj(obj.createdatetime)
m.responsibleentity = EDH2Text.from_obj(obj.responsibleentity)
m.authref = EDH2Text.from_obj(obj.authref)
return m
开发者ID:anl-cyberscience,项目名称:FlexTransform,代码行数:13,代码来源:isamarkings.py
示例20: to_dict
def to_dict(self):
d = MarkingStructure.to_dict(self)
if self.terms_of_use:
d['terms_of_use'] = self.terms_of_use
return d
开发者ID:ExodusIntelligence,项目名称:python-stix,代码行数:7,代码来源:terms_of_use_marking.py
注:本文中的stix.data_marking.MarkingStructure类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论