private boolean isDependent ( String style ) { if ( ! style . trim ( ) . startsWith ( "<" ) ) { return false ; } Pattern p = Pattern . compile ( "rel\\s*=\\s*\"\\s*independent-parent\\s*\"" ) ; Matcher m = p . matcher ( style ) ; return m . find ( ) ; }
Test if the given string represents a dependent style