public static enum Audience.AudienceInfo extends java.lang.Enum<Audience.AudienceInfo>
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
name
The name of the audience as it appears in the menu
items and so on
|
java.lang.String |
shortName
The short name used for example in the command line.
|
| Modifier and Type | Method and Description |
|---|---|
static Audience.AudienceInfo |
fromShortName(java.lang.String name)
Return the audience corresponding to the passed short name.
|
Audience |
getAudience() |
static java.lang.String[] |
getNames() |
static java.lang.String[] |
getShortNames()
Return the names of the audiences that can be used
as command line params or as java proprties.
|
static Audience.AudienceInfo[] |
getTypes() |
java.lang.String |
toString() |
static Audience.AudienceInfo |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Audience.AudienceInfo[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Audience.AudienceInfo ENGINEER
public static final Audience.AudienceInfo OPERATOR
public static final Audience.AudienceInfo SCILOG
public final java.lang.String name
public final java.lang.String shortName
fromShortName(String)public static Audience.AudienceInfo[] values()
for (Audience.AudienceInfo c : Audience.AudienceInfo.values()) System.out.println(c);
public static Audience.AudienceInfo 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 Audience getAudience()
public java.lang.String toString()
toString in class java.lang.Enum<Audience.AudienceInfo>public static Audience.AudienceInfo[] getTypes()
public static java.lang.String[] getNames()
public static java.lang.String[] getShortNames()
public static Audience.AudienceInfo fromShortName(java.lang.String name)
This method can be useful when the user write the name of the audience for example as a parameter in the command line or in a java property.
The comparison between the passed string and the short name of the audience is case insensitive.
name - The short name of the audiencenull if an audience with that short
name does not existshortName