public abstract class MergeRecord<R extends MergeRecord<R>> extends ArtifactRecord<R> implements ArtifactMergeInfo
ArtifactMergeInfo.ConflictType, ArtifactMergeInfo.Field<T>, ArtifactMergeInfo.Result
ArtifactDiff.ChangeType, ArtifactDiff.Field<T>
_values
CONFLICT_TYPE, IS_CONFLICT, MAINLINE_VALUE, REPLACEMENT, RESULT, SANDBOX_VALUE
ARTIFACT_PATH, CHANGE_TYPE, ELEMENT_ID, ELEMENT_NAME, ELEMENT_TYPE, MERGE_INFO, REPORTED_BY, REPOSITORY_ID
Modifier | Constructor and Description |
---|---|
protected |
MergeRecord(java.util.Map<java.lang.String,java.lang.Object> values)
Creates a record from existing values.
|
protected |
MergeRecord(java.lang.String objName,
java.lang.String objType,
java.lang.String summary)
Constructs a merge record.
|
Modifier and Type | Method and Description |
---|---|
R |
conflictType(ArtifactMergeInfo.ConflictType c)
Indicates the type of the conflict.
|
<T> T |
get(ArtifactMergeInfo.Field<T> field)
Returns the value of a field.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getPersistableValues()
Returns the values that may be persisted in a new mutable map.
|
R |
isConflict(java.lang.Boolean b)
Deprecated.
|
R |
mainlineValue(java.lang.String s)
Indicates the value from mainline.
|
R |
replacement(java.lang.String s)
Indicates the value that replaces the value in the target environment.
|
R |
result(ArtifactMergeInfo.Result r)
Indicates the result of the merge process.
|
R |
sandboxValue(java.lang.String s)
Indicates the value from the sandbox.
|
artifactPath, changeType, elementId, elementName, elementType, get, reportedBy, repositoryId
changeDate, changedBy, getObjectName, getObjectType, objectId, url
clone, clone, get, getChildren, getDiagnosticRecordId, getSummary, hasChildren, newChild, put, toString
protected MergeRecord(java.lang.String objName, java.lang.String objType, java.lang.String summary)
objName
- the name of the objectobjType
- the type of the objectsummary
- the summaryprotected MergeRecord(java.util.Map<java.lang.String,java.lang.Object> values)
values
- the existing valuesjava.lang.NullPointerException
- If the given map is nullprotected java.util.Map<java.lang.String,java.lang.Object> getPersistableValues()
SandboxLogRecord
getPersistableValues
in class SandboxLogRecord<R extends MergeRecord<R>>
public <T> T get(ArtifactMergeInfo.Field<T> field)
ArtifactMergeInfo
get
in interface ArtifactMergeInfo
T
- the data type of the fieldfield
- the name of the field@Deprecated public R isConflict(java.lang.Boolean b)
b
- true if this record represents a merge conflictpublic R conflictType(ArtifactMergeInfo.ConflictType c)
c
- the value of conflict typepublic R mainlineValue(java.lang.String s)
s
- the value from mainlinepublic R sandboxValue(java.lang.String s)
s
- the value from the sandboxpublic R result(ArtifactMergeInfo.Result r)
r
- the result of the merge processpublic R replacement(java.lang.String s)
s
- the replacement value