package jetbrains.mps.project.io;

/*Generated by MPS */

import jetbrains.mps.annotations.GeneratedClass;
import jetbrains.mps.vfs.IFile;
import org.jdom.Element;

@GeneratedClass(node = "r:c7bbaee3-030a-4940-995f-2174babaf670(jetbrains.mps.project.io)/557142600900286148", model = "r:c7bbaee3-030a-4940-995f-2174babaf670(jetbrains.mps.project.io)")
public interface DescriptorIO<T> {
  T readFromFile(IFile file) throws DescriptorIOException;
  void writeToFile(T t, IFile file) throws DescriptorIOException;
  T readFromXml(Element element, IFile anchorFile) throws DescriptorIOException;
  void writeToXml(T t, Element element, IFile anchorFile) throws DescriptorIOException;
}
