def getEnum(self, value):
    if (('.' in value) and self.mgr.isEnum(value)):
        names = value.split('.')
        enumName = names[0]
        enumOption = names[1]
        enumValue = self.mgr.getEnumValue(enumName, enumOption)
        enumType = type(enumValue).__name__
        return Constant(enumValue, enumType)
    else:
        values = self.mgr.getEnum(value)
        attributes = []
        for name in values:
            _value = values[name]
            _valueType = type(_value).__name__
            attribute = KeyValue(name, Constant(_value, _valueType))
            attributes.append(attribute)
        return Object(attributes)
def getEnum(self, value):
    if (('.' in value) and self.mgr.isEnum(value)):
        names = value.split('.')
        enumName = names[0]
        enumOption = names[1]
        enumValue = self.mgr.getEnumValue(enumName, enumOption)
        enumType = type(enumValue).__name__
        return Constant(enumValue, enumType)
    else:
        values = self.mgr.getEnum(value)
        attributes = []
        for name in values:
            _value = values[name]
            _valueType = type(_value).__name__
            attribute = KeyValue(name, Constant(_value, _valueType))
            attributes.append(attribute)
        return Object(attributes)