@Test public void testClone() { CrosstabOtherGroup crosstab = new CrosstabOtherGroup(); CrosstabOtherGroup result = crosstab.clone(); assertThat( result, is( not( equalTo( crosstab ) ) ) ); assertThat( result.getHeader(), is( not( equalTo( crosstab.getHeader() ) ) ) ); assertThat( result.getFooter(), is( not( equalTo( crosstab.getFooter() ) ) ) ); }
public CrosstabOtherGroup clone() { final CrosstabOtherGroup g = (CrosstabOtherGroup) super.clone(); g.footer = (GroupFooter) footer.clone(); g.header = (GroupHeader) header.clone(); g.registerAsChild( g.footer ); g.registerAsChild( g.header ); return g; }
CrosstabOtherGroup extends Group { public CrosstabOtherGroup clone() { final CrosstabOtherGroup g = (CrosstabOtherGroup) super.clone(); g.footer = (GroupFooter) footer.clone(); g.header = (GroupHeader) header.clone(); g.registerAsChild( g.footer ); g.registerAsChild( g.header ); return g; } }
CrosstabOtherGroup extends Group { public CrosstabOtherGroup clone() { final CrosstabOtherGroup g = (CrosstabOtherGroup) super.clone(); g.footer = (GroupFooter) footer.clone(); g.header = (GroupHeader) header.clone(); g.registerAsChild( g.footer ); g.registerAsChild( g.header ); return g; } CrosstabOtherGroup();  CrosstabOtherGroup( final GroupBody body );  CrosstabOtherGroup( final CrosstabCellBody body );  CrosstabOtherGroup( final CrosstabColumnGroupBody body ); }
CrosstabOtherGroup extends Group { public CrosstabOtherGroup clone() { final CrosstabOtherGroup g = (CrosstabOtherGroup) super.clone(); g.footer = (GroupFooter) footer.clone(); g.header = (GroupHeader) header.clone(); g.registerAsChild( g.footer ); g.registerAsChild( g.header ); return g; } CrosstabOtherGroup();  CrosstabOtherGroup( final GroupBody body );  CrosstabOtherGroup( final CrosstabCellBody body );  CrosstabOtherGroup( final CrosstabColumnGroupBody body ); GroupHeader getHeader(); void setHeader( final GroupHeader header ); GroupFooter getFooter(); void setFooter( final GroupFooter footer ); CrosstabOtherGroup clone(); CrosstabOtherGroup derive( final boolean preserveElementInstanceIds ); Element getElement( final int index ); int getElementCount(); void setElementAt( final int index, final Element element ); String getField(); void setField( final String field ); void setBody( final GroupBody body ); boolean isGroupChange( final DataRow dataRow ); List<SortConstraint> getSortingConstraint(); }
CrosstabOtherGroup extends Group { public CrosstabOtherGroup clone() { final CrosstabOtherGroup g = (CrosstabOtherGroup) super.clone(); g.footer = (GroupFooter) footer.clone(); g.header = (GroupHeader) header.clone(); g.registerAsChild( g.footer ); g.registerAsChild( g.header ); return g; } CrosstabOtherGroup();  CrosstabOtherGroup( final GroupBody body );  CrosstabOtherGroup( final CrosstabCellBody body );  CrosstabOtherGroup( final CrosstabColumnGroupBody body ); GroupHeader getHeader(); void setHeader( final GroupHeader header ); GroupFooter getFooter(); void setFooter( final GroupFooter footer ); CrosstabOtherGroup clone(); CrosstabOtherGroup derive( final boolean preserveElementInstanceIds ); Element getElement( final int index ); int getElementCount(); void setElementAt( final int index, final Element element ); String getField(); void setField( final String field ); void setBody( final GroupBody body ); boolean isGroupChange( final DataRow dataRow ); List<SortConstraint> getSortingConstraint();  }