19 package org.sleuthkit.autopsy.keywordsearch;
21 import java.text.Normalizer;
22 import org.openide.util.NbBundle;
60 Keyword(String searchTerm,
boolean isLiteral,
boolean isWholeWord) {
92 Keyword(String searchTerm,
boolean isLiteral,
boolean isWholeWord, String listName, String originalTerm) {
93 this.searchTerm = Normalizer.normalize(searchTerm, Normalizer.Form.NFKC);
115 Keyword(String searchTerm,
boolean isLiteral, BlackboardAttribute.ATTRIBUTE_TYPE
artifactAtrributeType) {
151 String getSearchTermType() {
154 return NbBundle.getMessage(NewKeywordPanel.class,
"NewKeywordPanel.exactButton.text");
156 return NbBundle.getMessage(NewKeywordPanel.class,
"NewKeywordPanel.substringButton.text");
159 return NbBundle.getMessage(NewKeywordPanel.class,
"NewKeywordPanel.regexButton.text");
185 BlackboardAttribute.ATTRIBUTE_TYPE getArtifactAttributeType() {
191 return String.format(
"Keyword{searchTerm='%s', isLiteral=%s, isWholeWord=%s}", searchTerm, isLiteral, isWholeWord);
199 if (getClass() != obj.getClass()) {
206 && this.listName.equals(other.getListName())
207 && this.originalTerm.equals(other.getOriginalTerm()));
213 hash = 17 * hash + this.searchTerm.hashCode();
214 hash = 17 * hash + this.listName.hashCode();
215 hash = 17 * hash + (this.isLiteral ? 1 : 0);
216 hash = 17 * hash + (this.isWholeWord ? 1 : 0);
217 hash = 17 * hash + this.originalTerm.hashCode();
224 String getListName() {
231 String getOriginalTerm() {
boolean searchTermIsWholeWord()
BlackboardAttribute.ATTRIBUTE_TYPE artifactAtrributeType
boolean searchTermIsLiteral()
boolean equals(Object obj)
final String originalTerm