public static interface ISVNConfig.Category
ISVNConfig.config()
and
ISVNConfig.servers()
.Modifier and Type | Method and Description |
---|---|
void |
enumerate(java.lang.String section,
ISVNConfig.Enumerator handler)
Call
handler once for each option in the
configuration category. |
boolean |
get(java.lang.String section,
java.lang.String option,
boolean defaultValue)
Returns the boolean value of a configuration option.
|
long |
get(java.lang.String section,
java.lang.String option,
long defaultValue)
Returns the long integer value of a configuration option.
|
java.lang.String |
get(java.lang.String section,
java.lang.String option,
java.lang.String defaultValue)
Returns the value of a configuration option.
|
Tristate |
get(java.lang.String section,
java.lang.String option,
java.lang.String unknown,
Tristate defaultValue)
Returns the
Tristate value of a configuration option. |
java.lang.String |
getYesNoAsk(java.lang.String section,
java.lang.String option,
java.lang.String defaultValue)
Check that the configuration option's value is true, false
or "ask".
|
java.lang.Iterable<java.lang.String> |
sections() |
void |
set(java.lang.String section,
java.lang.String option,
boolean value)
Set the value of a configuration option to represent a boolean.
|
void |
set(java.lang.String section,
java.lang.String option,
long value)
Set the value of a configuration option to represent a long integer.
|
void |
set(java.lang.String section,
java.lang.String option,
java.lang.String value)
Set the value of a configuration option.
|
java.lang.String get(java.lang.String section, java.lang.String option, java.lang.String defaultValue)
section
- The section nameoption
- The option namedefaultValue
- Return this if the option was not found.boolean get(java.lang.String section, java.lang.String option, boolean defaultValue) throws ClientException
ClientException
- if the value cannot be parsed.get(String,String,String)
long get(java.lang.String section, java.lang.String option, long defaultValue) throws ClientException
ClientException
get(String,String,boolean)
Tristate get(java.lang.String section, java.lang.String option, java.lang.String unknown, Tristate defaultValue) throws ClientException
Tristate
value of a configuration option.unknown
- The value used for Tristate.Unknown
.ClientException
get(String,String,boolean)
java.lang.String getYesNoAsk(java.lang.String section, java.lang.String option, java.lang.String defaultValue) throws ClientException
get(String,String,boolean)
. If the
option is not found, the default value will be parsed
instead.ISVNConfig.TRUE
, ISVNConfig.FALSE
or ISVNConfig.ASK
ClientException
- if the either the value or the
default cannot be parsed.void set(java.lang.String section, java.lang.String option, java.lang.String value)
section
- The section nameoption
- The option namevalue
- The value to set the option to; passing
null
will delete the option.void set(java.lang.String section, java.lang.String option, boolean value)
set(String,String,String)
void set(java.lang.String section, java.lang.String option, long value)
set(String,String,String)
java.lang.Iterable<java.lang.String> sections()
void enumerate(java.lang.String section, ISVNConfig.Enumerator handler)
handler
once for each option in the
configuration category.