Created
January 22, 2013 14:00
-
-
Save heiko-braun/4594850 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"transaction-isolation" => { | |
"type" => STRING, | |
"description" => "Set the java.sql.Connection transaction isolation level. Valid values are: TRANSACTION_READ_UNCOMMITTED, TRANSACTION_READ_COMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE and TRANSACTION_NONE", | |
"expressions-allowed" => true, | |
"nillable" => true, | |
"min-length" => 1L, | |
"max-length" => 2147483647L, | |
"access-type" => "read-write", | |
"storage" => "configuration", | |
"restart-required" => "no-services" | |
}, |
Yes. Typically that attribute is backed by an enum, and the definition of the attribute (AttributeDefinition) takes a "validator" which for enums would be an EnumValidator. If the definition uses that the "allowed" field in the description gets set automatically
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do we have a formal way of declarding allowed values: TRANSACTION_READ_UNCOMMITTED, TRANSACTION_READ_COMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE and TRANSACTION_NONE