protected boolean readFeatureParameters ( Element node ) { try { NodeList childrent = node . getChildNodes ( ) ; cpnames = new Vector < String > ( ) ; paras = new Vector < Vector < Integer > > ( ) ; for ( int i = 0 ; i < childrent . getLength ( ) ; i ++ ) if ( childrent . item ( i ) instanceof Element ) { Element child = ( Element ) childrent . item ( i ) ; String value = child . getAttribute ( "value" ) ; //parse the value and get the parameters String [ ] parastr = value . split ( ":" ) ; Vector < Integer > para = new Vector < Integer > ( ) ; for ( int j = 3 ; j < parastr . length ; ++ j ) { para . add ( Integer . parseInt ( parastr [ j ] ) ) ; } cpnames . add ( parastr [ 2 ] ) ; paras . add ( para ) ; } } catch ( Exception e ) { System . out . println ( e . getMessage ( ) ) ; e . printStackTrace ( ) ; return false ; } return true ; }
Read feature parameters .