@Test( expected = NullPointerException.class ) public void testSetItemBandException() { body.setItemBand( null ); }
public void setItemBand( final ItemBand itemBand ) { if ( itemBand == null ) { throw new NullPointerException( "The itemBand must not be null" ); } validateLooping( itemBand ); if ( unregisterParent( itemBand ) ) { return; } final ItemBand oldElement = this.itemBand; this.itemBand.setParent( null ); this.itemBand = itemBand; this.itemBand.setParent( this ); notifyNodeChildRemoved( oldElement ); notifyNodeChildAdded( this.itemBand ); }
GroupDataBody extends GroupBody { public void setItemBand( final ItemBand itemBand ) { if ( itemBand == null ) { throw new NullPointerException( "The itemBand must not be null" ); } validateLooping( itemBand ); if ( unregisterParent( itemBand ) ) { return; } final ItemBand oldElement = this.itemBand; this.itemBand.setParent( null ); this.itemBand = itemBand; this.itemBand.setParent( this ); notifyNodeChildRemoved( oldElement ); notifyNodeChildAdded( this.itemBand ); } }
GroupDataBody extends GroupBody { public void setItemBand( final ItemBand itemBand ) { if ( itemBand == null ) { throw new NullPointerException( "The itemBand must not be null" ); } validateLooping( itemBand ); if ( unregisterParent( itemBand ) ) { return; } final ItemBand oldElement = this.itemBand; this.itemBand.setParent( null ); this.itemBand = itemBand; this.itemBand.setParent( this ); notifyNodeChildRemoved( oldElement ); notifyNodeChildAdded( this.itemBand ); } GroupDataBody(); }
GroupDataBody extends GroupBody { public void setItemBand( final ItemBand itemBand ) { if ( itemBand == null ) { throw new NullPointerException( "The itemBand must not be null" ); } validateLooping( itemBand ); if ( unregisterParent( itemBand ) ) { return; } final ItemBand oldElement = this.itemBand; this.itemBand.setParent( null ); this.itemBand = itemBand; this.itemBand.setParent( this ); notifyNodeChildRemoved( oldElement ); notifyNodeChildAdded( this.itemBand ); } 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 void setItemBand( final ItemBand itemBand ) { if ( itemBand == null ) { throw new NullPointerException( "The itemBand must not be null" ); } validateLooping( itemBand ); if ( unregisterParent( itemBand ) ) { return; } final ItemBand oldElement = this.itemBand; this.itemBand.setParent( null ); this.itemBand = itemBand; this.itemBand.setParent( this ); notifyNodeChildRemoved( oldElement ); notifyNodeChildAdded( this.itemBand ); } 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 );  }