Package de.xima.fc.prompt.mgmt.gui.model
Class PromptConnectionOptionValue
- java.lang.Object
-
- de.xima.fc.prompt.mgmt.gui.model.PromptConnectionOptionValue
-
- All Implemented Interfaces:
Serializable
public final class PromptConnectionOptionValue extends Object implements Serializable
Represents a prompt connection option that the user can select. Used by the prompt query UI, which requires the user to select a connection to use for executing the query.- Since:
- 8.5.0
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PromptConnectionOptionValueconnection(PromptObjectIdentifier connection)Creates a new connection option value that represents a specific connection.static PromptConnectionOptionValueconnection(PromptScope assignee, UUID connection)Creates a new connection option value that represents a specific connection.booleanequals(Object o)ObjectgetValue()PromptObjectIdentifiergetValueAsConnection()StringgetValueAsGroup()static PromptConnectionOptionValuegroup(String type)Creates a new group option value that groups connections of the given type.inthashCode()booleanisGroup()StringtoString()
-
-
-
Method Detail
-
getValue
public Object getValue()
-
getValueAsConnection
public PromptObjectIdentifier getValueAsConnection()
-
getValueAsGroup
public String getValueAsGroup()
-
isGroup
public boolean isGroup()
-
connection
public static PromptConnectionOptionValue connection(PromptScope assignee, UUID connection)
Creates a new connection option value that represents a specific connection.- Parameters:
assignee- The assignee of the connection.connection- The UUID of the connection.- Returns:
- The connection option value.
-
connection
public static PromptConnectionOptionValue connection(PromptObjectIdentifier connection)
Creates a new connection option value that represents a specific connection.- Parameters:
connection- The connection reference.- Returns:
- The connection option value.
-
group
public static PromptConnectionOptionValue group(String type)
Creates a new group option value that groups connections of the given type.- Parameters:
type- The group type.- Returns:
- The group option value.
-
-