public Element getElement( final int index ) { switch ( index ) { case 0: return getTitleHeader(); case 1: return getHeader(); case 2: return getSummaryHeader(); case 3: return getBody(); default: throw new IndexOutOfBoundsException(); } }
final CrosstabRowGroup otherGroup = cogb.getGroup(); list.add( otherGroup.getField() ); body = otherGroup.getBody(); continue;
final CrosstabRowGroupBody cogb = (CrosstabRowGroupBody) body; final CrosstabRowGroup otherGroup = cogb.getGroup(); body = otherGroup.getBody(); continue;
private void collectCrosstabFields( final CrosstabGroup crosstabGroup, final HashSet<String> list ) { GroupBody body = crosstabGroup.getBody(); while ( body != null ) { if ( body instanceof CrosstabOtherGroupBody ) { final CrosstabOtherGroupBody cogb = (CrosstabOtherGroupBody) body; final CrosstabOtherGroup otherGroup = cogb.getGroup(); if ( otherGroup.getField() != null ) { list.add( otherGroup.getField() ); } body = otherGroup.getBody(); continue; } if ( body instanceof CrosstabRowGroupBody ) { final CrosstabRowGroupBody cogb = (CrosstabRowGroupBody) body; final CrosstabRowGroup otherGroup = cogb.getGroup(); if ( otherGroup.getField() != null ) { list.add( otherGroup.getField() ); } body = otherGroup.getBody(); continue; } if ( body instanceof CrosstabColumnGroupBody ) { final CrosstabColumnGroupBody cogb = (CrosstabColumnGroupBody) body; final CrosstabColumnGroup otherGroup = cogb.getGroup(); body = otherGroup.getBody(); continue; } break; } }