public static String vectorFlagsString(OMMVector data)
    {
        StringBuilder buf = new StringBuilder(60);

        if (data.has(OMMVector.HAS_DATA_DEFINITIONS))
        {
            buf.append("HAS_DATA_DEFINITIONS");
        }

        if (data.has(OMMVector.HAS_SUMMARY_DATA))
        {
            if (buf.length() != 0)
                buf.append(" | ");

            buf.append("HAS_SUMMARY_DATA");
        }

        if (data.has(OMMVector.HAS_PERMISSION_DATA_PER_ENTRY))
        {
            if (buf.length() != 0)
                buf.append(" | ");

            buf.append("HAS_PERMISSION_DATA_PER_ENTRY");
        }

        if (data.has(OMMVector.HAS_TOTAL_COUNT_HINT))
        {
            if (buf.length() != 0)
                buf.append(" | ");

            buf.append("HAS_TOTAL_COUNT_HINT");
        }

        if (data.has(OMMVector.HAS_SORT_ACTIONS))
        {
            if (buf.length() != 0)
                buf.append(" | ");

            buf.append("HAS_SORT_ACTIONS");
        }
        return buf.toString();
    }