当前位置: 首页>>代码示例>>Python>>正文


Python MarkingStructure.to_obj方法代码示例

本文整理汇总了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
开发者ID:chongkim,项目名称:python-stix,代码行数:10,代码来源:tlp.py

示例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
开发者ID:SYNchroACK,项目名称:crits_dependencies,代码行数:10,代码来源:simple_marking.py

示例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
开发者ID:SYNchroACK,项目名称:crits_dependencies,代码行数:10,代码来源:terms_of_use_marking.py

示例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
开发者ID:DavidWatersHub,项目名称:python-stix,代码行数:12,代码来源:terms_of_use_marking.py

示例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
开发者ID:Seevil,项目名称:python-stix,代码行数:12,代码来源:simple_marking.py

示例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
开发者ID:andybarilla,项目名称:python-stix,代码行数:12,代码来源:tlp.py

示例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
开发者ID:anl-cyberscience,项目名称:FlexTransform,代码行数:43,代码来源:isamarkings.py


注:本文中的stix.data_marking.MarkingStructure.to_obj方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。