Class BasicProperty<T>
java.lang.Object
com.inductiveautomation.ignition.common.config.BasicProperty<T>
- All Implemented Interfaces:
Property<T>
,Serializable
- Direct Known Subclasses:
BasicDescriptiveProperty
,Parameter
,RuntimeParameter
A basic implementation of
Property
. Somewhat special in that hashCode and equals are implemented in order to
match up with other Properties with the same name.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBean compatibility...BasicProperty
(Property<T> copy) BasicProperty
(String name, Class<? extends T> cls) BasicProperty
(String name, Class<? extends T> cls, T defaultValue) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getClazz()
The default value for new instances of this property, or null if not applicable.final String
getName()
Final because if this was overridden then the hashcode calculated in the ctor would be wronggetType()
The data type for this property.int
hashCode()
We override hashCode and equals in a special way to only look at a name.static BasicProperty<Object>
Returns a new basic property with the given name, object type, and null value.void
Chaining versionvoid
setDefaultValue
(Object defaultValue) setDefaultValue_
(Object defaultValue) Chaining versionvoid
Chaining versiontoString()
-
Constructor Details
-
BasicProperty
public BasicProperty()Bean compatibility... -
BasicProperty
-
BasicProperty
-
BasicProperty
-
-
Method Details
-
of
Returns a new basic property with the given name, object type, and null value. Mainly used for looking up other defined properties. -
getDefaultValue
Description copied from interface:Property
The default value for new instances of this property, or null if not applicable.- Specified by:
getDefaultValue
in interfaceProperty<T>
-
getName
Final because if this was overridden then the hashcode calculated in the ctor would be wrong -
getType
Description copied from interface:Property
The data type for this property. -
hashCode
public int hashCode()We override hashCode and equals in a special way to only look at a name. So, different implementations of a particular property will be considered equivilent. -
equals
-
toString
-
getClazz
-
setClazz
-
setName
-
setDefaultValue
-
setClazz_
Chaining version -
setName_
Chaining version -
setDefaultValue_
Chaining version
-