Package evo.search.io.entities
Class IndexEntry
- java.lang.Object
-
- evo.search.io.entities.IndexEntry
-
- All Implemented Interfaces:
XmlEntity<IndexEntry>
public class IndexEntry extends Object implements XmlEntity<IndexEntry>
Global project register entry used to save registered projects in the file system.
-
-
Constructor Summary
Constructors Constructor Description IndexEntry()IndexEntry(Path path, String name, String version, LocalDateTime lastUsed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)LocalDateTimegetLastUsed()Time since last project use.StringgetName()Name of the project.PathgetPath()File system path of the project.StringgetVersion()Version of the project.inthashCode()IndexEntryparse(org.dom4j.Element element)Parse anIndexEntryfrom anElement.org.dom4j.Elementserialize()Serialize anIndexEntryto anElement.voidsetLastUsed(LocalDateTime lastUsed)Time since last project use.voidsetName(String name)Name of the project.voidsetPath(Path path)File system path of the project.voidsetVersion(String version)Version of the project.StringtoString()
-
-
-
Constructor Detail
-
IndexEntry
public IndexEntry()
-
IndexEntry
public IndexEntry(Path path, String name, String version, LocalDateTime lastUsed)
-
-
Method Detail
-
parse
public IndexEntry parse(org.dom4j.Element element)
Parse anIndexEntryfrom anElement.- Specified by:
parsein interfaceXmlEntity<IndexEntry>- Parameters:
element- element to parse- Returns:
- parsed index entry
-
serialize
public org.dom4j.Element serialize()
Serialize anIndexEntryto anElement.- Specified by:
serializein interfaceXmlEntity<IndexEntry>- Returns:
- serialized index entry
-
getPath
public Path getPath()
File system path of the project.
-
getName
public String getName()
Name of the project.
-
getVersion
public String getVersion()
Version of the project.
-
getLastUsed
public LocalDateTime getLastUsed()
Time since last project use.
-
setPath
public void setPath(Path path)
File system path of the project.
-
setName
public void setName(String name)
Name of the project.
-
setVersion
public void setVersion(String version)
Version of the project.
-
setLastUsed
public void setLastUsed(LocalDateTime lastUsed)
Time since last project use.
-
canEqual
protected boolean canEqual(Object other)
-
-