Typos a/an (#13819)
This commit is contained in:
@@ -20,7 +20,7 @@ import org.openhab.binding.homematic.internal.model.HmDevice;
|
||||
import org.openhab.binding.homematic.internal.model.HmParamsetType;
|
||||
|
||||
/**
|
||||
* Parses a event received from a Homematic gateway.
|
||||
* Parses an event received from a Homematic gateway.
|
||||
*
|
||||
* @author Gerhard Riegler - Initial contribution
|
||||
*/
|
||||
|
||||
@@ -74,7 +74,7 @@ public class BinRpcNetworkService implements Runnable {
|
||||
}
|
||||
|
||||
/**
|
||||
* Listening for events and starts the callbackHandler if a event received.
|
||||
* Listening for events and starts the callbackHandler if an event received.
|
||||
*/
|
||||
@Override
|
||||
public void run() {
|
||||
|
||||
@@ -17,7 +17,7 @@ import java.util.List;
|
||||
import org.openhab.binding.homematic.internal.model.HmDatapointInfo;
|
||||
|
||||
/**
|
||||
* Methods called by the RpcServer when a event is received.
|
||||
* Methods called by the RpcServer when an event is received.
|
||||
*
|
||||
* @author Gerhard Riegler - Initial contribution
|
||||
*/
|
||||
|
||||
@@ -55,7 +55,7 @@ public interface VirtualDatapointHandler {
|
||||
public boolean canHandleEvent(HmDatapoint dp);
|
||||
|
||||
/**
|
||||
* Handles a event to extract data required for the virtual datapoint.
|
||||
* Handles an event to extract data required for the virtual datapoint.
|
||||
*/
|
||||
public void handleEvent(VirtualGateway gateway, HmDatapoint dp);
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ public class ConverterFactory {
|
||||
private static Map<String, TypeConverter<?>> converterCache = new HashMap<>();
|
||||
|
||||
/**
|
||||
* Returns the converter for a itemType.
|
||||
* Returns the converter for an itemType.
|
||||
*/
|
||||
public static TypeConverter<?> createConverter(String itemType) throws ConverterException {
|
||||
Class<? extends TypeConverter<?>> converterClass = null;
|
||||
|
||||
@@ -24,12 +24,12 @@ import org.openhab.core.types.Type;
|
||||
public interface TypeConverter<T extends State> {
|
||||
|
||||
/**
|
||||
* Converts a openHAB type to a Homematic value.
|
||||
* Converts an openHAB type to a Homematic value.
|
||||
*/
|
||||
public Object convertToBinding(Type type, HmDatapoint dp) throws ConverterException;
|
||||
|
||||
/**
|
||||
* Converts a Homematic value to a openHAB type.
|
||||
* Converts a Homematic value to an openHAB type.
|
||||
*/
|
||||
public T convertFromBinding(HmDatapoint dp) throws ConverterException;
|
||||
}
|
||||
|
||||
@@ -159,7 +159,7 @@ public abstract class AbstractTypeConverter<T extends State> implements TypeConv
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts a openHAB command to a Homematic value.
|
||||
* Converts an openHAB command to a Homematic value.
|
||||
*/
|
||||
protected Object commandToBinding(Command command, HmDatapoint dp) throws ConverterException {
|
||||
throw new ConverterException("Unsupported command " + command.getClass().getSimpleName() + " for "
|
||||
@@ -182,7 +182,7 @@ public abstract class AbstractTypeConverter<T extends State> implements TypeConv
|
||||
protected abstract boolean fromBindingValidation(HmDatapoint dp);
|
||||
|
||||
/**
|
||||
* Converts the datapoint value to a openHAB type.
|
||||
* Converts the datapoint value to an openHAB type.
|
||||
*/
|
||||
protected abstract T fromBinding(HmDatapoint dp) throws ConverterException;
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ import org.openhab.core.library.types.DecimalType;
|
||||
import org.openhab.core.types.Type;
|
||||
|
||||
/**
|
||||
* Converts between a Homematic datapoint value and a openHAB DecimalType.
|
||||
* Converts between a Homematic datapoint value and an openHAB DecimalType.
|
||||
*
|
||||
* @author Gerhard Riegler - Initial contribution
|
||||
*/
|
||||
|
||||
@@ -20,7 +20,7 @@ import org.openhab.core.library.types.OnOffType;
|
||||
import org.openhab.core.types.Type;
|
||||
|
||||
/**
|
||||
* Converts between a Homematic datapoint value and a openHAB OnOffType.
|
||||
* Converts between a Homematic datapoint value and an openHAB OnOffType.
|
||||
*
|
||||
* @author Gerhard Riegler - Initial contribution
|
||||
*/
|
||||
|
||||
@@ -20,7 +20,7 @@ import org.openhab.core.library.types.OpenClosedType;
|
||||
import org.openhab.core.types.Type;
|
||||
|
||||
/**
|
||||
* Converts between a Homematic datapoint value and a openHAB OpenClosedType.
|
||||
* Converts between a Homematic datapoint value and an openHAB OpenClosedType.
|
||||
*
|
||||
* @author Gerhard Riegler - Initial contribution
|
||||
*/
|
||||
|
||||
@@ -26,7 +26,7 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* Converts between a Homematic datapoint value and a openHAB PercentType.
|
||||
* Converts between a Homematic datapoint value and an openHAB PercentType.
|
||||
*
|
||||
* @author Gerhard Riegler - Initial contribution
|
||||
*/
|
||||
|
||||
@@ -19,7 +19,7 @@ import org.openhab.core.library.types.StringType;
|
||||
import org.openhab.core.types.Type;
|
||||
|
||||
/**
|
||||
* Converts between a Homematic datapoint value and a openHAB StringType.
|
||||
* Converts between a Homematic datapoint value and an openHAB StringType.
|
||||
*
|
||||
* @author Gerhard Riegler - Initial contribution
|
||||
*/
|
||||
|
||||
@@ -24,7 +24,7 @@ public class MiscUtils {
|
||||
private static final Logger logger = LoggerFactory.getLogger(MiscUtils.class);
|
||||
|
||||
/**
|
||||
* Replaces invalid characters of the text to fit into a openHAB UID.
|
||||
* Replaces invalid characters of the text to fit into an openHAB UID.
|
||||
*/
|
||||
public static String validateCharacters(String text, String textType, String replaceChar) {
|
||||
if (text == null) {
|
||||
|
||||
@@ -132,7 +132,7 @@ public class HmDatapoint implements Cloneable {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the index of the value in a option list.
|
||||
* Returns the index of the value in an option list.
|
||||
*/
|
||||
public int getOptionIndex(String option) {
|
||||
if (options != null && option != null) {
|
||||
@@ -147,7 +147,7 @@ public class HmDatapoint implements Cloneable {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value of a option list.
|
||||
* Returns the value of an option list.
|
||||
*/
|
||||
public @Nullable String getOptionValue() {
|
||||
Integer idx = getIntegerValue();
|
||||
|
||||
Reference in New Issue
Block a user