@Test public void testSetSeparator() { MultiItemMetadataXpathQuery query = create(); assertEquals("|", query.getSeparator()); query.setSeparator(","); assertEquals(",", query.getSeparator()); query.setSeparator(""); assertEquals("", query.getSeparator()); try { query.setSeparator(null); fail(); } catch (IllegalArgumentException e) { } assertEquals("", query.getSeparator()); }
public void setSeparator(String s) { separator = Args.notNull(s, "separator"); }
MultiItemMetadataXpathQuery extends MetadataXpathQueryImpl implements XpathQuery { public void setSeparator(String s) { separator = Args.notNull(s, "separator"); } }
MultiItemMetadataXpathQuery extends MetadataXpathQueryImpl implements XpathQuery { public void setSeparator(String s) { separator = Args.notNull(s, "separator"); } MultiItemMetadataXpathQuery();  MultiItemMetadataXpathQuery(String metadataKey, String xpathMetadataKey);  MultiItemMetadataXpathQuery(String metadataKey, String xpathMetadataKey, String separator); }
MultiItemMetadataXpathQuery extends MetadataXpathQueryImpl implements XpathQuery { public void setSeparator(String s) { separator = Args.notNull(s, "separator"); } MultiItemMetadataXpathQuery();  MultiItemMetadataXpathQuery(String metadataKey, String xpathMetadataKey);  MultiItemMetadataXpathQuery(String metadataKey, String xpathMetadataKey, String separator); @Override MetadataElement resolveXpath(Document doc, XPath xpath, String expr); String getSeparator(); void setSeparator(String s); }
MultiItemMetadataXpathQuery extends MetadataXpathQueryImpl implements XpathQuery { public void setSeparator(String s) { separator = Args.notNull(s, "separator"); } MultiItemMetadataXpathQuery();  MultiItemMetadataXpathQuery(String metadataKey, String xpathMetadataKey);  MultiItemMetadataXpathQuery(String metadataKey, String xpathMetadataKey, String separator); @Override MetadataElement resolveXpath(Document doc, XPath xpath, String expr); String getSeparator(); void setSeparator(String s);  }