public class MapSerializerUtil
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
MapSerializerUtil.EscapeInfoProvider
Deprecated.
|
static interface |
MapSerializerUtil.EscapeInfoProvider2
String escaping info provider.
|
static class |
MapSerializerUtil.UnescapeResult |
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
PARSING_ERROR_PREFIX |
static MapSerializerUtil.EscapeInfoProvider |
STD_ESCAPER
Deprecated.
use
STD_ESCAPER2 |
static MapSerializerUtil.EscapeInfoProvider2 |
STD_ESCAPER2 |
| Constructor and Description |
|---|
MapSerializerUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
escapeStr(java.lang.String str,
MapSerializerUtil.EscapeInfoProvider p)
|
static @Nullable java.lang.String |
escapeStr(@Nullable java.lang.String str,
@NotNull MapSerializerUtil.EscapeInfoProvider2 p)
Escapes characters specified by provider with '\' and specified character.
|
static int |
indexOf(java.lang.String currentString,
char findWhat,
MapSerializerUtil.EscapeInfoProvider escaper)
|
static int |
indexOf(@NotNull java.lang.String currentString,
char findWhat,
@NotNull MapSerializerUtil.EscapeInfoProvider2 escaper) |
static boolean |
isValidJavaIdentifier(@NotNull java.lang.String name) |
static java.lang.String |
propertiesToString(java.util.Map<java.lang.String,java.lang.String> props,
MapSerializerUtil.EscapeInfoProvider escaper)
|
static @NotNull java.lang.String |
propertiesToString(@NotNull java.util.Map<java.lang.String,java.lang.String> props,
@NotNull MapSerializerUtil.EscapeInfoProvider2 escaper) |
static @NotNull java.util.Map<java.lang.String,java.lang.String> |
stringToProperties(@NotNull java.lang.String string,
@NotNull MapSerializerUtil.EscapeInfoProvider escaper)
|
static @NotNull java.util.Map<java.lang.String,java.lang.String> |
stringToProperties(@NotNull java.lang.String string,
@NotNull MapSerializerUtil.EscapeInfoProvider2 escaper)
performs conversion of string to property map with string name checking.
|
static @NotNull java.util.Map<java.lang.String,java.lang.String> |
stringToProperties(@NotNull java.lang.String string,
@NotNull MapSerializerUtil.EscapeInfoProvider2 escaper,
boolean strictNameCheck)
Converts string to property map
|
static @NotNull java.util.Map<java.lang.String,java.lang.String> |
stringToProperties(@NotNull java.lang.String string,
@NotNull MapSerializerUtil.EscapeInfoProvider escaper,
boolean strictNameCheck)
|
static @Nullable java.lang.String |
unescapeStr(@Nullable java.lang.String str,
@NotNull MapSerializerUtil.EscapeInfoProvider p)
|
static @Nullable java.lang.String |
unescapeStr(@Nullable java.lang.String str,
@NotNull MapSerializerUtil.EscapeInfoProvider2 p)
Unescapes characters specified by provider with '\' and specified character.
|
protected static final java.lang.String PARSING_ERROR_PREFIX
@Deprecated public static final MapSerializerUtil.EscapeInfoProvider STD_ESCAPER
STD_ESCAPER2public static final MapSerializerUtil.EscapeInfoProvider2 STD_ESCAPER2
@Deprecated
@NotNull
public static @NotNull java.util.Map<java.lang.String,java.lang.String> stringToProperties(@NotNull
@NotNull java.lang.String string,
@NotNull
@NotNull MapSerializerUtil.EscapeInfoProvider escaper)
throws java.text.ParseException
stringToProperties(String, jetbrains.buildServer.messages.serviceMessages.MapSerializerUtil.EscapeInfoProvider2)string - source stringescaper - escaping rule providerjava.text.ParseException - if parsing of the property sting failedstringToProperties(String, jetbrains.buildServer.messages.serviceMessages.MapSerializerUtil.EscapeInfoProvider, boolean)@NotNull
public static @NotNull java.util.Map<java.lang.String,java.lang.String> stringToProperties(@NotNull
@NotNull java.lang.String string,
@NotNull
@NotNull MapSerializerUtil.EscapeInfoProvider2 escaper)
throws java.text.ParseException
string - source stringescaper - escaping rule providerjava.text.ParseException - if parsing of the property sting failedstringToProperties(String, jetbrains.buildServer.messages.serviceMessages.MapSerializerUtil.EscapeInfoProvider, boolean)@Deprecated
public static java.lang.String propertiesToString(java.util.Map<java.lang.String,java.lang.String> props,
MapSerializerUtil.EscapeInfoProvider escaper)
@NotNull
public static @NotNull java.lang.String propertiesToString(@NotNull
@NotNull java.util.Map<java.lang.String,java.lang.String> props,
@NotNull
@NotNull MapSerializerUtil.EscapeInfoProvider2 escaper)
@Deprecated
@NotNull
public static @NotNull java.util.Map<java.lang.String,java.lang.String> stringToProperties(@NotNull
@NotNull java.lang.String string,
@NotNull
@NotNull MapSerializerUtil.EscapeInfoProvider escaper,
boolean strictNameCheck)
throws java.text.ParseException
stringToProperties(String, jetbrains.buildServer.messages.serviceMessages.MapSerializerUtil.EscapeInfoProvider2, boolean)string - in a form of "name1='value' name2='value' ..."escaper - escaping rule providerstrictNameCheck - if true each name is checked to be a valid java identifier, otherwise it's only checked for absence of spacesjava.text.ParseException - if parsing of the property sting failed@NotNull
public static @NotNull java.util.Map<java.lang.String,java.lang.String> stringToProperties(@NotNull
@NotNull java.lang.String string,
@NotNull
@NotNull MapSerializerUtil.EscapeInfoProvider2 escaper,
boolean strictNameCheck)
throws java.text.ParseException
string - in a form of "name1='value' name2='value' ..."escaper - escaping rule providerstrictNameCheck - if true each name is checked to be a valid java identifier, otherwise it's only checked for absence of spacesjava.text.ParseException - if parsing of the property sting failed@Deprecated
public static int indexOf(java.lang.String currentString,
char findWhat,
MapSerializerUtil.EscapeInfoProvider escaper)
public static int indexOf(@NotNull
@NotNull java.lang.String currentString,
char findWhat,
@NotNull
@NotNull MapSerializerUtil.EscapeInfoProvider2 escaper)
public static boolean isValidJavaIdentifier(@NotNull
@NotNull java.lang.String name)
@Deprecated
public static java.lang.String escapeStr(java.lang.String str,
MapSerializerUtil.EscapeInfoProvider p)
escapeStr(String, jetbrains.buildServer.messages.serviceMessages.MapSerializerUtil.EscapeInfoProvider2)str - initial stringp - escape info provider.@Nullable
@Contract(value="null,_->null; !null,_->!null")
public static @Nullable java.lang.String escapeStr(@Nullable
@Nullable java.lang.String str,
@NotNull
@NotNull MapSerializerUtil.EscapeInfoProvider2 p)
str - initial stringp - escape info provider.@Nullable
@Deprecated
public static @Nullable java.lang.String unescapeStr(@Nullable
@Nullable java.lang.String str,
@NotNull
@NotNull MapSerializerUtil.EscapeInfoProvider p)
unescapeStr(String, jetbrains.buildServer.messages.serviceMessages.MapSerializerUtil.EscapeInfoProvider2)str - initial stringp - escape info provider.@Nullable
public static @Nullable java.lang.String unescapeStr(@Nullable
@Nullable java.lang.String str,
@NotNull
@NotNull MapSerializerUtil.EscapeInfoProvider2 p)
str - initial stringp - escape info provider.