public class SenderPanelUtils
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SenderPanelUtils.AlarmDescriptorType
The type (descriptor) set while sending the alarm to the
alarm service.
|
static class |
SenderPanelUtils.Triplet
A triplet composed of FF,FM, FC
|
| Modifier and Type | Field and Description |
|---|---|
static java.util.regex.Pattern |
alarmRegExp
A alarm is a tripled optionally followed by a string of properties.
|
static java.util.regex.Pattern |
propertiesRegExp
The list of properties has the format
key1=val1, key2=val2... |
static java.util.regex.Pattern |
propertyRegExp
A property has the format
key=val |
static java.util.regex.Pattern |
tripletRegExp
The regular expression representing a triplet of the form
FF,FM,FC including whitespaces. |
| Constructor and Description |
|---|
SenderPanelUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isAnAlarm(java.lang.String str)
Check if the passed string is a alarm
|
static boolean |
isAStringOfProperties(java.lang.String str)
Check if the passed string is a set of properties
|
static boolean |
isATriplet(java.lang.String str)
Check if the passed string is a triplet
|
static java.util.Properties |
propertiesFromString(java.lang.String props)
Build the user properties from the passed string of properties
|
static SenderPanelUtils.Triplet |
tripletFromString(java.lang.String triplet)
Build the triplet from the passed string
|
public static final java.util.regex.Pattern tripletRegExp
FF,FM,FC including whitespaces.public static final java.util.regex.Pattern propertyRegExp
key=valpublic static final java.util.regex.Pattern propertiesRegExp
key1=val1, key2=val2...public static final java.util.regex.Pattern alarmRegExp
public static SenderPanelUtils.Triplet tripletFromString(java.lang.String triplet)
triplet - The not NullPointerException not empty triplet in the form FF,FM,FCjava.lang.Exception - in case of syntax error in the passed stringpublic static java.util.Properties propertiesFromString(java.lang.String props)
throws java.lang.Exception
null if the passed string is empty/nulljava.lang.Exception - In case of syntax error in the passed stringpublic static boolean isATriplet(java.lang.String str)
str - The string to checktrue if the string contains a tripletpublic static boolean isAnAlarm(java.lang.String str)
str - The string to checktrue if the string contains a alarmpublic static boolean isAStringOfProperties(java.lang.String str)
str - The string to checktrue if the string contains properties