- All Superinterfaces:
Describable
Platforms
- Version:
- $Id: $Id
- Author:
- Robert Savage (http://www.savagehomeautomation.com)
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionall()all.Get all platforms of a specified io class/interface.<T extends Platform>
TdefaultPlatform.default Descriptordescribe()describe.default booleanbooleanexists.default <T extends Platform>
booleanexists.default <T extends Platform>
Tget.get.default <T extends Platform>
Tget.getAll()getAll.getAll.default <T extends Platform>
TgetDefault.default booleanhasDefault.
-
Method Details
-
all
all.
- Returns:
- a
Mapobject.
-
exists
exists.
- Parameters:
platformId- aStringobject.- Returns:
- a boolean.
-
get
get.
- Parameters:
platformId- aStringobject.- Returns:
- a
Platformobject. - Throws:
PlatformNotFoundException- if any.
-
defaultPlatform
defaultPlatform.
- Type Parameters:
T- a T object.- Returns:
- a T object.
-
exists
default <T extends Platform> boolean exists(String platformId, Class<T> platformClass) throws PlatformNotFoundException exists.
- Type Parameters:
T- a T object.- Parameters:
platformId- aStringobject.platformClass- aClassobject.- Returns:
- a boolean.
- Throws:
PlatformNotFoundException- if any.
-
hasDefault
default boolean hasDefault()hasDefault.
- Returns:
- a boolean.
-
getDefault
getDefault.
- Type Parameters:
T- a T object.- Returns:
- a T object.
-
get
default <T extends Platform> T get(String platformId, Class<T> platformClass) throws PlatformNotFoundException, PlatformTypeException get.
- Type Parameters:
T- a T object.- Parameters:
platformId- aStringobject.platformClass- aClassobject.- Returns:
- a T object.
- Throws:
PlatformNotFoundException- if any.PlatformTypeException- if any.
-
exists
- Throws:
PlatformNotFoundException
-
get
get.
- Type Parameters:
T- a T object.- Parameters:
platformClass- aClassobject.- Returns:
- a T object.
- Throws:
PlatformNotFoundException- if any.
-
all
default <T extends Platform> Map<String,T> all(Class<T> platformClass) throws PlatformNotFoundException Get all platforms of a specified io class/interface.- Type Parameters:
T- platforms objects extending thePlatforminterface- Parameters:
platformClass- aClassobject.- Returns:
- a
Mapobject. - Throws:
PlatformNotFoundException- if any.
-
getAll
getAll.
- Returns:
- a
Mapobject.
-
getAll
default <T extends Platform> Map<String,T> getAll(Class<T> platformClass) throws PlatformNotFoundException getAll.
- Type Parameters:
T- a T object.- Parameters:
platformClass- aClassobject.- Returns:
- a
Mapobject. - Throws:
PlatformNotFoundException- if any.
-
describe
describe.
- Specified by:
describein interfaceDescribable- Returns:
- a
Descriptorobject.
-