public class ConflictOption extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ConflictOption.OptionType
Type of options.
|
| Constructor and Description |
|---|
ConflictOption(Object obj,
ConflictOption.OptionType type)
Alternative contstrutor which will toString the input object.
|
ConflictOption(String option,
ConflictOption.OptionType type)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addOperations(Set<AbstractOperation> ops)
Adds the change operations, which will be applied in case, that this option is selected as solution.
|
String |
getDetailProvider()
Returns detailprovider string.
|
String |
getFullOptionLabel()
Returns the complete option label.
|
Set<AbstractOperation> |
getOperations()
Returns the operations, stored in this option.
|
String |
getOptionLabel()
Returns the option's label.
|
String |
getStrippedOptionLabel()
Returns the Option's label with new line characters removed.
|
ConflictOption.OptionType |
getType()
Returns the type.
|
boolean |
hasExtraOptionAction()
Returns whether option should be called (
optionChosen()), if selected. |
boolean |
isDetailsProvider()
Tells whehter option provides details.
|
boolean |
optionChosen()
Called if Option is chosen in the UI.
|
void |
setDetailProvider(String detailProvider)
Sets a detailprovider.
|
void |
setOptionLabel(String option)
Sets the option's label.
|
public ConflictOption(String option, ConflictOption.OptionType type)
option - name of optiontype - typepublic ConflictOption(Object obj, ConflictOption.OptionType type)
obj - objecttype - option typepublic String getOptionLabel()
public void setOptionLabel(String option)
option - textpublic String getStrippedOptionLabel()
public String getFullOptionLabel()
public ConflictOption.OptionType getType()
public void addOperations(Set<AbstractOperation> ops)
ops - operationspublic Set<AbstractOperation> getOperations()
public boolean isDetailsProvider()
public void setDetailProvider(String detailProvider)
detailProvider - identifying stringpublic String getDetailProvider()
public boolean hasExtraOptionAction()
optionChosen()), if selected.public boolean optionChosen()
Copyright © 2017. All rights reserved.