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 boolean
canEqual(Object other)
boolean
equals(Object o)
LocalDateTime
getLastUsed()
Time since last project use.String
getName()
Name of the project.Path
getPath()
File system path of the project.String
getVersion()
Version of the project.int
hashCode()
IndexEntry
parse(org.dom4j.Element element)
Parse anIndexEntry
from anElement
.org.dom4j.Element
serialize()
Serialize anIndexEntry
to anElement
.void
setLastUsed(LocalDateTime lastUsed)
Time since last project use.void
setName(String name)
Name of the project.void
setPath(Path path)
File system path of the project.void
setVersion(String version)
Version of the project.String
toString()
-
-
-
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 anIndexEntry
from anElement
.- Specified by:
parse
in interfaceXmlEntity<IndexEntry>
- Parameters:
element
- element to parse- Returns:
- parsed index entry
-
serialize
public org.dom4j.Element serialize()
Serialize anIndexEntry
to anElement
.- Specified by:
serialize
in 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)
-
-