Interface VltEntry
-
public interface VltEntryRepresents an entry inVltEntries
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classVltEntry.StateDescribes the state of an entry
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VltEntryInfobase()Returns the entry info of typeVltEntryInfo.Type.BASEvoidconflict(File work, MetaFile base, MetaFile tmp)VltEntryInfocreate(VltEntryInfo.Type type)Creates a new entry info for the given type.booleandelete(File fileWork)StringgetAggregatePath()Returns the aggregate path of this entry.StringgetName()Returns the name of an entry.StringgetRepoRelPath()Returns the repository path of this entry.VltEntry.StategetState()Returns the state of this entry.booleanisDirectory()booleanisDirty()VltEntryInfomine()Returns the entry info of typeVltEntryInfo.Type.MINEvoidput(VltEntryInfo info)Puts and entry info to this entry.VltEntryInforemove(VltEntryInfo.Type type)Removes the entry info with the given type.voidresolved(MetaFile fileTmp, File fileWork, MetaFile fileBase)booleanrevertConflict(File work)VltEntryInfotheirs()Returns the entry info of typeVltEntryInfo.Type.THEIRSVltEntryInfowork()Returns the entry info of typeVltEntryInfo.Type.WORK
-
-
-
Method Detail
-
getName
String getName()
Returns the name of an entry.- Returns:
- the name.
-
getRepoRelPath
String getRepoRelPath()
Returns the repository path of this entry.- Returns:
- the repository path.
-
getAggregatePath
String getAggregatePath()
Returns the aggregate path of this entry.- Returns:
- the aggregate path.
-
create
VltEntryInfo create(VltEntryInfo.Type type)
Creates a new entry info for the given type.- Parameters:
type- info type.- Returns:
- the entry info
-
put
void put(VltEntryInfo info)
Puts and entry info to this entry.- Parameters:
info- the entry info
-
work
VltEntryInfo work()
Returns the entry info of typeVltEntryInfo.Type.WORK- Returns:
- the "work" entry info or
nullif not defined.
-
base
VltEntryInfo base()
Returns the entry info of typeVltEntryInfo.Type.BASE- Returns:
- the "base" entry info or
nullif not defined.
-
mine
VltEntryInfo mine()
Returns the entry info of typeVltEntryInfo.Type.MINE- Returns:
- the "mine" entry info or
nullif not defined.
-
theirs
VltEntryInfo theirs()
Returns the entry info of typeVltEntryInfo.Type.THEIRS- Returns:
- the "theirs" entry info or
nullif not defined.
-
remove
VltEntryInfo remove(VltEntryInfo.Type type)
Removes the entry info with the given type.- Parameters:
type- the info type- Returns:
- the previously assigned info or
null
-
getState
VltEntry.State getState()
Returns the state of this entry.- Returns:
- the vault state
-
resolved
void resolved(MetaFile fileTmp, File fileWork, MetaFile fileBase) throws IOException
- Throws:
IOException
-
delete
boolean delete(File fileWork)
-
revertConflict
boolean revertConflict(File work) throws IOException
- Throws:
IOException
-
conflict
void conflict(File work, MetaFile base, MetaFile tmp) throws IOException
- Throws:
IOException
-
isDirty
boolean isDirty()
-
isDirectory
boolean isDirectory()
-
-