|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.perforce.p4java.impl.generic.core.file.FileAnnotation
public class FileAnnotation
Simple generic implementation class for IFileAnnotation interface.
Constructor Summary | |
---|---|
FileAnnotation(int upper,
int lower,
String depotPath,
String line,
IClientSummary.ClientLineEnd lineEnd)
Default all-field constructor. |
|
FileAnnotation(int order,
String depotPath,
int upper,
int lower)
Create a new non-data file annotation with the passed-in parameters. |
|
FileAnnotation(Map<String,Object> map,
String depotPath,
IClientSummary.ClientLineEnd lineEnd)
Construct a suitable FileAnnotation object from the passed-in map; this map must be in the format and use the fields returned from a Perforce server annotate command. |
Method Summary | |
---|---|
void |
addIntegrationAnnotation(IFileAnnotation annotation)
Add an integration annotation to the contributingSources list. |
List<IFileAnnotation> |
getAllIntegrations()
Get a list of all contributing integration annotations for this annotation, if such a list exists. |
String |
getDepotPath()
Get the associated depot path for this annotation, if one is available. |
String |
getLine()
Get the line being annotated. |
String |
getLine(boolean processLineEndings)
Get the line being annotated, with optional line ending processing based on client settings (if available). |
IClientSummary.ClientLineEnd |
getLineEnd()
|
int |
getLower()
Get the lower version or change number for the associated annotation. |
int |
getOrdering()
Get the ordering of this annotation in the associated allIntegrations list, if it exists. |
int |
getUpper()
Get the upper version or change number for the associated annotation. |
void |
setDepotPath(String depotPath)
|
void |
setLine(String line)
|
void |
setLineEnd(IClientSummary.ClientLineEnd lineEnd)
|
void |
setLower(int lower)
|
FileAnnotation |
setOrdering(int ordering)
|
void |
setUpper(int upper)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileAnnotation(int upper, int lower, String depotPath, String line, IClientSummary.ClientLineEnd lineEnd)
public FileAnnotation(Map<String,Object> map, String depotPath, IClientSummary.ClientLineEnd lineEnd)
Leave lineEnd null for normal use.
public FileAnnotation(int order, String depotPath, int upper, int lower)
Method Detail |
---|
public void addIntegrationAnnotation(IFileAnnotation annotation)
public String getDepotPath()
IFileAnnotation
getDepotPath
in interface IFileAnnotation
IFileAnnotation.getDepotPath()
public String getLine()
IFileAnnotation
The returned line will never be null, but may be empty.
getLine
in interface IFileAnnotation
IFileAnnotation.getLine()
public String getLine(boolean processLineEndings)
IFileAnnotation
The returned line will never be null, but may be empty.
getLine
in interface IFileAnnotation
processLineEndings
- if true, and if a client is associated with this
annotation (i.e. it was created by one of the IServer or IFileSpec
annotation methods, and a client was associated with the server at the
time the IServer or IFileSpec call was made), the returned string will
attempt to honor client line end settings where possible; if there are no
available settings, the local line ending is appended. If processLineEndings
is not true, the results are identical to calling the no-argument getLine method.IFileAnnotation.getLine(boolean)
public List<IFileAnnotation> getAllIntegrations()
IFileAnnotation
getAllIntegrations
in interface IFileAnnotation
com.perforce.p4java.core.file.IFileAnnotation#getContributingSources()
public int getLower()
IFileAnnotation
getLower
in interface IFileAnnotation
IFileAnnotation.getLower()
public int getUpper()
IFileAnnotation
getUpper
in interface IFileAnnotation
IFileAnnotation.getUpper()
public void setUpper(int upper)
public void setLower(int lower)
public void setDepotPath(String depotPath)
public void setLine(String line)
public IClientSummary.ClientLineEnd getLineEnd()
public void setLineEnd(IClientSummary.ClientLineEnd lineEnd)
public int getOrdering()
IFileAnnotation
getOrdering
in interface IFileAnnotation
public FileAnnotation setOrdering(int ordering)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |