@Test public void testClone() { RelationalGroup result = group.clone(); assertThat( result, is( not( sameInstance( group ) ) ) ); assertThat( result.getHeader(), is( not( sameInstance( group.getHeader() ) ) ) ); assertThat( result.getFooter(), is( not( sameInstance( group.getFooter() ) ) ) ); assertThat( (RelationalGroup) result.getHeader().getParentSection(), is( equalTo( result ) ) ); assertThat( (RelationalGroup) result.getFooter().getParentSection(), is( equalTo( result ) ) ); }
public RelationalGroup clone() { final RelationalGroup g = (RelationalGroup) super.clone(); g.footer = (GroupFooter) footer.clone(); g.header = (GroupHeader) header.clone(); g.registerAsChild( g.footer ); g.registerAsChild( g.header ); return g; }
RelationalGroup extends Group { public RelationalGroup clone() { final RelationalGroup g = (RelationalGroup) super.clone(); g.footer = (GroupFooter) footer.clone(); g.header = (GroupHeader) header.clone(); g.registerAsChild( g.footer ); g.registerAsChild( g.header ); return g; } }
RelationalGroup extends Group { public RelationalGroup clone() { final RelationalGroup g = (RelationalGroup) super.clone(); g.footer = (GroupFooter) footer.clone(); g.header = (GroupHeader) header.clone(); g.registerAsChild( g.footer ); g.registerAsChild( g.header ); return g; } RelationalGroup(); }
RelationalGroup extends Group { public RelationalGroup clone() { final RelationalGroup g = (RelationalGroup) super.clone(); g.footer = (GroupFooter) footer.clone(); g.header = (GroupHeader) header.clone(); g.registerAsChild( g.footer ); g.registerAsChild( g.header ); return g; } RelationalGroup(); GroupHeader getHeader(); void setHeader( final GroupHeader header ); GroupFooter getFooter(); void setFooter( final GroupFooter footer ); void setFields( final List<String> c ); void clearFields(); int getElementCount(); void addField( final String name ); List<String> getFields(); void setFieldsArray( final String[] fields ); String[] getFieldsArray(); String toString(); void setBody( final GroupBody body ); boolean equals( final Object obj ); int hashCode(); boolean isGroupChange( final DataRow dataRow ); @Deprecated GroupDataBody findGroupDataBody(); RelationalGroup clone(); RelationalGroup derive( final boolean preserveElementInstanceIds ); Element getElement( final int index ); void setElementAt( final int index, final Element element ); List<SortConstraint> getSortingConstraint(); }
RelationalGroup extends Group { public RelationalGroup clone() { final RelationalGroup g = (RelationalGroup) super.clone(); g.footer = (GroupFooter) footer.clone(); g.header = (GroupHeader) header.clone(); g.registerAsChild( g.footer ); g.registerAsChild( g.header ); return g; } RelationalGroup(); GroupHeader getHeader(); void setHeader( final GroupHeader header ); GroupFooter getFooter(); void setFooter( final GroupFooter footer ); void setFields( final List<String> c ); void clearFields(); int getElementCount(); void addField( final String name ); List<String> getFields(); void setFieldsArray( final String[] fields ); String[] getFieldsArray(); String toString(); void setBody( final GroupBody body ); boolean equals( final Object obj ); int hashCode(); boolean isGroupChange( final DataRow dataRow ); @Deprecated GroupDataBody findGroupDataBody(); RelationalGroup clone(); RelationalGroup derive( final boolean preserveElementInstanceIds ); Element getElement( final int index ); void setElementAt( final int index, final Element element ); List<SortConstraint> getSortingConstraint();  }