public interface Setting<T>
View
s and
handled automatically by Solibri.
It is not normal to implement this interface. Usually developers should extend the abstract classes that implement
this.Modifier and Type | Method and Description |
---|---|
T |
getDefaultValue()
Defines the default value that the setting has when it is first introduced to the software.
|
default String |
getDescription()
The internationalized description of the setting.
|
default String |
getName()
The internationalized name of the setting.
|
String |
getUniqueId()
The unique ID of the setting.
|
T |
getValue()
Returns the current value of the setting.
|
Optional<String> |
invalidReason(T value)
This method is implemented to define valid values for this setting.
|
void |
setValue(T value)
Sets the value of the setting.
|
String getUniqueId()
default String getName()
default String getDescription()
T getValue()
T getDefaultValue()
void setValue(T value)
value
- the value to be setOptional<String> invalidReason(T value)
value
- the value to be checked for validityCopyright © 2020 Solibri, Inc.. All rights reserved.