Enum Class FramingOption
- All Implemented Interfaces:
Serializable
,Comparable<FramingOption>
,Constable
An enumeration of the supported methods for presenting the authentication challenge UI
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
AJsonSerializer
andJsonDeserializer
implementation for serializing and de-serializingFramingOption
objects to / from JSON using GSON APIs.Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic FramingOption
fromJsonTree
(com.inductiveautomation.ignition.common.gson.JsonElement jsonElement) Attempts to parse aFramingOption
from aJsonElement
static Optional<FramingOption>
com.inductiveautomation.ignition.common.gson.JsonElement
static FramingOption
Returns the enum constant of this class with the specified name.static FramingOption[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SELF
Open the authentication UI using the current tab / window -
NEW
Open the authentication UI in a new tab / window -
EMBEDDED
Open the authentication UI within an embedded iframe
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
parse
- Parameters:
str
- a string to parse into aFramingOption
- Returns:
- an
Optional
containing theFramingOption
parsed from the provided string, or an empty Optional if the string is null or if the string could not be parsed into one of the FramingOptions
-
fromJsonTree
public static FramingOption fromJsonTree(com.inductiveautomation.ignition.common.gson.JsonElement jsonElement) Attempts to parse aFramingOption
from aJsonElement
- Parameters:
jsonElement
- theJsonElement
to parse- Returns:
- the
FramingOption
parsed from the providedJsonElement
- Throws:
com.inductiveautomation.ignition.common.gson.JsonParseException
- if aFramingOption
cannot be parsed from the providedJsonElement
- See Also:
-
toJsonTree
public com.inductiveautomation.ignition.common.gson.JsonElement toJsonTree()- Returns:
- this
FramingOption
as aJsonElement
-