@Test public void testClone() { GroupDataBody result = body.clone(); assertThat( result, is( notNullValue() ) ); assertThat( result, is( not( equalTo( body ) ) ) ); }
public GroupDataBody clone() { final GroupDataBody dataBody = (GroupDataBody) super.clone(); dataBody.itemBand = (ItemBand) itemBand.clone(); dataBody.noDataBand = (NoDataBand) noDataBand.clone(); dataBody.detailsHeader = (DetailsHeader) detailsHeader.clone(); dataBody.detailsFooter = (DetailsFooter) detailsFooter.clone(); dataBody.registerAsChild( dataBody.itemBand ); dataBody.registerAsChild( dataBody.noDataBand ); dataBody.registerAsChild( dataBody.detailsHeader ); dataBody.registerAsChild( dataBody.detailsFooter ); return dataBody; }
GroupDataBody extends GroupBody { public GroupDataBody clone() { final GroupDataBody dataBody = (GroupDataBody) super.clone(); dataBody.itemBand = (ItemBand) itemBand.clone(); dataBody.noDataBand = (NoDataBand) noDataBand.clone(); dataBody.detailsHeader = (DetailsHeader) detailsHeader.clone(); dataBody.detailsFooter = (DetailsFooter) detailsFooter.clone(); dataBody.registerAsChild( dataBody.itemBand ); dataBody.registerAsChild( dataBody.noDataBand ); dataBody.registerAsChild( dataBody.detailsHeader ); dataBody.registerAsChild( dataBody.detailsFooter ); return dataBody; } }
GroupDataBody extends GroupBody { public GroupDataBody clone() { final GroupDataBody dataBody = (GroupDataBody) super.clone(); dataBody.itemBand = (ItemBand) itemBand.clone(); dataBody.noDataBand = (NoDataBand) noDataBand.clone(); dataBody.detailsHeader = (DetailsHeader) detailsHeader.clone(); dataBody.detailsFooter = (DetailsFooter) detailsFooter.clone(); dataBody.registerAsChild( dataBody.itemBand ); dataBody.registerAsChild( dataBody.noDataBand ); dataBody.registerAsChild( dataBody.detailsHeader ); dataBody.registerAsChild( dataBody.detailsFooter ); return dataBody; } GroupDataBody(); }
GroupDataBody extends GroupBody { public GroupDataBody clone() { final GroupDataBody dataBody = (GroupDataBody) super.clone(); dataBody.itemBand = (ItemBand) itemBand.clone(); dataBody.noDataBand = (NoDataBand) noDataBand.clone(); dataBody.detailsHeader = (DetailsHeader) detailsHeader.clone(); dataBody.detailsFooter = (DetailsFooter) detailsFooter.clone(); dataBody.registerAsChild( dataBody.itemBand ); dataBody.registerAsChild( dataBody.noDataBand ); dataBody.registerAsChild( dataBody.detailsHeader ); dataBody.registerAsChild( dataBody.detailsFooter ); return dataBody; } GroupDataBody(); Group getGroup(); NoDataBand getNoDataBand(); void setNoDataBand( final NoDataBand noDataBand ); ItemBand getItemBand(); void setItemBand( final ItemBand itemBand ); DetailsHeader getDetailsHeader(); void setDetailsHeader( final DetailsHeader detailsHeader ); DetailsFooter getDetailsFooter(); void setDetailsFooter( final DetailsFooter detailsFooter ); int getElementCount(); Element getElement( final int index ); void setElementAt( final int position, final Element element ); GroupDataBody clone(); GroupDataBody derive( final boolean preserveElementInstanceIds ); }
GroupDataBody extends GroupBody { public GroupDataBody clone() { final GroupDataBody dataBody = (GroupDataBody) super.clone(); dataBody.itemBand = (ItemBand) itemBand.clone(); dataBody.noDataBand = (NoDataBand) noDataBand.clone(); dataBody.detailsHeader = (DetailsHeader) detailsHeader.clone(); dataBody.detailsFooter = (DetailsFooter) detailsFooter.clone(); dataBody.registerAsChild( dataBody.itemBand ); dataBody.registerAsChild( dataBody.noDataBand ); dataBody.registerAsChild( dataBody.detailsHeader ); dataBody.registerAsChild( dataBody.detailsFooter ); return dataBody; } GroupDataBody(); Group getGroup(); NoDataBand getNoDataBand(); void setNoDataBand( final NoDataBand noDataBand ); ItemBand getItemBand(); void setItemBand( final ItemBand itemBand ); DetailsHeader getDetailsHeader(); void setDetailsHeader( final DetailsHeader detailsHeader ); DetailsFooter getDetailsFooter(); void setDetailsFooter( final DetailsFooter detailsFooter ); int getElementCount(); Element getElement( final int index ); void setElementAt( final int position, final Element element ); GroupDataBody clone(); GroupDataBody derive( final boolean preserveElementInstanceIds );  }