abstract class Key[T] extends AnyRef
A configuration key
- Alphabetic
- By Inheritance
- Key
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Key()
Abstract Value Members
-
abstract
def
asString(value: T): Seq[String]
Converts a value of this key to a sequence of strings
Converts a value of this key to a sequence of strings
Such a sequence can be printed in the console, and converted back to a T with fromString.
-
abstract
def
description: String
A short description of a particular key's purpose and syntax for its values.
-
abstract
def
fromString(values: Seq[String]): Either[MalformedValue, T]
Reads a value of this key from a sequence of string
-
abstract
def
name: String
Key name, such as "b" in "foo.a.b"
-
abstract
def
parse(json: Array[Byte]): Either[EntryError, T]
Try to parse a value of this key
-
abstract
def
prefix: Seq[String]
Key prefix, such as "foo.a" in "foo.a.b"
-
abstract
def
specificationLevel: SpecificationLevel
The SpecificationLevel of the key.
The SpecificationLevel of the key. SpecificationLevel.RESTRICTED && SpecificationLevel.EXPERIMENTAL keys are only available in
powermode. -
abstract
def
write(value: T): Array[Byte]
Converts a value of this key to JSON
Converts a value of this key to JSON
- returns
UTF-8 encoded JSON
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
fullName: String
The fully qualified name of this key
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hidden: Boolean
A flag indicating whether the key should by default be hidden in help outputs or not.
- def isExperimental: Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPasswordOption: Boolean
Whether this key corresponds to a password (see Key.PasswordEntry)
- def isRestricted: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()