Interface VltEntry
-
public interface VltEntry
Represents an entry inVltEntries
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
VltEntry.State
Describes the state of an entry
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VltEntryInfo
base()
Returns the entry info of typeVltEntryInfo.Type.BASE
void
conflict(File work, MetaFile base, MetaFile tmp)
VltEntryInfo
create(VltEntryInfo.Type type)
Creates a new entry info for the given type.boolean
delete(File fileWork)
String
getAggregatePath()
Returns the aggregate path of this entry.String
getName()
Returns the name of an entry.String
getRepoRelPath()
Returns the repository path of this entry.VltEntry.State
getState()
Returns the state of this entry.boolean
isDirectory()
boolean
isDirty()
VltEntryInfo
mine()
Returns the entry info of typeVltEntryInfo.Type.MINE
void
put(VltEntryInfo info)
Puts and entry info to this entry.VltEntryInfo
remove(VltEntryInfo.Type type)
Removes the entry info with the given type.void
resolved(MetaFile fileTmp, File fileWork, MetaFile fileBase)
boolean
revertConflict(File work)
VltEntryInfo
theirs()
Returns the entry info of typeVltEntryInfo.Type.THEIRS
VltEntryInfo
work()
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
null
if not defined.
-
base
VltEntryInfo base()
Returns the entry info of typeVltEntryInfo.Type.BASE
- Returns:
- the "base" entry info or
null
if not defined.
-
mine
VltEntryInfo mine()
Returns the entry info of typeVltEntryInfo.Type.MINE
- Returns:
- the "mine" entry info or
null
if not defined.
-
theirs
VltEntryInfo theirs()
Returns the entry info of typeVltEntryInfo.Type.THEIRS
- Returns:
- the "theirs" entry info or
null
if 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()
-
-