Class BasicLocationLookupSettingSpecifier
java.lang.Object
net.solarnetwork.settings.support.BaseSettingSpecifier
net.solarnetwork.settings.support.BaseKeyedSettingSpecifier<Long>
net.solarnetwork.node.settings.support.BasicLocationLookupSettingSpecifier
- All Implemented Interfaces:
DatumLocation,LocationLookupSettingSpecifier,net.solarnetwork.settings.KeyedSettingSpecifier<Long>,net.solarnetwork.settings.MappableSpecifier,net.solarnetwork.settings.SettingSpecifier
public class BasicLocationLookupSettingSpecifier
extends net.solarnetwork.settings.support.BaseKeyedSettingSpecifier<Long>
implements LocationLookupSettingSpecifier
Basic implementation of
LocationLookupSettingSpecifier.- Version:
- 2.0
- Author:
- matt
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.solarnetwork.settings.MappableSpecifier
net.solarnetwork.settings.MappableSpecifier.Mapper -
Field Summary
Fields inherited from interface net.solarnetwork.node.domain.datum.DatumLocation
DAY_TYPE, PRICE_TYPE, WEATHER_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionBasicLocationLookupSettingSpecifier(String key, String locationType, DatumLocation location) Construct with a key and default value. -
Method Summary
Modifier and TypeMethodDescriptionGet the location this setting is for.Get a unique ID of this location.Get a name for this location.Get the location type or tag, e.g.net.solarnetwork.domain.datum.GeneralDatumMetadataGet metadata about the location.Get a unique ID of the source of this location.Get the name of the source of this location.net.solarnetwork.settings.SettingSpecifiermappedWithMapper(net.solarnetwork.settings.MappableSpecifier.Mapper mapper) net.solarnetwork.settings.SettingSpecifiermappedWithPlaceholer(String template) Methods inherited from class net.solarnetwork.settings.support.BaseKeyedSettingSpecifier
getDefaultValue, getDescriptionArguments, getKey, isTransient, mappedTo, setDefaultValue, setDescriptionArguments, setKey, setTransient, toStringMethods inherited from class net.solarnetwork.settings.support.BaseSettingSpecifier
getTitle, getType, setTitleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.solarnetwork.settings.KeyedSettingSpecifier
getDefaultValue, getDescriptionArguments, getKey, isTransientMethods inherited from interface net.solarnetwork.settings.MappableSpecifier
mappedToMethods inherited from interface net.solarnetwork.settings.SettingSpecifier
getTitle, getType
-
Constructor Details
-
BasicLocationLookupSettingSpecifier
Construct with a key and default value.- Parameters:
key- the keylocationType- the location typelocation- the location
-
-
Method Details
-
mappedWithPlaceholer
- Specified by:
mappedWithPlaceholerin interfacenet.solarnetwork.settings.MappableSpecifier
-
mappedWithMapper
public net.solarnetwork.settings.SettingSpecifier mappedWithMapper(net.solarnetwork.settings.MappableSpecifier.Mapper mapper) - Specified by:
mappedWithMapperin interfacenet.solarnetwork.settings.MappableSpecifier
-
getLocation
Description copied from interface:LocationLookupSettingSpecifierGet the location this setting is for.- Specified by:
getLocationin interfaceLocationLookupSettingSpecifier- Returns:
- a Location, or null if none available
-
getLocationId
Description copied from interface:DatumLocationGet a unique ID of this location.- Specified by:
getLocationIdin interfaceDatumLocation- Returns:
- the location ID
-
getLocationName
Description copied from interface:DatumLocationGet a name for this location.- Specified by:
getLocationNamein interfaceDatumLocation- Returns:
- the location name
-
getSourceId
Description copied from interface:DatumLocationGet a unique ID of the source of this location.- Specified by:
getSourceIdin interfaceDatumLocation- Returns:
- the source ID
-
getSourceName
Description copied from interface:DatumLocationGet the name of the source of this location.- Specified by:
getSourceNamein interfaceDatumLocation- Returns:
- the source name
-
getMetadata
public net.solarnetwork.domain.datum.GeneralDatumMetadata getMetadata()Description copied from interface:DatumLocationGet metadata about the location.- Specified by:
getMetadatain interfaceDatumLocation- Returns:
- metadata
-
getLocationTypeKey
Description copied from interface:LocationLookupSettingSpecifierGet the location type or tag, e.g. "weather", "price", etc.- Specified by:
getLocationTypeKeyin interfaceLocationLookupSettingSpecifier- Returns:
- the location type
-