|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface ISVNConfig.Category
Interface for reading and modifying configuration
categories. Returned by ISVNConfig.config()
and
ISVNConfig.servers()
.
Method Summary | |
---|---|
void |
enumerate(String section,
ISVNConfig.Enumerator handler)
Call handler once for each option in the
configuration category. |
boolean |
get(String section,
String option,
boolean defaultValue)
Returns the boolean value of a configuration option. |
long |
get(String section,
String option,
long defaultValue)
Returns the long integer value of a configuration option. |
String |
get(String section,
String option,
String defaultValue)
Returns the value of a configuration option. |
Tristate |
get(String section,
String option,
String unknown,
Tristate defaultValue)
Returns the Tristate value of a configuration option. |
String |
getYesNoAsk(String section,
String option,
String defaultValue)
Check that the configuration option's value is true, false or "ask". |
Iterable<String> |
sections()
|
void |
set(String section,
String option,
boolean value)
Set the value of a configuration option to represent a boolean. |
void |
set(String section,
String option,
long value)
Set the value of a configuration option to represent a long integer. |
void |
set(String section,
String option,
String value)
Set the value of a configuration option. |
Method Detail |
---|
String get(String section, String option, String defaultValue)
section
- The section nameoption
- The option namedefaultValue
- Return this if the option was not found.boolean get(String section, String option, boolean defaultValue) throws ClientException
ClientException
- if the value cannot be parsed.get(String,String,String)
long get(String section, String option, long defaultValue) throws ClientException
ClientException
get(String,String,boolean)
Tristate get(String section, String option, String unknown, Tristate defaultValue) throws ClientException
Tristate
value of a configuration option.
unknown
- The value used for Tristate.Unknown
.
ClientException
get(String,String,boolean)
String getYesNoAsk(String section, String option, 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(String section, String option, String value)
section
- The section nameoption
- The option namevalue
- The value to set the option to; passing
null
will delete the option.void set(String section, String option, boolean value)
set(String,String,String)
void set(String section, String option, long value)
set(String,String,String)
Iterable<String> sections()
void enumerate(String section, ISVNConfig.Enumerator handler)
handler
once for each option in the
configuration category.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |