Interface ImportInfo
-
public interface ImportInfo
ImportInfo
...
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ImportInfo.Info
The detailed information about an imported pathstatic class
ImportInfo.Type
The modification type
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description Exception
getError(String path)
Deprecated.since 3.1 usegetInfo(String)
.getError()
ImportInfo.Info
getInfo(String path)
Returns the info atpath
TreeMap<String,ImportInfo.Info>
getInfos()
Returns the import informationMap<String,String[]>
getMemberships()
Returns a list of memberships that need to be resolvedTreeMap<String,ImportInfo.Type>
getModifications()
Returns the modifications of all infosNodeNameList
getNameList()
Deprecated.since 3.1 usegetInfos()
to retrieve information about namesCollection<String>
getToVersion()
Returns a collection of UUIDs of the nodes that need to be versioned.ImportInfo
merge(ImportInfo info)
Merges an import info into this one.int
numErrors()
returns the number of errorsint
numModified()
returns the number of non-NOP entries.void
onCreated(String path)
Marks that the node atpath
was created.void
onDeleted(String path)
Marks that the node atpath
was deleted.void
onError(String path, Exception e)
Marks that the node atpath
caused an error.void
onMissing(String path)
Deprecated.Is no longer issued, as this depends on the registered node type definitionsvoid
onModified(String path)
Marks that the node atpath
was modified.void
onNop(String path)
Marks that nothing changed atpath
void
onReplaced(String path)
Marks that the node atpath
was replaced.default void
onStashed(String path)
Marks that the child node atpath
was moved due to stashing.
-
-
-
Method Detail
-
getNameList
@Deprecated NodeNameList getNameList()
Deprecated.since 3.1 usegetInfos()
to retrieve information about names- Returns:
- the name list
-
onModified
void onModified(String path)
Marks that the node atpath
was modified.- Parameters:
path
- the path
-
onNop
void onNop(String path)
Marks that nothing changed atpath
- Parameters:
path
- the path
-
onCreated
void onCreated(String path)
Marks that the node atpath
was created.- Parameters:
path
- the path
-
onStashed
default void onStashed(String path)
Marks that the child node atpath
was moved due to stashing.- Parameters:
path
- the path- Since:
- 3.7.0
-
onDeleted
void onDeleted(String path)
Marks that the node atpath
was deleted.- Parameters:
path
- the path
-
onReplaced
void onReplaced(String path)
Marks that the node atpath
was replaced.- Parameters:
path
- the path
-
onMissing
@Deprecated void onMissing(String path)
Deprecated.Is no longer issued, as this depends on the registered node type definitionsMarks that the node atpath
is missing.- Parameters:
path
- the path
-
onError
void onError(String path, Exception e)
Marks that the node atpath
caused an error.- Parameters:
path
- the pathe
- exception
-
getInfos
TreeMap<String,ImportInfo.Info> getInfos()
Returns the import information- Returns:
- the import information
- Since:
- 3.1
-
getInfo
ImportInfo.Info getInfo(String path)
Returns the info atpath
- Parameters:
path
- path- Returns:
- the info or
null
- Since:
- 3.1
-
getModifications
TreeMap<String,ImportInfo.Type> getModifications()
Returns the modifications of all infos- Returns:
- the modifications
-
getError
@Deprecated Exception getError(String path)
Deprecated.since 3.1 usegetInfo(String)
.getError()
- Parameters:
path
- the path- Returns:
- the error exception
-
getToVersion
Collection<String> getToVersion()
Returns a collection of UUIDs of the nodes that need to be versioned.- Returns:
- a collection of UUIDs.
-
getMemberships
Map<String,String[]> getMemberships()
Returns a list of memberships that need to be resolved- Returns:
- a list of memberships
-
merge
ImportInfo merge(ImportInfo info)
Merges an import info into this one.- Parameters:
info
- the other info- Returns:
- a new, merged info.
-
numModified
int numModified()
returns the number of non-NOP entries.- Returns:
- the number of modified entries.
-
numErrors
int numErrors()
returns the number of errors- Returns:
- the number of errors
-
-