org.objectweb.dsrg.sofa.repository.server.webapp.repositorydata
Class XMLTypeDetector

java.lang.Object
  extended by org.objectweb.dsrg.sofa.repository.server.webapp.repositorydata.XMLTypeDetector

public class XMLTypeDetector
extends java.lang.Object

This is a "magic" class, which has to recognize type of object stored in XML file (Architecture, CodeBundle, etc). It is done by reading XML file and getEObjectTypeInFile returns the name of the root XML tag.


Method Summary
static java.lang.String getEObjectTypeInFile(java.io.File file)
          This is the main method, which has to recognize type of object stored in XML file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getEObjectTypeInFile

public static java.lang.String getEObjectTypeInFile(java.io.File file)
This is the main method, which has to recognize type of object stored in XML file.

Parameters:
file - XML file with stored EMF object
Returns:
name of the type saved in file