@Test public void setExtensions(String[] exts) { assertThat("setExtensions 0", bf.getExtensions()[0], equalTo("xml")); bf.setExtensions(new String[]{"1", "2", "3"}); assertThat("setExtensions 1", bf.getExtensions(), notNullValue()); assertTrue("setExtensions 2", bf.getExtensions().length == 3); assertThat("setExtensions 3", bf.getExtensions()[0], equalTo("1")); assertThat("setExtensions 4", bf.getExtensions()[1], equalTo("2")); assertThat("setExtensions 5", bf.getExtensions()[2], equalTo("3")); bf.setExtensions(new String[0]); assertThat("setExtensions 6", bf.getExtensions(), notNullValue()); assertTrue("setExtensions 7", bf.getExtensions().length == 0); }
public void setExtensions(String[] exts) { extensions = new ArrayList<String>(); for (int i = 0; i < exts.length; i++) { extensions.add(exts[i]); } }
BitstreamFormat { public void setExtensions(String[] exts) { extensions = new ArrayList<String>(); for (int i = 0; i < exts.length; i++) { extensions.add(exts[i]); } } }
BitstreamFormat { public void setExtensions(String[] exts) { extensions = new ArrayList<String>(); for (int i = 0; i < exts.length; i++) { extensions.add(exts[i]); } } BitstreamFormat(Context context, TableRow row); }
BitstreamFormat { public void setExtensions(String[] exts) { extensions = new ArrayList<String>(); for (int i = 0; i < exts.length; i++) { extensions.add(exts[i]); } } BitstreamFormat(Context context, TableRow row); static BitstreamFormat find(Context context, int id); static BitstreamFormat findByMIMEType(Context context,
            String mimeType); static BitstreamFormat findByShortDescription(Context context,
            String desc); static BitstreamFormat findUnknown(Context context); static BitstreamFormat[] findAll(Context context); static BitstreamFormat[] findNonInternal(Context context); static BitstreamFormat create(Context context); final int getID(); final String getShortDescription(); final void setShortDescription(String s); final String getDescription(); final void setDescription(String s); final String getMIMEType(); final void setMIMEType(String s); final int getSupportLevel(); String getSupportLevelText(); final void setSupportLevel(int sl); final boolean isInternal(); final void setInternal(boolean b); void update(); void delete(); String[] getExtensions(); void setExtensions(String[] exts); static int getSupportLevelID(String slevel); }
BitstreamFormat { public void setExtensions(String[] exts) { extensions = new ArrayList<String>(); for (int i = 0; i < exts.length; i++) { extensions.add(exts[i]); } } BitstreamFormat(Context context, TableRow row); static BitstreamFormat find(Context context, int id); static BitstreamFormat findByMIMEType(Context context,
            String mimeType); static BitstreamFormat findByShortDescription(Context context,
            String desc); static BitstreamFormat findUnknown(Context context); static BitstreamFormat[] findAll(Context context); static BitstreamFormat[] findNonInternal(Context context); static BitstreamFormat create(Context context); final int getID(); final String getShortDescription(); final void setShortDescription(String s); final String getDescription(); final void setDescription(String s); final String getMIMEType(); final void setMIMEType(String s); final int getSupportLevel(); String getSupportLevelText(); final void setSupportLevel(int sl); final boolean isInternal(); final void setInternal(boolean b); void update(); void delete(); String[] getExtensions(); void setExtensions(String[] exts); static int getSupportLevelID(String slevel); static final int UNKNOWN; static final int KNOWN; static final int SUPPORTED; }