public abstract class GenericXmlBikeRentalDataSource extends Object implements BikeRentalDataSource, JsonConfigurable
Constructor and Description |
---|
GenericXmlBikeRentalDataSource(String path) |
Modifier and Type | Method and Description |
---|---|
void |
configure(Graph graph,
com.fasterxml.jackson.databind.JsonNode config) |
List<BikeRentalStation> |
getStations() |
abstract BikeRentalStation |
makeStation(Map<String,String> attributes) |
void |
setReadAttributes(boolean readAttributes) |
void |
setUrl(String url) |
String |
toString() |
boolean |
update()
Fetch current data about bike rental stations and availability from this source.
|
public GenericXmlBikeRentalDataSource(String path)
public boolean update()
BikeRentalDataSource
update
in interface BikeRentalDataSource
public List<BikeRentalStation> getStations()
getStations
in interface BikeRentalDataSource
public void setReadAttributes(boolean readAttributes)
public void setUrl(String url)
public abstract BikeRentalStation makeStation(Map<String,String> attributes)
public void configure(Graph graph, com.fasterxml.jackson.databind.JsonNode config)
configure
in interface JsonConfigurable
Copyright © 2018. All rights reserved.