2023-09-17 22:13:42 +03:00
|
|
|
package GlobalData.EnvironmentValue;
|
2023-09-29 21:46:08 +03:00
|
|
|
import Common.Constants.Constants;
|
2023-09-17 22:13:42 +03:00
|
|
|
import Common.Current;
|
|
|
|
|
import Common.Database.iDBObject;
|
|
|
|
|
import Common.Utils.Utils;
|
|
|
|
|
public class EnvironmentValue extends iDBObject {
|
|
|
|
|
public String name = "";
|
|
|
|
|
public String value = "";
|
2023-09-29 21:46:08 +03:00
|
|
|
public int machine_id = Constants.Nan; //для удаления машин
|
|
|
|
|
public int run_configuration_id = Constants.Nan;
|
2023-09-17 22:13:42 +03:00
|
|
|
@Override
|
|
|
|
|
public boolean isVisible() {
|
|
|
|
|
return Current.HasRunConfiguration() && (run_configuration_id == Current.getRunConfiguration().id);
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
public String toString() {
|
|
|
|
|
return name + "=" + Utils.DQuotes(value);
|
|
|
|
|
}
|
|
|
|
|
}
|