public enum CampaignType extends Enum<CampaignType>
| Enum Constant and Description |
|---|
AB |
LANDING_PAGE |
| Modifier and Type | Method and Description |
|---|---|
static CampaignType |
fromString(String type)
Creates an object of this type based on the string representation of a campaign's type
|
String |
getType()
Retrieve a string representation of this campaign type
|
String |
getTypeLabel() |
static CampaignType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CampaignType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CampaignType AB
public static final CampaignType LANDING_PAGE
public static CampaignType[] values()
for (CampaignType c : CampaignType.values()) System.out.println(c);
public static CampaignType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getType()
Stringpublic String getTypeLabel()
String representing the label of the campaign typepublic static CampaignType fromString(String type)
type - the type of the campaign, in String format - "ab" or "landingPage"CampaignType object or null if the campaign type is not definedCopyright © 2010 - 2020 Adobe. All Rights Reserved