Package org.goplanit.converter.idmapping
Class PlanitComponentIdMapper
- java.lang.Object
-
- org.goplanit.converter.idmapping.PlanitComponentIdMapper
-
- Direct Known Subclasses:
DemandsIdMapper,NetworkIdMapper,RoutedServicesIdMapper,ServiceNetworkIdMapper,VirtualNetworkIdMapper,ZoningIdMapper
public class PlanitComponentIdMapper extends Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPlanitComponentIdMapper(IdMapperType type)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidadd(Class<? extends ExternalIdAble> key, Function<? extends ExternalIdAble,String> value)Add entryprotected <T extends ExternalIdAble>
Function<T,String>get(Class<T> key)Function<Mode,String>getModeIdMapper()get id mapper for modesMap<Class<? extends ExternalIdAble>,Function<? extends ExternalIdAble,String>>getRaw()Get raw contents of how the mappings are stored (not a copy)
-
-
-
Constructor Detail
-
PlanitComponentIdMapper
protected PlanitComponentIdMapper(IdMapperType type)
Constructor- Parameters:
type- to use
-
-
Method Detail
-
add
protected void add(Class<? extends ExternalIdAble> key, Function<? extends ExternalIdAble,String> value)
Add entry- Parameters:
key- to usevalue- to use
-
get
protected <T extends ExternalIdAble> Function<T,String> get(Class<T> key)
-
getModeIdMapper
public Function<Mode,String> getModeIdMapper()
get id mapper for modes- Returns:
- id mapper
-
getRaw
public Map<Class<? extends ExternalIdAble>,Function<? extends ExternalIdAble,String>> getRaw()
Get raw contents of how the mappings are stored (not a copy)- Returns:
- raw underlying map
-
-