public class ValidationConfiguration extends java.lang.Object implements PersistentStateComponent<JpsValidationSerializer.ValidationConfigurationState>
Modifier and Type | Class and Description |
---|---|
static class |
ValidationConfiguration.ExcludedFromValidationConfiguration |
Constructor and Description |
---|
ValidationConfiguration(Project project) |
Modifier and Type | Method and Description |
---|---|
void |
deselectAllValidators() |
static ExcludesConfiguration |
getExcludedEntriesConfiguration(Project project) |
static ValidationConfiguration |
getInstance(Project project) |
JpsValidationSerializer.ValidationConfigurationState |
getState() |
boolean |
isSelected(Compiler validator) |
boolean |
isSelected(java.lang.String validatorDescription) |
boolean |
isValidateOnBuild() |
void |
loadState(JpsValidationSerializer.ValidationConfigurationState state)
This method is called when new component state is loaded.
|
void |
setSelected(Compiler validator,
boolean selected) |
void |
setSelected(java.lang.String validatorDescription,
boolean selected) |
void |
setValidateOnBuild(boolean value) |
static boolean |
shouldValidate(Compiler validator,
Project project) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public ValidationConfiguration(Project project)
public boolean isSelected(Compiler validator)
public boolean isSelected(java.lang.String validatorDescription)
public boolean isValidateOnBuild()
public void setValidateOnBuild(boolean value)
public void setSelected(Compiler validator, boolean selected)
public void deselectAllValidators()
public void setSelected(java.lang.String validatorDescription, boolean selected)
public static ValidationConfiguration getInstance(Project project)
public static ExcludesConfiguration getExcludedEntriesConfiguration(Project project)
public JpsValidationSerializer.ValidationConfigurationState getState()
getState
in interface PersistentStateComponent<JpsValidationSerializer.ValidationConfigurationState>
null
value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer
public void loadState(JpsValidationSerializer.ValidationConfigurationState state)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<JpsValidationSerializer.ValidationConfigurationState>
state
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)