public class XbaseSeverityConverter extends SeverityConverter
SEVERITY_ERROR, SEVERITY_IGNORE, SEVERITY_INFO, SEVERITY_WARNING| Constructor and Description |
|---|
XbaseSeverityConverter() |
| Modifier and Type | Method and Description |
|---|---|
static Pair<String,String> |
decodeDelegationKey(String encodedValue)
Returns decoded delegation key or
null if encodedValue can not be parsed. |
protected String |
delegatedValue(Pair<String,String> pair) |
static String |
encodeDefaultSeverity(String delegationKey,
String defaultSeverity) |
Severity |
stringToSeverity(String severityAsString) |
public Severity stringToSeverity(String severityAsString)
stringToSeverity in class SeverityConverterprotected String delegatedValue(Pair<String,String> pair)
pair - holds first=delegationKey, second=defaultValue. delegationKey starts with XbaseConfigurableIssueCodes.JDT_CORE_PLUGIN_IDpublic static String encodeDefaultSeverity(String delegationKey, String defaultSeverity)
public static Pair<String,String> decodeDelegationKey(String encodedValue)
null if encodedValue can not be parsed.Pair where getFirst() is delegationKey and getSecond() is the defaultSeverity.encodeDefaultSeverity(String, String)Copyright © 2015. All Rights Reserved.