private boolean isPossibleValue ( PdfName value , PdfName [ ] accepted ) { for ( int i = 0 ; i < accepted . length ; i ++ ) { if ( accepted [ i ] . equals ( value ) ) { return true ; } } return false ; }
Checks if some value is valid for a certain key .