@ Deprecated public static Criteria parse ( String criteria ) { if ( criteria == null ) { throw new InvalidPathException ( "Criteria can not be null" ) ; } String [ ] split = criteria . trim ( ) . split ( " " ) ; if ( split . length == 3 ) { return create ( split [ 0 ] , split [ 1 ] , split [ 2 ] ) ; } else if ( split . length == 1 ) { return create ( split [ 0 ] , "EXISTS" , "true" ) ; } else { throw new InvalidPathException ( "Could not parse criteria" ) ; } }
Parse the provided criteria