Package eu.clarin.weblicht.wlfxb.tc.xb
Class GeoLayerStored
- java.lang.Object
-
- eu.clarin.weblicht.wlfxb.tc.xb.TextCorpusLayerStoredAbstract
-
- eu.clarin.weblicht.wlfxb.tc.xb.GeoLayerStored
-
- All Implemented Interfaces:
GeoLayer
,TextCorpusLayer
public class GeoLayerStored extends TextCorpusLayerStoredAbstract implements GeoLayer
- Author:
- Yana Panchenko
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GeoLayerStored()
protected
GeoLayerStored(TextCorpusLayersConnector connector)
protected
GeoLayerStored(String source, GeoLongLatFormat coordFormat)
protected
GeoLayerStored(String source, GeoLongLatFormat coordFormat, GeoCapitalFormat capitalFormat)
protected
GeoLayerStored(String source, GeoLongLatFormat coordFormat, GeoContinentFormat continentFormat)
protected
GeoLayerStored(String source, GeoLongLatFormat coordFormat, GeoContinentFormat continentFormat, GeoCapitalFormat capitalFormat)
protected
GeoLayerStored(String source, GeoLongLatFormat coordFormat, GeoContinentFormat continentFormat, GeoCountryFormat countryFormat)
protected
GeoLayerStored(String source, GeoLongLatFormat coordFormat, GeoContinentFormat continentFormat, GeoCountryFormat countryFormat, GeoCapitalFormat capitalFormat)
protected
GeoLayerStored(String source, GeoLongLatFormat coordFormat, GeoCountryFormat countryFormat)
protected
GeoLayerStored(String source, GeoLongLatFormat coordFormat, GeoCountryFormat countryFormat, GeoCapitalFormat capitalFormat)
-
Method Summary
Modifier and Type Method Description GeoPoint
addPoint(String longitude, String latitude, Double altitude, String continent, String country, String capital, Token pointToken)
GeoPoint
addPoint(String longitude, String latitude, Double altitude, String continent, String country, String capital, List<Token> pointTokens)
GeoCapitalFormat
getCapitalFormat()
GeoContinentFormat
getContinentFormat()
GeoLongLatFormat
getCoordinatesFormat()
GeoCountryFormat
getCountryFormat()
GeoPoint
getPoint(int index)
GeoPoint
getPoint(Token token)
String
getSource()
Token[]
getTokens(GeoPoint point)
boolean
isEmpty()
protected void
setLayersConnector(TextCorpusLayersConnector connector)
Should not be used directly by users.int
size()
String
toString()
-
-
-
Field Detail
-
XML_NAME
public static final String XML_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GeoLayerStored
protected GeoLayerStored()
-
GeoLayerStored
protected GeoLayerStored(String source, GeoLongLatFormat coordFormat)
-
GeoLayerStored
protected GeoLayerStored(String source, GeoLongLatFormat coordFormat, GeoContinentFormat continentFormat)
-
GeoLayerStored
protected GeoLayerStored(String source, GeoLongLatFormat coordFormat, GeoContinentFormat continentFormat, GeoCountryFormat countryFormat)
-
GeoLayerStored
protected GeoLayerStored(String source, GeoLongLatFormat coordFormat, GeoContinentFormat continentFormat, GeoCapitalFormat capitalFormat)
-
GeoLayerStored
protected GeoLayerStored(String source, GeoLongLatFormat coordFormat, GeoCountryFormat countryFormat)
-
GeoLayerStored
protected GeoLayerStored(String source, GeoLongLatFormat coordFormat, GeoCountryFormat countryFormat, GeoCapitalFormat capitalFormat)
-
GeoLayerStored
protected GeoLayerStored(String source, GeoLongLatFormat coordFormat, GeoCapitalFormat capitalFormat)
-
GeoLayerStored
protected GeoLayerStored(String source, GeoLongLatFormat coordFormat, GeoContinentFormat continentFormat, GeoCountryFormat countryFormat, GeoCapitalFormat capitalFormat)
-
GeoLayerStored
protected GeoLayerStored(TextCorpusLayersConnector connector)
-
-
Method Detail
-
setLayersConnector
protected void setLayersConnector(TextCorpusLayersConnector connector)
Description copied from class:TextCorpusLayerStoredAbstract
Should not be used directly by users. Should be extended by all implementations of TextCorpusLayers, as they might depend on other layers and therefore be able to get referenced/referencing information.- Specified by:
setLayersConnector
in classTextCorpusLayerStoredAbstract
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceTextCorpusLayer
-
size
public int size()
- Specified by:
size
in interfaceTextCorpusLayer
-
getCoordinatesFormat
public GeoLongLatFormat getCoordinatesFormat()
- Specified by:
getCoordinatesFormat
in interfaceGeoLayer
-
getContinentFormat
public GeoContinentFormat getContinentFormat()
- Specified by:
getContinentFormat
in interfaceGeoLayer
-
getCountryFormat
public GeoCountryFormat getCountryFormat()
- Specified by:
getCountryFormat
in interfaceGeoLayer
-
getCapitalFormat
public GeoCapitalFormat getCapitalFormat()
- Specified by:
getCapitalFormat
in interfaceGeoLayer
-
addPoint
public GeoPoint addPoint(String longitude, String latitude, Double altitude, String continent, String country, String capital, Token pointToken)
-
addPoint
public GeoPoint addPoint(String longitude, String latitude, Double altitude, String continent, String country, String capital, List<Token> pointTokens)
-
-