private void addDefaultProperties() { for (Iterator it = m_sources.iterator(); it.hasNext(); ) { Source source = (Source) it.next(); makePathLoadable(source.getPath()); addFetchedPaths(source.getPath(), source.getObjectType()); } }
public void addSource(Source s) { if (s == null) { throw new IllegalArgumentException("Cannot add a null source."); } if (m_sourceMap.containsKey(s.getPath())) { throw new IllegalArgumentException( "Query already contains a source for that path: " + s.getPath()); } m_sources.add(s); m_sourceMap.put(s.getPath(), s); }
public void addSignature(Signature sig, Path path) { for (Iterator it = sig.m_sources.iterator(); it.hasNext(); ) { Source source = (Source) it.next(); addSource(source.getObjectType(), Path.add(path, source.getPath())); } for (Iterator it = sig.m_paths.iterator(); it.hasNext(); ) { Path p = Path.add(path, (Path) it.next()); if (!m_paths.contains(p)) { m_paths.add(p); } } }
@Override public String getPath() { return base.getPath(); }