public abstract class PropertiesComponent extends SimpleModificationTracker
EVER_CHANGED, NEVER_CHANGED
Constructor and Description |
---|
PropertiesComponent() |
Modifier and Type | Method and Description |
---|---|
boolean |
getBoolean(java.lang.String name) |
boolean |
getBoolean(java.lang.String name,
boolean defaultValue) |
float |
getFloat(java.lang.String name,
float defaultValue) |
static PropertiesComponent |
getInstance() |
static PropertiesComponent |
getInstance(Project project) |
int |
getInt(java.lang.String name,
int defaultValue) |
long |
getLong(java.lang.String name,
long defaultValue) |
java.lang.String |
getOrInit(java.lang.String name,
java.lang.String defaultValue)
Deprecated.
|
int |
getOrInitInt(java.lang.String name,
int defaultValue)
Deprecated.
Use
getInt(String, int)
Init was never performed and in any case is not recommended. |
long |
getOrInitLong(java.lang.String name,
long defaultValue)
Deprecated.
Use
#getLong(String, int)
Init was never performed and in any case is not recommended. |
abstract java.lang.String |
getValue(java.lang.String name) |
java.lang.String |
getValue(java.lang.String name,
java.lang.String defaultValue) |
abstract java.lang.String [] |
getValues(java.lang.String name) |
boolean |
isTrueValue(java.lang.String name) |
abstract boolean |
isValueSet(java.lang.String name) |
boolean |
loadFields(java.lang.Object object) |
boolean |
saveFields(java.lang.Object object) |
void |
setValue(java.lang.String name,
boolean value)
Set value or unset if equals to false
|
abstract void |
setValue(java.lang.String name,
boolean value,
boolean defaultValue)
Set value or unset if equals to default
|
abstract void |
setValue(java.lang.String name,
float value,
float defaultValue)
Set value or unset if equals to default value
|
abstract void |
setValue(java.lang.String name,
int value,
int defaultValue)
Set value or unset if equals to default value
|
abstract void |
setValue(java.lang.String name,
java.lang.String value)
Consider to use
setValue(String, String, String) to avoid write defaults. |
abstract void |
setValue(java.lang.String name,
java.lang.String value,
java.lang.String defaultValue)
Set value or unset if equals to default value
|
abstract void |
setValues(java.lang.String name,
java.lang.String[] values) |
abstract void |
unsetValue(java.lang.String name) |
getModificationCount, incModificationCount
public abstract void unsetValue(java.lang.String name)
public abstract boolean isValueSet(java.lang.String name)
public abstract java.lang.String getValue(java.lang.String name)
public abstract void setValue(java.lang.String name, java.lang.String value)
setValue(String, String, String)
to avoid write defaults.public abstract void setValue(java.lang.String name, java.lang.String value, java.lang.String defaultValue)
public abstract void setValue(java.lang.String name, float value, float defaultValue)
public abstract void setValue(java.lang.String name, int value, int defaultValue)
public final void setValue(java.lang.String name, boolean value)
public abstract void setValue(java.lang.String name, boolean value, boolean defaultValue)
public abstract java.lang.String [] getValues(java.lang.String name)
public abstract void setValues(java.lang.String name, java.lang.String[] values)
public static PropertiesComponent getInstance(Project project)
public static PropertiesComponent getInstance()
public final boolean isTrueValue(java.lang.String name)
public final boolean getBoolean(java.lang.String name, boolean defaultValue)
public final boolean getBoolean(java.lang.String name)
public java.lang.String getValue(java.lang.String name, java.lang.String defaultValue)
@Deprecated public final int getOrInitInt(java.lang.String name, int defaultValue)
getInt(String, int)
Init was never performed and in any case is not recommended.public int getInt(java.lang.String name, int defaultValue)
public long getLong(java.lang.String name, long defaultValue)
@Deprecated public final long getOrInitLong(java.lang.String name, long defaultValue)
#getLong(String, int)
Init was never performed and in any case is not recommended.@Deprecated public java.lang.String getOrInit(java.lang.String name, java.lang.String defaultValue)
getValue(String, String)
public final boolean saveFields(java.lang.Object object)
public final boolean loadFields(java.lang.Object object)
public float getFloat(java.lang.String name, float defaultValue)