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