org.schemarepo.api.converter
Interface Converter<TYPE>


public interface Converter<TYPE>

An interface which the TypedSchemaRepository uses to convert IDs, schema literals and subject names back and forth with Strings.


Method Summary
 TYPE fromString(String literal)
          Given a String literal, provide a strongly-typed instance.
 String toString(TYPE strongType)
          Given a strongly-typed instance, provide its String literal representation.
 

Method Detail

fromString

TYPE fromString(String literal)
Given a String literal, provide a strongly-typed instance.

Parameters:
literal - to be converted
Returns:
the requested TYPE

toString

String toString(TYPE strongType)
Given a strongly-typed instance, provide its String literal representation.

Parameters:
strongType - instance to be converted
Returns:
the String literal representation


Copyright © 2015. All rights reserved.