F
- factory typepublic abstract class AbstractPlaceHistoryMapper<F> extends Object implements PlaceHistoryMapperWithFactory<F>
PlaceHistoryMapper
.Modifier and Type | Class and Description |
---|---|
static class |
AbstractPlaceHistoryMapper.PrefixAndToken
Return value for
getPrefixAndToken(Place) . |
Constructor and Description |
---|
AbstractPlaceHistoryMapper() |
Modifier and Type | Method and Description |
---|---|
Place |
getPlace(String token)
Returns the
Place associated with the given token. |
protected abstract AbstractPlaceHistoryMapper.PrefixAndToken |
getPrefixAndToken(Place newPlace) |
String |
getToken(Place place)
Returns the String token associated with the given
Place . |
protected abstract PlaceTokenizer<?> |
getTokenizer(String prefix) |
void |
setFactory(F factory)
Sets the factory to be used to generate
PlaceTokenizer instances. |
protected F factory
public Place getPlace(String token)
PlaceHistoryMapper
Place
associated with the given token.getPlace
in interface PlaceHistoryMapper
token
- a String tokenPlace
instancepublic String getToken(Place place)
PlaceHistoryMapper
Place
.getToken
in interface PlaceHistoryMapper
place
- a Place
instancepublic void setFactory(F factory)
PlaceHistoryMapperWithFactory
PlaceTokenizer
instances.setFactory
in interface PlaceHistoryMapperWithFactory<F>
factory
- a factory of type Fprotected abstract AbstractPlaceHistoryMapper.PrefixAndToken getPrefixAndToken(Place newPlace)
newPlace
- what needs tokenizingprotected abstract PlaceTokenizer<?> getTokenizer(String prefix)
prefix
- the prefix found on the history tokenCopyright © 2018. All rights reserved.