Package net.sf.eBusx.geo
Class GeoObject.GeoBuilder<F extends GeoObject>
- java.lang.Object
-
- net.sf.eBus.messages.EMessageObject.Builder<M>
-
- net.sf.eBus.messages.EField.Builder<F>
-
- net.sf.eBusx.geo.GeoObject.GeoBuilder<F>
-
- Type Parameters:
F
- target GeoJSON object type.
- Direct Known Subclasses:
GeoLineString.Builder
,GeoMultiLineString.Builder
,GeoMultiPoint.Builder
,GeoPoint.Builder
,GeoPolygon.Builder
- Enclosing class:
- GeoObject
public abstract static class GeoObject.GeoBuilder<F extends GeoObject> extends EField.Builder<F>
Base class for all GeoJSON object builders. Used to set the GeoJSON object type.
-
-
Field Summary
-
Fields inherited from class net.sf.eBus.messages.EMessageObject.Builder
mTargetClass
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GeoBuilder(java.lang.Class<F> clazz, GeoObject.GeoType type)
Constructor used to set the GeoJSON class and type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EField.Builder
boundingBox(BoundingBox bbox)
Sets optional bounding box.EField.Builder
type(GeoObject.GeoType type)
Does nothing since GeoJSON type is set in the constructor.-
Methods inherited from class net.sf.eBus.messages.EField.Builder
validate
-
Methods inherited from class net.sf.eBus.messages.EMessageObject.Builder
build, buildImpl
-
-
-
-
Constructor Detail
-
GeoBuilder
protected GeoBuilder(java.lang.Class<F> clazz, GeoObject.GeoType type)
Constructor used to set the GeoJSON class and type.- Parameters:
clazz
- target GeoJSON object class.type
- target GeoJSON object type.
-
-
Method Detail
-
type
public final EField.Builder type(GeoObject.GeoType type)
Does nothing since GeoJSON type is set in the constructor. This method is required for eBus message de-serialization.- Parameters:
type
- GeoJSON data type.- Returns:
this Builder
instance.
-
boundingBox
public final EField.Builder boundingBox(BoundingBox bbox)
Sets optional bounding box.- Parameters:
bbox
- bounding box. May benull
.- Returns:
this Builder
instance.
-
-