Ejemplo 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());
   }
 }
Ejemplo 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);
  }
Ejemplo 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);
     }
   }
 }
Ejemplo n.º 4
0
 @Override
 public String getPath() {
   return base.getPath();
 }