public enum InjectableTag extends java.lang.Enum<InjectableTag> implements Tag
Enum Constant and Description |
---|
HOSTNAME
The current hostname.
|
IP
The ip for localhost.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getKey()
Returns the key corresponding to this tag.
|
java.lang.String |
getValue()
Returns the value corresponding to this tag.
|
java.lang.String |
tagString()
Returns the string representation of this tag.
|
static InjectableTag |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static InjectableTag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InjectableTag HOSTNAME
public static final InjectableTag IP
public static InjectableTag[] values()
for (InjectableTag c : InjectableTag.values()) System.out.println(c);
public static InjectableTag 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 java.lang.String getKey()
public java.lang.String getValue()