public boolean removeDimension ( String dimName ) { if ( immutable ) throw new IllegalStateException ( "Cant modify" ) ; for ( int i = 0 ; i < dimensions . size ( ) ; i ++ ) { Dimension d = dimensions . get ( i ) ; if ( dimName . equals ( d . getShortName ( ) ) ) { dimensions . remove ( d ) ; return true ; } } return false ; }
remove a Dimension using its name in this group only