| Enum Constant and Description |
|---|
CM |
DA |
DV |
NO_ANTENNA |
PM |
| Modifier and Type | Field and Description |
|---|---|
java.util.regex.Pattern |
pattern
The pattern of an antenna to match in a message
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
matchAndReplaceAntenna(java.lang.StringBuilder messageToMatch,
java.lang.String placeHolder)
Check if the message contains a reference to an antenna and replace
the antenna name with a place holder.
|
static Antennae |
matchAntenna(java.lang.String messageToMatch)
Check if the message contains a reference to an antenna
|
static Antennae |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Antennae[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Antennae NO_ANTENNA
public static final Antennae DV
public static final Antennae DA
public static final Antennae PM
public static final Antennae CM
public final java.util.regex.Pattern pattern
public static Antennae[] values()
for (Antennae c : Antennae.values()) System.out.println(c);
public static Antennae valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static Antennae matchAntenna(java.lang.String messageToMatch)
messageToMatch - The message to check against an antenna namepublic static java.lang.String matchAndReplaceAntenna(java.lang.StringBuilder messageToMatch,
java.lang.String placeHolder)
messageToMatch - The message to check against an antenna nameplaceHolder - The place holder for the matched patternnull if the string does not match with any antenna name