Interface VltEntry


public interface VltEntry
Represents an entry in VltEntries
  • Method Details

    • 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

      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 type VltEntryInfo.Type.WORK
      Returns:
      the "work" entry info or null if not defined.
    • base

      VltEntryInfo base()
      Returns the entry info of type VltEntryInfo.Type.BASE
      Returns:
      the "base" entry info or null if not defined.
    • mine

      VltEntryInfo mine()
      Returns the entry info of type VltEntryInfo.Type.MINE
      Returns:
      the "mine" entry info or null if not defined.
    • theirs

      VltEntryInfo theirs()
      Returns the entry info of type VltEntryInfo.Type.THEIRS
      Returns:
      the "theirs" entry info or null if not defined.
    • remove

      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()