Package org.ka2ddo.yaac.pluginapi
Class Provider.PortEntry
java.lang.Object
org.ka2ddo.yaac.pluginapi.Provider.PortEntry
- All Implemented Interfaces:
Map.Entry<String,
Class<? extends PortConnector>>
- Enclosing class:
- Provider
public static final class Provider.PortEntry
extends Object
implements Map.Entry<String,Class<? extends PortConnector>>
This class describes the name and implementing Class of an interface port driver.
- Author:
- Andrew Pavlin, KA2DDO
-
Constructor Summary
ConstructorDescriptionPortEntry
(String typeName, Class<? extends PortConnector> pcClazz) Create a PortEntry instance. -
Method Summary
Modifier and TypeMethodDescriptiongetKey()
Get the configuration type name for this PortEntry type.Class<? extends PortConnector>
getValue()
Get the Class that implements the driver code for this PortEntry.Class<? extends PortConnector>
setValue
(Class<? extends PortConnector> value) DO NOT CALL; disabled for this class.
-
Constructor Details
-
PortEntry
Create a PortEntry instance.- Parameters:
typeName
- String internal configuration name for this port type (should be PortConnector subclass's TYPE_NAME String constant)pcClazz
- Class object implementing the driver code for this port type
-
-
Method Details
-
getKey
Get the configuration type name for this PortEntry type.- Specified by:
getKey
in interfaceMap.Entry<String,
Class<? extends PortConnector>> - Returns:
- String type name
-
getValue
Get the Class that implements the driver code for this PortEntry.- Specified by:
getValue
in interfaceMap.Entry<String,
Class<? extends PortConnector>> - Returns:
- Class with a no-args constructor
-
setValue
DO NOT CALL; disabled for this class.- Specified by:
setValue
in interfaceMap.Entry<String,
Class<? extends PortConnector>> - Parameters:
value
- N/A- Returns:
- nothing
- Throws:
UnsupportedOperationException
- because this method is not allowed on this subclass
-