20 package org.sleuthkit.autopsy.keywordsearch;
 
   22 import org.openide.util.NbBundle;
 
   29     private String keywordString;   
 
   30     private boolean isLiteral;  
 
   31     private boolean isWholeword; 
 
   39     Keyword(String query, 
boolean isLiteral) {
 
   40         this.keywordString = query;
 
   41         this.isLiteral = isLiteral;
 
   42         this.isWholeword = 
true;
 
   51     Keyword(String query, 
boolean isLiteral, 
boolean isWholeword) {
 
   52         this.keywordString = query;
 
   53         this.isLiteral = isLiteral;
 
   54         this.isWholeword = isWholeword;
 
   63     Keyword(String query, 
boolean isLiteral, BlackboardAttribute.ATTRIBUTE_TYPE keywordType) {
 
   64         this(query, isLiteral);
 
   65         this.keywordType = keywordType;
 
   68     void setType(BlackboardAttribute.ATTRIBUTE_TYPE keywordType) {
 
   69         this.keywordType = keywordType;
 
   73         return this.keywordType;
 
   88     boolean isWholeword() {
 
   93     public String toString() {
 
   94         return NbBundle.getMessage(this.getClass(), 
"Keyword.toString.text", keywordString, isLiteral, keywordType);
 
   98     public boolean equals(Object obj) {
 
  102         if (getClass() != obj.getClass()) {
 
  105         final Keyword other = (Keyword) obj;
 
  106         if ((this.keywordString == null) ? (other.keywordString != null) : !this.keywordString.equals(other.keywordString)) {
 
  109         if (this.isLiteral != other.isLiteral) {
 
  116     public int hashCode() {
 
  118         hash = 17 * hash + (this.keywordString != null ? this.keywordString.hashCode() : 0);
 
  119         hash = 17 * hash + (this.isLiteral ? 1 : 0);
 
ATTRIBUTE_TYPE(int typeID, String label, String displayName)