/** * {@inheritDoc} */ @Override public String convertTo(final Type source, final String destination) { final ConnectorTypeConverter typeConverter; try { typeConverter = this.typeConverterFactory.get(MetacatContextManager.getContext().getDataTypeContext()); } catch (final Exception e) { throw new IllegalStateException("Unable to get a type converter", e); } return typeConverter.fromMetacatType(source); }
/** * {@inheritDoc} */ @Override public Type convertFrom(final String source, final Type destination) { final ConnectorTypeConverter typeConverter; try { typeConverter = this.typeConverterFactory.get(MetacatContextManager.getContext().getDataTypeContext()); } catch (final Exception e) { throw new IllegalStateException("Unable to get a type converter", e); } return typeConverter.toMetacatType(source); } }
/** * {@inheritDoc} */ @Override public String convertTo(final Type source, final String destination) { final ConnectorTypeConverter typeConverter; try { typeConverter = this.typeConverterFactory.get(MetacatContextManager.getContext().getDataTypeContext()); } catch (final Exception e) { throw new IllegalStateException("Unable to get a type converter", e); } return typeConverter.fromMetacatType(source); }
/** * {@inheritDoc} */ @Override public Type convertFrom(final String source, final Type destination) { final ConnectorTypeConverter typeConverter; try { typeConverter = this.typeConverterFactory.get(MetacatContextManager.getContext().getDataTypeContext()); } catch (final Exception e) { throw new IllegalStateException("Unable to get a type converter", e); } return typeConverter.toMetacatType(source); } }