Class AbstractModelReader<T>

    • Constructor Detail

      • AbstractModelReader

        protected AbstractModelReader​(org.yaml.snakeyaml.Yaml yaml)
        Parameters:
        yaml - YAML
    • Method Detail

      • accepts

        public boolean accepts​(Resource file)
        Description copied from interface: ModelReader
        Checks if the given file is accepted by this reader.
        Specified by:
        accepts in interface ModelReader<T>
        Parameters:
        file - File
        Returns:
        true if accepted
      • read

        public final T read​(Reader reader)
        Description copied from interface: ModelReader
        Read model
        Specified by:
        read in interface ModelReader<T>
        Parameters:
        reader - Model file
        Returns:
        Model object