private final boolean checkRef ( ComponentTag tag ) { boolean ok = false ; if ( ! tag . getName ( ) . equals ( "a" ) ) { IValueMap attributes = tag . getAttributes ( ) ; String ref = attributes . getString ( "href" ) ; if ( ref == null ) { ref = attributes . getString ( "src" ) ; } if ( ( ref != null ) && ( isJawrImageTag ( tag ) || ( ref . indexOf ( ":" ) == - 1 ) ) ) { ok = true ; } } return ok ; }
Checks if if tag ref is a correct one or not