Autopsy  4.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
FileSystemTypes.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2014 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.timeline.datamodel.eventtype;
20 
21 import java.util.Collections;
22 import java.util.List;
23 import javafx.scene.image.Image;
24 import org.openide.util.NbBundle;
26 
30 public enum FileSystemTypes implements EventType {
31 
32  FILE_MODIFIED(NbBundle.getMessage(FileSystemTypes.class, "FileSystemTypes.fileModified.name"), "blue-document-attribute-m.png"), // NON-NLS
33  FILE_ACCESSED(NbBundle.getMessage(FileSystemTypes.class, "FileSystemTypes.fileAccessed.name"), "blue-document-attribute-a.png"), // NON-NLS
34  FILE_CREATED(NbBundle.getMessage(FileSystemTypes.class, "FileSystemTypes.fileCreated.name"), "blue-document-attribute-b.png"), // NON-NLS
35  FILE_CHANGED(NbBundle.getMessage(FileSystemTypes.class, "FileSystemTypes.fileChanged.name"), "blue-document-attribute-c.png"); // NON-NLS
36 
37  private final String iconBase;
38 
39  private final Image image;
40 
41  @Override
42  public Image getFXImage() {
43  return image;
44  }
45 
46  @Override
47  public String getIconBase() {
48  return iconBase;
49  }
50 
51  @Override
54  }
55 
56  private final String displayName;
57 
58  @Override
59  public EventType getSubType(String string) {
60  return FileSystemTypes.valueOf(string);
61  }
62 
63  @Override
65  return BaseTypes.FILE_SYSTEM;
66  }
67 
68  @Override
69  public List<? extends EventType> getSubTypes() {
70  return Collections.emptyList();
71  }
72 
73  private FileSystemTypes(String displayName, String iconBase) {
74  this.displayName = displayName;
75  this.iconBase = iconBase;
76  this.image = new Image("org/sleuthkit/autopsy/timeline/images/" + iconBase, true); // NON-NLS
77  }
78 
79  @Override
80  public String getDisplayName() {
81  return displayName;
82  }
83 }

Copyright © 2012-2016 Basis Technology. Generated on: Mon Apr 24 2017
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.