def METHOD_NAME(self, property):
    name = property.name.replace('-', '_')
    if name in list(self.__gproperties.keys()):
        return getattr(self, name)
    else:
        raise AttributeError('unknown property %s' % property.name)