com.perforce.p4java.impl.generic.core
Class FileLineMatch

java.lang.Object
  extended by com.perforce.p4java.impl.generic.core.FileLineMatch
All Implemented Interfaces:
IFileLineMatch

public class FileLineMatch
extends Object
implements IFileLineMatch

Implementation class of the IFileLineMatch interface


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.perforce.p4java.core.IFileLineMatch
IFileLineMatch.MatchType
 
Field Summary
protected  String file
           
protected  String line
           
protected  int lineNumber
           
protected  int revision
           
protected  IFileLineMatch.MatchType type
           
 
Constructor Summary
FileLineMatch(Map<String,Object> map)
          Create a file line match
FileLineMatch(String file, int revision, String line, IFileLineMatch.MatchType type)
          Explicit-value constructor; sets all fields to null or -1, type to MatchType.MATCH.
 
Method Summary
 String getDepotFile()
          Get depot file path of match
 String getLine()
          Get line text of match
 int getLineNumber()
          Get line number of match
 int getRevision()
          Get revision number of match
 IFileLineMatch.MatchType getType()
          Get match type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

file

protected String file

revision

protected int revision

lineNumber

protected int lineNumber

line

protected String line

type

protected IFileLineMatch.MatchType type
Constructor Detail

FileLineMatch

public FileLineMatch(String file,
                     int revision,
                     String line,
                     IFileLineMatch.MatchType type)
Explicit-value constructor; sets all fields to null or -1, type to MatchType.MATCH.


FileLineMatch

public FileLineMatch(Map<String,Object> map)
Create a file line match

Parameters:
map -
Method Detail

getDepotFile

public String getDepotFile()
Description copied from interface: IFileLineMatch
Get depot file path of match

Specified by:
getDepotFile in interface IFileLineMatch
Returns:
depot file path
See Also:
IFileLineMatch.getDepotFile()

getLine

public String getLine()
Description copied from interface: IFileLineMatch
Get line text of match

Specified by:
getLine in interface IFileLineMatch
Returns:
line text
See Also:
IFileLineMatch.getLine()

getRevision

public int getRevision()
Description copied from interface: IFileLineMatch
Get revision number of match

Specified by:
getRevision in interface IFileLineMatch
Returns:
revision number
See Also:
IFileLineMatch.getRevision()

getLineNumber

public int getLineNumber()
Description copied from interface: IFileLineMatch
Get line number of match

Specified by:
getLineNumber in interface IFileLineMatch
Returns:
line number
See Also:
IFileLineMatch.getLineNumber()

getType

public IFileLineMatch.MatchType getType()
Description copied from interface: IFileLineMatch
Get match type

Specified by:
getType in interface IFileLineMatch
Returns:
- type
See Also:
IFileLineMatch.getType()


Copyright © 2015 Perforce Software. All Rights Reserved.