Package org.ctan.site.domain.archive
Class ArchiveFile
java.lang.Object
org.ctan.site.domain.archive.ArchiveFile
- All Implemented Interfaces:
Searchable
This domain class records the info about a file or directory in the
tex-archive
tree.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
This enumeration lists known file types. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe methodindexPath
provides means to retrieve the directory containing the index files.boolean
This method is a getter for the boolean property of a file being an archive.boolean
This method is a getter for the boolean property of a file being a directory.boolean
isFile()
This method is a getter for the boolean property of a file being a plain file.void
remove
(IndexingSession session) The methodremove
provides means to remove the entity from the search index.void
updateIndex
(IndexingSession session) The methodupdateIndex
provides means to update the entity in the search index.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ctan.site.services.search.base.Searchable
getId
-
Constructor Details
-
ArchiveFile
public ArchiveFile()
-
-
Method Details
-
indexPath
The methodindexPath
provides means to retrieve the directory containing the index files.- Specified by:
indexPath
in interfaceSearchable
- Returns:
- the index directory
- See Also:
-
isArchive
public boolean isArchive()This method is a getter for the boolean property of a file being an archive.- Returns:
true
iff the file is an archive
-
isDirectory
public boolean isDirectory()This method is a getter for the boolean property of a file being a directory.- Returns:
true
iff the file is a directory
-
isFile
public boolean isFile()This method is a getter for the boolean property of a file being a plain file.- Returns:
true
iff the file is a plain file
-
remove
The methodremove
provides means to remove the entity from the search index.- Specified by:
remove
in interfaceSearchable
- Parameters:
session
- the session- Throws:
IOException
- in case of an I/O error- See Also:
-
updateIndex
public void updateIndex(IndexingSession session) throws org.apache.lucene.index.CorruptIndexException, IOException The methodupdateIndex
provides means to update the entity in the search index.- Specified by:
updateIndex
in interfaceSearchable
- Parameters:
session
- the session- Throws:
org.apache.lucene.index.CorruptIndexException
- in case of an errorIOException
- in case of an I/O error- See Also:
-