private boolean hasSubject ( String subject ) { boolean result = false ; String s = subject + "." ; int c = s . length ( ) ; for ( String propName : contextItems . getItemNames ( ) ) { result = s . equalsIgnoreCase ( propName . substring ( 0 , c ) ) ; if ( result ) { break ; } } return result ; }
Returns true if the CCOW context contains context settings pertaining to the named subject .