Class FileLineMatch
- java.lang.Object
-
- com.perforce.p4java.impl.generic.core.FileLineMatch
-
- All Implemented Interfaces:
IFileLineMatch
public class FileLineMatch extends java.lang.Object implements IFileLineMatch
Implementation class of theIFileLineMatchinterface
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.perforce.p4java.core.IFileLineMatch
IFileLineMatch.MatchType
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringfileprotected java.lang.Stringlineprotected intlineNumberprotected intrevisionprotected IFileLineMatch.MatchTypetype
-
Constructor Summary
Constructors Constructor Description FileLineMatch(java.lang.String file, int revision, java.lang.String line, IFileLineMatch.MatchType type)Explicit-value constructor; sets all fields to null or -1, type to MatchType.MATCH.FileLineMatch(java.util.Map<java.lang.String,java.lang.Object> map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDepotFile()Get depot file path of matchjava.lang.StringgetLine()Get line text of matchintgetLineNumber()Get line number of matchintgetRevision()Get revision number of matchIFileLineMatch.MatchTypegetType()Get match type
-
-
-
Field Detail
-
file
protected java.lang.String file
-
revision
protected int revision
-
lineNumber
protected int lineNumber
-
line
protected java.lang.String line
-
type
protected IFileLineMatch.MatchType type
-
-
Constructor Detail
-
FileLineMatch
public FileLineMatch(java.lang.String file, int revision, java.lang.String line, IFileLineMatch.MatchType type)Explicit-value constructor; sets all fields to null or -1, type to MatchType.MATCH.- Parameters:
file- filerevision- revisionline- linetype- type
-
FileLineMatch
public FileLineMatch(java.util.Map<java.lang.String,java.lang.Object> map)
- Parameters:
map- map
-
-
Method Detail
-
getDepotFile
public java.lang.String getDepotFile()
Description copied from interface:IFileLineMatchGet depot file path of match- Specified by:
getDepotFilein interfaceIFileLineMatch- Returns:
- depot file path
-
getLine
public java.lang.String getLine()
Description copied from interface:IFileLineMatchGet line text of match- Specified by:
getLinein interfaceIFileLineMatch- Returns:
- line text
-
getRevision
public int getRevision()
Description copied from interface:IFileLineMatchGet revision number of match- Specified by:
getRevisionin interfaceIFileLineMatch- Returns:
- revision number
-
getLineNumber
public int getLineNumber()
Description copied from interface:IFileLineMatchGet line number of match- Specified by:
getLineNumberin interfaceIFileLineMatch- Returns:
- line number
-
getType
public IFileLineMatch.MatchType getType()
Description copied from interface:IFileLineMatchGet match type- Specified by:
getTypein interfaceIFileLineMatch- Returns:
- - type
-
-