Java org.eclipse.jgit.lib Config fields, constructors, methods, implement or subclass

Example usage for Java org.eclipse.jgit.lib Config fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.eclipse.jgit.lib Config.

The text is from its open source code.

Subclass

org.eclipse.jgit.lib.Config has subclasses.
Click this link to see all its subclasses.

Constructor

Config()
Create a configuration with no default fallback.
Config(Config defaultConfig)
Create an empty configuration with a fallback for missing keys.

Method

voidfromText(String text)
Clear this configuration and reset to the contents of the parsed string.
Tget(SectionParser parser)
Obtain a handle to a parsed set of configuration values.
booleangetBoolean(final String section, String subsection, final String name, final boolean defaultValue)
Get a boolean value from the git config
booleangetBoolean(final String section, final String name, final boolean defaultValue)
Get a boolean value from the git config
TgetEnum(final String section, final String subsection, final String name, final T defaultValue)
Parse an enumeration from the configuration.
intgetInt(final String section, final String name, final int defaultValue)
Obtain an integer value from the configuration.
intgetInt(final String section, String subsection, final String name, final int defaultValue)
Obtain an integer value from the configuration.
longgetLong(final String section, String subsection, final String name, final long defaultValue)
Obtain an integer value from the configuration.
longgetLong(String section, String name, long defaultValue)
Obtain an integer value from the configuration.
SetgetNames(String section, String subsection)
Get the list of names defined for this subsection
SetgetNames(String section, boolean recursive)
Get the list of names defined for this section
SetgetNames(String section)
Get the list of names defined for this section
SetgetSections()
Get the sections defined in this org.eclipse.jgit.lib.Config .
StringgetString(final String section, String subsection, final String name)
Get string value or null if not found.
String[]getStringList(final String section, String subsection, final String name)
Get a list of string values

If this instance was created with a base, the base's values are returned first (if any).

SetgetSubsections(String section)
Get set of all subsections of specified section within this configuration and its base configuration
longgetTimeUnit(String section, String subsection, String name, long defaultValue, TimeUnit wantUnit)
Parse a numerical time unit, such as "1 minute", from the configuration.
voidsetBoolean(final String section, final String subsection, final String name, final boolean value)
Add or modify a configuration value.
voidsetEnum(final String section, final String subsection, final String name, final T value)
Add or modify a configuration value.
voidsetInt(final String section, final String subsection, final String name, final int value)
Add or modify a configuration value.
voidsetLong(final String section, final String subsection, final String name, final long value)
Add or modify a configuration value.
voidsetString(final String section, final String subsection, final String name, final String value)
Add or modify a configuration value.
voidsetStringList(final String section, final String subsection, final String name, final List values)
Set a configuration value.
StringtoText()
Get this configuration, formatted as a Git style text file.
voidunset(final String section, final String subsection, final String name)
Remove a configuration value.
voidunsetSection(String section, String subsection)
Remove all configuration values under a single section.