org.eclipse.emf.emfstore.internal.client.model.changeTracking.merging.conflict
Class ConflictDescription

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.client.model.changeTracking.merging.conflict.ConflictDescription

public class ConflictDescription
extends Object

Container for the conflict description. The description contains placeholder marked through surrounding [ ]. The values for the placeholders are stored in a hashmap. This separation is done in order to support formated text. Use getResolvedDescription() in order to get a simple string.

Author:
wesendon

Constructor Summary
ConflictDescription(String description)
          Default constructor.
 
Method Summary
 void add(String key, Object value)
          Add a place holder.
 String getDescription()
          Get description with placeholders unreplaced.
 String getImage()
          Return name of image.
 String getResolvedDescription()
          Resolves description, by replacing the placeholders with it's values.
 Map<String,Object> getValues()
          Returns values for placeholders.
 void setDecisionManager(DecisionManager decisionManager)
          Sets the decisionManager.
 void setDescription(String description)
          Set description.
 void setImage(String name)
          Set image.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConflictDescription

public ConflictDescription(String description)
Default constructor.

Parameters:
description - description
Method Detail

add

public void add(String key,
                Object value)
Add a place holder.

Parameters:
key - key
value - value

getDescription

public String getDescription()
Get description with placeholders unreplaced.

Returns:
description
See Also:
getResolvedDescription()

getValues

public Map<String,Object> getValues()
Returns values for placeholders.

Returns:
map

getImage

public String getImage()
Return name of image.

Returns:
name of image.

setImage

public void setImage(String name)
Set image.

Parameters:
name - name of file

setDescription

public void setDescription(String description)
Set description.

Parameters:
description - text

getResolvedDescription

public String getResolvedDescription()
Resolves description, by replacing the placeholders with it's values.

Returns:
text

setDecisionManager

public void setDecisionManager(DecisionManager decisionManager)
Sets the decisionManager.

Parameters:
decisionManager - manager.


Copyright © 2015. All Rights Reserved.