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