Package dev.enola.thing.message
Class ProtoThingIntoJavaThingBuilderConverter
java.lang.Object
dev.enola.thing.message.ProtoThingIntoJavaThingBuilderConverter
- All Implemented Interfaces:
ConverterInto<ThingOrBuilder,Thing.Builder>
public class ProtoThingIntoJavaThingBuilderConverter
extends Object
implements ConverterInto<ThingOrBuilder,Thing.Builder>
Converter of proto Thing into Java Thing Builder.
This is somewhat like ThingAdapter, but this one "converts" whereas that one only
"wraps".
-
Constructor Summary
ConstructorsConstructorDescriptionProtoThingIntoJavaThingBuilderConverter(DatatypeRepository datatypeRepository) -
Method Summary
Modifier and TypeMethodDescriptionbooleanconvertInto(ThingOrBuilder from, Thing.Builder into) Convert from an I into an O.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.enola.common.convert.ConverterInto
convertIntoOrThrow
-
Constructor Details
-
ProtoThingIntoJavaThingBuilderConverter
-
-
Method Details
-
convertInto
public boolean convertInto(ThingOrBuilder from, Thing.Builder into) throws ConversionException, IOException Description copied from interface:ConverterIntoConvert from an I into an O.- Specified by:
convertIntoin interfaceConverterInto<ThingOrBuilder,Thing.Builder> - Parameters:
from- the input to convertinto- the destination where to output- Returns:
- true if conversion was successful, false if this converter cannot handle it; see
ConverterIntoChain - Throws:
ConversionException- in case of conversion problems or technical failures to read from I or write to OIOException- TODO wrap IOException into ConversionException and remove throws
-