1 package org.catacomb.util;
2
3
4 import java.util.ArrayList;
5 import java.util.HashMap;
6
7
8 public class DirRef {
9
10 String dirName;
11
12 HashMap<String, DirRef> dirs;
13
14
15 ArrayList<FileRef> files;
16
17
18 public DirRef(String s) {
19 dirName = s;
20 dirs = new HashMap<String, DirRef>();
21 files = new ArrayList<FileRef>();
22 }
23
24 public void add(DirRef dr) {
25 dirs.put(dr.getDirName(), dr);
26 }
27
28 private String getDirName() {
29
30 return null;
31 }
32
33 public void add(FileRef fr) {
34 files.add(fr);
35 }
36
37 public boolean containsDir(String s) {
38 return (dirs.containsKey(s));
39 }
40
41 public DirRef getDir(String s) {
42 return dirs.get(s);
43 }
44
45
46
47 }