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
Esempio n. 2
0
    def from_obj(obj):
        if not obj:
            return None

        m = SimpleMarkingStructure()
        MarkingStructure.from_obj(obj, m)
        m.statement = obj.Statement

        return m
Esempio n. 3
0
    def from_obj(obj):
        if not obj:
            return None

        m = TLPMarkingStructure()
        MarkingStructure.from_obj(obj, m)
        m.color = obj.color

        return m
Esempio n. 4
0
    def from_obj(obj):
        if not obj:
            return None

        m = SimpleMarkingStructure()
        MarkingStructure.from_obj(obj, m)
        m.statement = obj.Statement

        return m
Esempio n. 5
0
    def from_obj(obj):
        if not obj:
            return None

        m = TLPMarkingStructure()
        MarkingStructure.from_obj(obj, m)
        m.color = obj.color

        return m
Esempio n. 6
0
    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
Esempio n. 7
0
    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
    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
Esempio n. 9
0
    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
Esempio n. 10
0
    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
Esempio n. 11
0
    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
Esempio n. 12
0
    def from_obj(obj):
        if not obj:
            return None

        m = ISAMarkingStructure30()
        MarkingStructure.from_obj(obj, m)
        m.isam_version = obj.isam_version
        m.identifier = EDH2Text30.from_obj(obj.identifier)
        m.createdatetime = EDH2Text30.from_obj(obj.createdatetime)
        m.responsibleentity = EDH2Text30.from_obj(obj.responsibleentity)
        m.authref = EDH2Text30.from_obj(obj.authref)

        return m
    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
    def from_obj(obj):
        if not obj:
            return None

        m = ISAMarkingAssertionsStructure()
        MarkingStructure.from_obj(obj, m)
        m.isam_version = obj.isam_version
        m.default_marking = obj.default_marking
        m.most_restrictive = obj.most_restrictive
        
        m.policyref = EDH2Text.from_obj(obj.policyref)
        m.accessprivilege = EDH2Text.from_obj(obj.accessprivilege)
        m.resourcedisposition = EDH2Text.from_obj(obj.resourcedisposition)
        m.controlset = EDH2Text.from_obj(obj.controlset)
        m.originalclassification = EDH2Text.from_obj(obj.originalclassification)
        m.derivativeclassification = EDH2Text.from_obj(obj.derivativeclassification)
        m.declassification = EDH2Text.from_obj(obj.declassification)
        m.publicrelease = EDH2Text.from_obj(obj.publicrelease)
        
        m.addlreference = AddlReference.from_obj(obj.addlreference)

        return m
Esempio n. 15
0
    def from_obj(obj):
        if not obj:
            return None

        m = ISAMarkingAssertionsStructure30()
        MarkingStructure.from_obj(obj, m)
        m.isam_version = obj.isam_version
        m.default_marking = obj.default_marking
        m.most_restrictive = obj.most_restrictive

        m.policyref = EDH2Text30.from_obj(obj.policyref)
        m.accessprivilege = EDH2Text30.from_obj(obj.accessprivilege)
        m.resourcedisposition = EDH2Text30.from_obj(obj.resourcedisposition)
        m.controlset = EDH2Text30.from_obj(obj.controlset)
        m.originalclassification = EDH2Text30.from_obj(
            obj.originalclassification)
        m.derivativeclassification = EDH2Text30.from_obj(
            obj.derivativeclassification)
        m.declassification = EDH2Text30.from_obj(obj.declassification)
        m.publicrelease = EDH2Text30.from_obj(obj.publicrelease)

        m.addlreference = AddlReference.from_obj(obj.addlreference)

        return m