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
def from_obj(obj): if not obj: return None m = SimpleMarkingStructure() MarkingStructure.from_obj(obj, m) m.statement = obj.Statement return m
def from_obj(obj): if not obj: return None m = TLPMarkingStructure() MarkingStructure.from_obj(obj, m) m.color = obj.color return m
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
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
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
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