Package net.solarnetwork.domain.datum
Class DatumSamplePropertyConfig<V>
java.lang.Object
net.solarnetwork.domain.datum.DatumSamplePropertyConfig<V>
- Type Parameters:
V- the configuration type
- Direct Known Subclasses:
NumberDatumSamplePropertyConfig
Join some sort of configuration with a sample property key and type.
- Since:
- 1.42
- Version:
- 2.0
- Author:
- matt
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.DatumSamplePropertyConfig(String propertyKey, DatumSamplesType propertyType, V config) Construct with values. -
Method Summary
Modifier and TypeMethodDescriptionGet the configuration object.Get the sample property key.Get the sample property type.Get the property type key.voidSet the configuration object.voidsetPropertyKey(String propertyKey) Set the sample property key.voidsetPropertyType(DatumSamplesType propertyType) Set the sample property type.voidsetPropertyTypeKey(String key) Set the property type via a key value.toString()
-
Constructor Details
-
DatumSamplePropertyConfig
public DatumSamplePropertyConfig()Default constructor. -
DatumSamplePropertyConfig
Construct with values.- Parameters:
propertyKey- the sample property key to usepropertyType- the sample property type to useconfig- the configuration to use
-
-
Method Details
-
getPropertyKey
Get the sample property key.This value represents a key in a
DatumSamples.getSampleData(DatumSamplesType)map.- Returns:
- the sample property key
-
setPropertyKey
Set the sample property key.This value represents a key in a
DatumSamples.getSampleData(DatumSamplesType)map.- Parameters:
propertyKey- the sample property key
-
getPropertyType
Get the sample property type.This value represents the type to use in a
DatumSamples.getSampleData(DatumSamplesType)map.- Returns:
- the sample property type
-
setPropertyType
Set the sample property type.This value represents the type to use in a
DatumSamples.getSampleData(DatumSamplesType)map.- Parameters:
propertyType- the property type
-
getPropertyTypeKey
Get the property type key.This returns the configured
getPropertyType()DatumSamplesType.toKey()value as a string.- Returns:
- the property type key
-
setPropertyTypeKey
Set the property type via a key value.This uses the first character of
keyas aDatumSamplesTypekey value to callsetPropertyType(DatumSamplesType).- Parameters:
key- the datum property type key to set
-
getConfig
Get the configuration object.- Returns:
- the configuration to associate with the sample property key and type
-
setConfig
Set the configuration object.- Parameters:
config- the configuration to associate with the sample property key and type
-
toString
-