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

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

public class CacheFileItem
extends java.lang.Object

Internal class used for caching known information about XML files and their VersionedEntities saved within.

See Also:
RepositoryDataObjectGenerator

Constructor Summary
CacheFileItem(java.io.File repositoryDir, java.io.File repositoryFile, long lastModified, java.lang.String type)
          Standard constructor.
 
Method Summary
 java.lang.String getEntityName()
          Returns EMF VersionedEntity name.
 java.lang.String getEntityVersion()
          Returns EMF VersionedEntity version.
 long getLastModified()
          Returns time of last modification of this file.
 java.io.File getRepositoryFile()
          Returns filename of this cache item.
 java.lang.String getType()
          Returns EMF object type (Architecture, Frame, etc.).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheFileItem

public CacheFileItem(java.io.File repositoryDir,
                     java.io.File repositoryFile,
                     long lastModified,
                     java.lang.String type)
Standard constructor. All values of object are set by this constructor parameters.

Parameters:
repositoryDir - Root repository content directory
repositoryFile - Repository file name (local filename)
lastModified - Time of last modification of this file
type - EMF object type (Architecture, Frame, etc.)
Method Detail

getEntityName

public java.lang.String getEntityName()
Returns EMF VersionedEntity name.

Returns:
VersionedEntity name.

getEntityVersion

public java.lang.String getEntityVersion()
Returns EMF VersionedEntity version.

Returns:
VersionedEntity version as string.

getLastModified

public long getLastModified()
Returns time of last modification of this file.

Returns:
Time of last modification.

getRepositoryFile

public java.io.File getRepositoryFile()
Returns filename of this cache item.

Returns:
File

getType

public java.lang.String getType()
Returns EMF object type (Architecture, Frame, etc.).

Returns:
EMF object type.