public final Map < String , SheetConfiguration > buildConfiguration ( ) { Map < String , SheetConfiguration > sheetConfigMap = new LinkedHashMap <> ( ) ; // in buildsheet, it's possible to add sheets in workbook. // so cache the sheetname first here. List < String > sheetNames = new ArrayList <> ( ) ; String sname ; for ( int i = 0 ; i < parent . getWb ( ) . getNumberOfSheets ( ) ; i ++ ) { sname = parent . getWb ( ) . getSheetName ( i ) ; if ( ! sname . startsWith ( org . tiefaces . common . TieConstants . COPY_SHEET_PREFIX ) ) { sheetNames . add ( sname ) ; } } for ( String sheetName : sheetNames ) { Sheet sheet = parent . getWb ( ) . getSheet ( sheetName ) ; ConfigurationUtility . buildSheetCommentFromAlias ( sheet , parent . getTieCommandAliasList ( ) ) ; buildSheet ( sheet , sheetConfigMap , parent . getCellAttributesMap ( ) ) ; } return sheetConfigMap ; }
Builds the configuration .