Autopsy 4.22.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
LogicalImagerRuleSet.java
Go to the documentation of this file.
1/*
2 * Autopsy
3 *
4 * Copyright 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 */
19package org.sleuthkit.autopsy.logicalimager.configuration;
20
21import com.google.gson.annotations.Expose;
22import com.google.gson.annotations.SerializedName;
23import java.util.List;
24
28class LogicalImagerRuleSet {
29
30 @SerializedName("set-name")
31 @Expose(serialize = true)
32 final private String setName;
33
34 @SerializedName("rules")
35 @Expose(serialize = true)
36 private final List<LogicalImagerRule> rules;
37
38 LogicalImagerRuleSet(String setName, List<LogicalImagerRule> rules) {
39 this.setName = setName;
40 this.rules = rules;
41 }
42
43 String getSetName() {
44 return setName;
45 }
46
47 List<LogicalImagerRule> getRules() {
48 return rules;
49 }
50
51 /*
52 * Find a rule with the given name. Return null if not found.
53 */
54 LogicalImagerRule find(String name) {
55 for (LogicalImagerRule rule : rules) {
56 if (rule.getName().equals(name)) {
57 return rule;
58 }
59 }
60 return null;
61 }
62
63}

Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.