ObjectTag extends AbstractVoiceXmlNode { public Collection<URI> getArchiveUris() throws URISyntaxException { final String archive = getArchive(); if (archive == null) { return null; } final String[] entries = archive.split(","); final Collection<URI> uris = new java.util.ArrayList<URI>(); for (String entry : entries) { final URI uri = new URI(entry.trim()); uris.add(uri); } return uris; } ObjectTag();   ObjectTag(final Node node); private  ObjectTag(final Node n,
            final XmlNodeFactory<? extends XmlNode> factory); String getTagName(); XmlNode newInstance(final Node n,
            final XmlNodeFactory<? extends XmlNode> factory); String getName(); void setName(final String name); String getExpr(); void setExpr(final String expr); String getCond(); void setCond(final String cond); String getClassid(); URI getClassidUri(); void setClassid(final String classid); void setClassid(final Class<?> classid); void setClassid(final Class<?> classid, final String method); void setClassid(final URI classid); String getCodebase(); void setCodebase(final String codebase); String getCodetype(); void setCodetype(final String codetype); String getData(); URI getDataUri(); void setData(final String data); void setData(final URI data); String getType(); void setType(final String type); String getArchive(); Collection<URI> getArchiveUris(); void setArchive(final String archive); void setArchive(final Collection<URI> uris); String getFetchhint(); void setFetchhint(final String fetchhint); String getFetchtimeout(); void setFetchtimeout(final String fetchtimeout); String getMaxage(); void setMaxage(final String maxage); String getMaxstale(); void setMaxstale(final String maxstale); Text addText(final String text); @Override Collection<String> getAttributeNames(); static final String TAG_NAME; static final String ATTRIBUTE_NAME; static final String ATTRIBUTE_EXPR; static final String ATTRIBUTE_COND; static final String ATTRIBUTE_CLASSID; static final String ATTRIBUTE_CODEBASE; static final String ATTRIBUTE_CODETYPE; static final String ATTRIBUTE_DATA; static final String ATTRIBUTE_TYPE; static final String ATTRIBUTE_ARCHIVE; static final String ATTRIBUTE_FETCHTIMEOUT; static final String ATTRIBUTE_FETCHHINT; static final String ATTRIBUTE_MAXAGE; static final String ATTRIBUTE_MAXSTALE; }
@Test public void testGetArchiveUris() throws Exception { final URI uri1 = new URI("http: final URI uri2 = new URI("ftp: final Collection<URI> uris = new java.util.ArrayList<URI>(); uris.add(uri1); uris.add(uri2); object.setArchive(uris); Assert.assertEquals(uris, object.getArchiveUris()); }
@Test public void testGetArchiveUrisNull() throws Exception { Assert.assertNull(object.getArchiveUris()); }