Skip navigation links

Package org.knime.core.data.convert.datacell

DataCell to Java Converters

See: Description

Package org.knime.core.data.convert.datacell Description

DataCell to Java Converters

Introduction

This package contains classes to unbox KNIME types to Java types. An extension point is provided to allow implementors of custom KNIME data types to provide compatibility with nodes like the Java Snippet node, which use the KNIME Converter Framework.

Extending

Annotations

In many cases conversion merely requires a call to a getFooValue() method in your FooValue interface. For this case, you just need to add the DataValueAccessMethod annotation to this method and the framework will automatically create a converter from it.

Example:

 public interface FooValue extends ... {

      // ...

      @DataValueAccessMethod(name = "Foo")
      public Foo getFooValue();

      // ...
 }
 

Extension Point

To enable conversion from your custom data type, you can also implement the Extension Point with the id defined in DataCellToJavaConverterRegistry.EXTENSION_POINT_ID.

This usually involves implementing either SimpleDataCellToJavaConverterFactory or DataCellToJavaConverterFactory directly.

See Also:
org.knime.core.data.convert
Skip navigation links

Copyright, 2003 - 2016. All rights reserved.
KNIME GmbH, Konstanz, Germany
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.