public boolean ok ( ) { Object okValue = get ( "ok" ) ; if ( okValue instanceof Boolean ) { return ( Boolean ) okValue ; } else if ( okValue instanceof Number ) { return ( ( Number ) okValue ) . intValue ( ) == 1 ; } else { return false ; } }
Gets the ok field which is whether this command executed correctly or not .