/** * Normalizes a filter expression to a canonical representation while * retaining logical meaning of the expression. * * @param filter * the filter to normalize * @return the normalized version of the filter * @throws java.text.ParseException * if the filter is malformed */ public static String getNormalizedFilter( String filter ) throws ParseException { ExprNode originalNode = FilterParser.parse( filter ); return getNormalizedFilter( originalNode ); }