コード例 #1
0
ファイル: file_object.py プロジェクト: siemens/python-cybox
    def to_obj(self, return_obj=None, ns_info=None):
        self._collect_ns_info(ns_info)

        filepath_obj = String.to_obj(self, return_obj=return_obj, ns_info=ns_info)
        if self.fully_qualified is not None:
            filepath_obj.fully_qualified = self.fully_qualified
        return filepath_obj
コード例 #2
0
ファイル: data_segment.py プロジェクト: siemens/python-cybox
    def to_obj(self, return_obj=None, ns_info=None):
        self._collect_ns_info(ns_info)

        datasize_obj = String.to_obj(self, return_obj=return_obj, ns_info=ns_info)
        if self.units is not None:
            datasize_obj.units = self.units
        return datasize_obj
コード例 #3
0
    def to_obj(self, return_obj=None, ns_info=None):
        self._collect_ns_info(ns_info)

        filepath_obj = String.to_obj(self, return_obj=return_obj, ns_info=ns_info)
        if self.fully_qualified is not None:
            filepath_obj.fully_qualified = self.fully_qualified
        return filepath_obj
コード例 #4
0
ファイル: data_segment.py プロジェクト: wagner-certat/csp
    def to_obj(self, return_obj=None, ns_info=None):
        self._collect_ns_info(ns_info)

        datasize_obj = String.to_obj(self, return_obj=return_obj, ns_info=ns_info)
        if self.units is not None:
            datasize_obj.units = self.units
        return datasize_obj
コード例 #5
0
ファイル: file_object.py プロジェクト: bauer1j/python-cybox
 def to_obj(self):
     filepath_obj = String.to_obj(self)
     if self.fully_qualified is not None:
         filepath_obj.set_fully_qualified(self.fully_qualified)
     return filepath_obj
コード例 #6
0
 def to_obj(self):
     filepath_obj = String.to_obj(self)
     if self.fully_qualified is not None:
         filepath_obj.set_fully_qualified(self.fully_qualified)
     return filepath_obj
コード例 #7
0
ファイル: data_segment.py プロジェクト: bauer1j/python-cybox
 def to_obj(self):
     datasize_obj = String.to_obj(self)
     if self.units is not None:
         datasize_obj.set_units(self.units)
     return datasize_obj
コード例 #8
0
 def to_obj(self):
     datasize_obj = String.to_obj(self)
     if self.units is not None:
         datasize_obj.set_units(self.units)
     return datasize_obj