# SDK Pullenti Lingvo, version 4.33, fabruary 2026. Copyright (c) 2013-2026, Pullenti. All rights reserved.
# Non-Commercial Freeware and Commercial Software.
# This class is generated using the converter Unisharping (www.unisharping.ru) from Pullenti C# project.
# The latest version of the code is available on the site www.pullenti.ru


from pullenti.ner.metadata.ReferentClass import ReferentClass

class MetaPersonIdentity(ReferentClass):
    
    @staticmethod
    def initialize() -> None:
        from pullenti.ner.person.PersonIdentityReferent import PersonIdentityReferent
        MetaPersonIdentity._global_meta = MetaPersonIdentity()
        MetaPersonIdentity._global_meta.add_feature(PersonIdentityReferent.ATTR_TYPE, "Тип", 1, 1)
        MetaPersonIdentity._global_meta.add_feature(PersonIdentityReferent.ATTR_NUMBER, "Номер", 1, 1)
        MetaPersonIdentity._global_meta.add_feature(PersonIdentityReferent.ATTR_DATE, "Дата выдачи", 0, 1)
        MetaPersonIdentity._global_meta.add_feature(PersonIdentityReferent.ATTR_ORG, "Кто выдал", 0, 1)
        MetaPersonIdentity._global_meta.add_feature(PersonIdentityReferent.ATTR_ADDRESS, "Адрес регистрации", 0, 1)
    
    @property
    def name(self) -> str:
        from pullenti.ner.person.PersonIdentityReferent import PersonIdentityReferent
        return PersonIdentityReferent.OBJ_TYPENAME
    
    @property
    def caption(self) -> str:
        return "Удостоверение личности"
    
    IMAGE_ID = "identity"
    
    def get_image_id(self, obj : 'Referent'=None) -> str:
        return MetaPersonIdentity.IMAGE_ID
    
    _global_meta = None