public static function getConstantByName($name)
    {
        switch (trim(strtolower($name))) {
            case 'identifier':
                return self::IDENTIFIER;
            break;

            case 'boolean':
                return self::BOOLEAN;
            break;

            case 'integer':
                return self::INTEGER;
            break;

            case 'float':
                return self::FLOAT;
            break;

            case 'string':
                return self::STRING;
            break;

            case 'point':
                return self::POINT;
            break;

            case 'pair':
                return self::PAIR;
            break;

            case 'directedpair':
                return self::DIRECTED_PAIR;
            break;

            case 'duration':
                return self::DURATION;
            break;

            case 'file':
                return self::FILE;
            break;

            case 'uri':
                return self::URI;
            break;

            case 'intoridentifier':
                return self::INT_OR_IDENTIFIER;
            break;

            case 'coords':
                return self::COORDS;
            break;

            default:
                return false;
            break;
        }
    }