Sleuth Kit Java Bindings (JNI)  4.6.0
Java bindings for using The Sleuth Kit
IngestModuleInfo.java
Go to the documentation of this file.
1 /*
2  * Sleuth Kit Data Model
3  *
4  * Copyright 2011-2016 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.datamodel;
20 
21 import java.util.ResourceBundle;
22 
27 public final class IngestModuleInfo {
28 
29  private static final ResourceBundle bundle = ResourceBundle.getBundle("org.sleuthkit.datamodel.Bundle");
30 
34  public static enum IngestModuleType {
35  //DO NOT CHANGE ORDER
36  DATA_SOURCE_LEVEL(bundle.getString("IngestModuleInfo.IngestModuleType.DataSourceLevel.displayName")),
37  FILE_LEVEL(bundle.getString("IngestModuleInfo.IngestModuleType.FileLevel.displayName"));
38 
39  private String displayName;
40 
41  private IngestModuleType(String displayName) {
42  this.displayName = displayName;
43  }
44 
45  public static IngestModuleType fromID(int typeId) {
46  for (IngestModuleType moduleType : IngestModuleType.values()) {
47  if (moduleType.ordinal() == typeId) {
48  return moduleType;
49  }
50  }
51  return null;
52  }
53 
57  public String getDisplayName() {
58  return displayName;
59  }
60 
61  }
62 
63  private final long ingestModuleId;
64  private final String displayName;
65  private final String uniqueName;
66  private final IngestModuleType type;
67  private final String version;
68 
77  IngestModuleInfo(long ingestModuleId, String displayName, String uniqueName, IngestModuleType type, String version) {
78  this.ingestModuleId = ingestModuleId;
79  this.displayName = displayName;
80  this.uniqueName = uniqueName;
81  this.type = type;
82  this.version = version;
83  }
84 
88  public long getIngestModuleId() {
89  return ingestModuleId;
90  }
91 
95  public String getDisplayName() {
96  return displayName;
97  }
98 
102  public String getUniqueName() {
103  return uniqueName;
104  }
105 
110  return type;
111  }
112 
116  public String getVersion() {
117  return version;
118  }
119 
120 }

Copyright © 2011-2018 Brian Carrier. (carrier -at- sleuthkit -dot- org)
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.