@Test public void testSetFields() { List<String> fields = new ArrayList<String>(); fields.add( "test_field" ); group.setFields( fields ); assertThat( (String[]) group.getAttribute( AttributeNames.Core.NAMESPACE, AttributeNames.Core.GROUP_FIELDS ), is( equalTo( new String[] { "test_field" } ) ) ); assertThat( group.getFields(), is( equalTo( fields ) ) ); }
public void setFields( final List<String> c ) { if ( c == null ) { throw new NullPointerException(); } final String[] fields = c.toArray( new String[c.size()] ); setFieldsArray( fields ); }
RelationalGroup extends Group { public void setFields( final List<String> c ) { if ( c == null ) { throw new NullPointerException(); } final String[] fields = c.toArray( new String[c.size()] ); setFieldsArray( fields ); } }
RelationalGroup extends Group { public void setFields( final List<String> c ) { if ( c == null ) { throw new NullPointerException(); } final String[] fields = c.toArray( new String[c.size()] ); setFieldsArray( fields ); } RelationalGroup(); }
RelationalGroup extends Group { public void setFields( final List<String> c ) { if ( c == null ) { throw new NullPointerException(); } final String[] fields = c.toArray( new String[c.size()] ); setFieldsArray( fields ); } 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 void setFields( final List<String> c ) { if ( c == null ) { throw new NullPointerException(); } final String[] fields = c.toArray( new String[c.size()] ); setFieldsArray( fields ); } 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();  }