Autopsy  4.16.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
CreateSleuthkitNodeVisitor.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2011-2019 Basis Technology Corp.
5  * Contact: carrier <at> sleuthkit <dot> org
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 package org.sleuthkit.autopsy.datamodel;
20 
21 import org.openide.util.NbBundle;
22 import org.sleuthkit.datamodel.BlackboardArtifact;
23 import org.sleuthkit.datamodel.Content;
24 import org.sleuthkit.datamodel.DerivedFile;
25 import org.sleuthkit.datamodel.Directory;
26 import org.sleuthkit.datamodel.File;
27 import org.sleuthkit.datamodel.Image;
28 import org.sleuthkit.datamodel.LayoutFile;
29 import org.sleuthkit.datamodel.LocalDirectory;
30 import org.sleuthkit.datamodel.LocalFile;
31 import org.sleuthkit.datamodel.Pool;
32 import org.sleuthkit.datamodel.SlackFile;
33 import org.sleuthkit.datamodel.SleuthkitItemVisitor;
34 import org.sleuthkit.datamodel.SleuthkitVisitableItem;
35 import org.sleuthkit.datamodel.VirtualDirectory;
36 import org.sleuthkit.datamodel.Volume;
37 
41 public class CreateSleuthkitNodeVisitor extends SleuthkitItemVisitor.Default<AbstractContentNode<? extends Content>> {
42 
43  @Override
45  return new DirectoryNode(drctr);
46  }
47 
48  @Override
50  return new FileNode(file);
51  }
52 
53  @Override
55  return new ImageNode(image);
56  }
57 
58  @Override
60  return new VolumeNode(volume);
61  }
62 
63  @Override
65  return new PoolNode(pool);
66  }
67 
68  @Override
70  return new LayoutFileNode(lf);
71  }
72 
73  @Override
75  return new LocalFileNode(df);
76  }
77 
78  @Override
80  return new LocalFileNode(lf);
81  }
82 
83  @Override
84  public AbstractContentNode<? extends Content> visit(VirtualDirectory ld) {
85  return new VirtualDirectoryNode(ld);
86  }
87 
88  @Override
89  public AbstractContentNode<? extends Content> visit(LocalDirectory ld) {
90  return new LocalDirectoryNode(ld);
91  }
92 
93  @Override
95  return new SlackFileNode(sf);
96  }
97 
98  @Override
99  public AbstractContentNode<? extends Content> visit(BlackboardArtifact art) {
100  return new BlackboardArtifactNode(art);
101  }
102 
103  @Override
104  protected AbstractContentNode<? extends Content> defaultVisit(SleuthkitVisitableItem di) {
105  throw new UnsupportedOperationException(NbBundle.getMessage(this.getClass(),
106  "AbstractContentChildren.CreateTSKNodeVisitor.exception.noNodeMsg"));
107  }
108 }
AbstractContentNode<?extends Content > visit(Pool pool)
AbstractContentNode<?extends Content > visit(LocalDirectory ld)
AbstractContentNode<?extends Content > visit(File file)
AbstractContentNode<?extends Content > visit(LayoutFile lf)
AbstractContentNode<?extends Content > visit(LocalFile lf)
AbstractContentNode<?extends Content > visit(DerivedFile df)
AbstractContentNode<?extends Content > visit(BlackboardArtifact art)
AbstractContentNode<?extends Content > visit(VirtualDirectory ld)
AbstractContentNode<?extends Content > visit(SlackFile sf)
AbstractContentNode<?extends Content > visit(Directory drctr)
AbstractContentNode<?extends Content > visit(Volume volume)
AbstractContentNode<?extends Content > defaultVisit(SleuthkitVisitableItem di)
AbstractContentNode<?extends Content > visit(Image image)

Copyright © 2012-2020 Basis Technology. Generated on: Tue Sep 22 2020
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.