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 theIFileLineMatch
interface
-
-
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.String
file
protected java.lang.String
line
protected int
lineNumber
protected int
revision
protected IFileLineMatch.MatchType
type
-
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.String
getDepotFile()
Get depot file path of matchjava.lang.String
getLine()
Get line text of matchint
getLineNumber()
Get line number of matchint
getRevision()
Get revision number of matchIFileLineMatch.MatchType
getType()
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:IFileLineMatch
Get depot file path of match- Specified by:
getDepotFile
in interfaceIFileLineMatch
- Returns:
- depot file path
-
getLine
public java.lang.String getLine()
Description copied from interface:IFileLineMatch
Get line text of match- Specified by:
getLine
in interfaceIFileLineMatch
- Returns:
- line text
-
getRevision
public int getRevision()
Description copied from interface:IFileLineMatch
Get revision number of match- Specified by:
getRevision
in interfaceIFileLineMatch
- Returns:
- revision number
-
getLineNumber
public int getLineNumber()
Description copied from interface:IFileLineMatch
Get line number of match- Specified by:
getLineNumber
in interfaceIFileLineMatch
- Returns:
- line number
-
getType
public IFileLineMatch.MatchType getType()
Description copied from interface:IFileLineMatch
Get match type- Specified by:
getType
in interfaceIFileLineMatch
- Returns:
- - type
-
-