Interface Transformer<T>

  • Type Parameters:
    T - Transformer type
    All Known Subinterfaces:
    ClassificationsTransformer

    public interface Transformer<T>
    A Transformer is used to transform a Resource to a certain type T.
    • Method Detail

      • transform

        T transform​(Resource resource)
             throws TransformationException
        Transforms a Resource into another representation of type T.
        Parameters:
        resource - Resource to transform
        Returns:
        Transformed Resource of type T or null if Resource is not transformable into this type.
        Throws:
        TransformationException - if transformation fails