Java org.eclipse.jgit.storage.file FileBasedConfig fields, constructors, methods, implement or subclass

Example usage for Java org.eclipse.jgit.storage.file FileBasedConfig fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.eclipse.jgit.storage.file FileBasedConfig.

The text is from its open source code.

Subclass

org.eclipse.jgit.storage.file.FileBasedConfig has subclasses.
Click this link to see all its subclasses.

Constructor

FileBasedConfig(File cfgLocation, FS fs)
Create a configuration with no default fallback.
FileBasedConfig(Config base, File cfgLocation, FS fs)
The constructor

Method

voidclear()
booleangetBoolean(final String section, String subsection, 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.
FilegetFile()
Get location of the configuration file on disk
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.
SetgetNames(String section)
Get the list of names defined for this section
SetgetNames(String section, String subsection)
Get the list of names defined for this subsection
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
booleanisOutdated()
Whether the currently loaded configuration file is outdated
voidload()

Load the configuration as a Git text style configuration file.

voidsave()

Save the configuration as a Git text style configuration file.

voidsetBoolean(final String section, final String subsection, final String name, final boolean 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.
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.