/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* See LICENSE.txt included in this distribution for the specific
* language governing permissions and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at LICENSE.txt.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2005 Trond Norbye. All rights reserved.
* Use is subject to license terms.
*/
/**
* The hit class represents a single search hit
*
* @author Trond Norbye
*/
/**
* Holds value of property filename.
*/
/**
* Holds value of property directory
*/
/**
* Holds value of property line.
*/
/**
* Holds value of property lineno.
*/
/**
* Holds value of property binary.
*/
private boolean binary;
/**
* Holds value of property alt used to hightlight alternating files.
*/
private boolean alt;
/**
* path relative to source root.
*/
/**
* Creates a new instance of Hit
*/
public Hit() {
}
/**
* Creates a new instance of Hit
*
* @param filename The name of the file this hit represents
* @param line The line containing the match
* @param lineno The line number in the file the match was found
* @param binary If this is a binary file or not
* @param alt Is this the "alternate" file
*/
directory = "";
}
}
}
/**
* Getter for property filename.
*
* @return Value of property filename.
*/
return this.filename;
}
/**
* Getter for property path.
*
* @return Value of property path.
*/
return this.path;
}
/**
* Getter for property directory
*
* @return Value of property directory
*/
return this.directory;
}
/**
* Setter for property filename.
*
* @param filename New value of property filename.
*/
}
/**
* Getter for property line.
*
* @return Value of property line.
*/
return this.line;
}
/**
* Setter for property line.
*
* @param line New value of property line.
*/
}
/**
* Getter for property lineno.
*
* @return Value of property lineno.
*/
return this.lineno;
}
/**
* Setter for property lineno.
*
* @param lineno New value of property lineno.
*/
}
/**
* Compare this object to another hit (in order to implement the comparable
* interface)
*
* @param o The object to compare this object with
*
* @return the result of a toString().compareTo() of the filename
*/
}
/**
* Getter for property binary.
*
* @return Value of property binary.
*/
public boolean isBinary() {
return this.binary;
}
/**
* Setter for property binary.
*
* @param binary New value of property binary.
*/
}
/**
* Holds value of property tag.
*/
/**
* Getter for property tag.
* @return Value of property tag.
*/
return this.tag;
}
/**
* Setter for property tag.
* @param tag New value of property tag.
*/
}
/**
* Should this be alternate file?
* @return true if this is the "alternate" file
*/
public boolean getAlt() {
return alt;
}
/**
* Check if two objects are equal. Only consider the {@code filename} field
* to match the return value of the {@link #compareTo(Hit)} method.
* @param o the object to compare with
* @return true if the filenames are equal
*/
if (o instanceof Hit) {
}
return false;
}
public int hashCode() {
}
}