Esempio n. 1
0
 private void addDefaultProperties() {
   for (Iterator it = m_sources.iterator(); it.hasNext(); ) {
     Source source = (Source) it.next();
     makePathLoadable(source.getPath());
     addFetchedPaths(source.getPath(), source.getObjectType());
   }
 }
Esempio n. 2
0
  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);
  }
Esempio n. 3
0
 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);
     }
   }
 }
Esempio n. 4
0
 @Override
 public String getPath() {
   return base.getPath();
 }