Interface IndexAwareModelFactory

    • Method Detail

      • parseSingleStream

        SModelData parseSingleStream​(@NotNull
                                     String name,
                                     @NotNull
                                     InputStream input)
                              throws IOException
        Return either all or part of model data contained in the given input stream for the purpose of indexing. For multiple file model formats it will be a subset of all model data. The return type may change to a more general {code}ModelFragment{code} of which SModelData will be a special case, applicable in situations when persistence is able to return not only (a subset of) root nodes but also a model reference from the single stream given.
        Parameters:
        name - Name of the stream, to help model factory decide which part of data source it is.
        input - An input stream which is a part of a data source accepted by this model factory
        Returns:
        (A subset of) model data contained in the given input stream
        Throws:
        IOException
        See Also:
        MultiStreamDataSource