mk.fsgrep.match
Class MatchResult

java.lang.Object
  extended by mk.fsgrep.match.MatchResult
All Implemented Interfaces:
Formatable

public class MatchResult
extends java.lang.Object
implements Formatable

The match results of a file search.

Author:
Murali Krishnan

Field Summary
static java.lang.String SEPARATOR
           
 
Constructor Summary
MatchResult(TargetFile file)
           
 
Method Summary
 void add(int number, java.lang.String line)
           
 void add(java.lang.String line)
           
protected static java.lang.String encode(java.lang.String string)
           
 boolean equals(java.lang.Object object)
           
 java.lang.String getFilename()
           
protected  java.util.List<mk.fsgrep.match.MatchResult.Entry> getLineMatches()
           
 void setFilename(java.lang.String val)
           
 java.lang.String toHtml()
           
 java.lang.String toString()
           
 TargetFile toTargetFile()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SEPARATOR

public static final java.lang.String SEPARATOR
See Also:
Constant Field Values
Constructor Detail

MatchResult

public MatchResult(TargetFile file)
Method Detail

encode

protected static java.lang.String encode(java.lang.String string)

getFilename

public java.lang.String getFilename()

getLineMatches

protected java.util.List<mk.fsgrep.match.MatchResult.Entry> getLineMatches()

setFilename

public void setFilename(java.lang.String val)

add

public void add(java.lang.String line)

add

public void add(int number,
                java.lang.String line)

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toHtml

public java.lang.String toHtml()
Specified by:
toHtml in interface Formatable

toTargetFile

public TargetFile toTargetFile()


Copyright © 2009. All Rights Reserved.