Package org.somda.sdc.glue.common
Class MdibMapper
- java.lang.Object
-
- org.somda.sdc.glue.common.MdibMapper
-
public class MdibMapper extends Object
Maps MDIB entities from MdibAccess to an Mdib object.Use
ModificationsBuilderto map from an Mdib to MdibDescriptionModifications in order to add MDIB elements toRemoteMdibAccessandLocalMdibAccess.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MdDescriptionmapMdDescription(List<String> handleFilter)Maps to anMdDescriptioninstance.MdibmapMdib()Maps to an Mdib instance.MdStatemapMdState(List<String> handleFilter)Maps to anMdStateinstance.
-
-
-
Method Detail
-
mapMdib
public Mdib mapMdib()
Maps to an Mdib instance.All information is copied from the
MdibAccessgiven to the MdibMapper on construction.- Returns:
- a fully populated
Mdibinstance.
-
mapMdState
public MdState mapMdState(List<String> handleFilter)
Maps to anMdStateinstance.- Parameters:
handleFilter- a filter to limit the result:- If the handle reference list is empty, all states in the MDIB are included in the result list.
- If a handle reference does match a multi-state handle, the corresponding multi-state is included in the result list.
- If a handle reference does match a descriptor handle, all states that belong to the corresponding descriptor are included in the result list.
- Returns:
- the mapped instance.
-
mapMdDescription
public MdDescription mapMdDescription(List<String> handleFilter)
Maps to anMdDescriptioninstance.- Parameters:
handleFilter- a filter to limit the result:- If the handle reference list is empty, all MDS descriptors are included in the result list.
- If a handle reference does match an MDS descriptor, it is included in the result list.
- If a handle reference does not match an MDS descriptor (i.e., any other descriptor), the MDS descriptor that is in the parent tree of the handle reference is included in the result list.
- Returns:
- the mapped instance.
-
-