Package net.sf.eBusx.geo
Class GeoLineString.Builder
- java.lang.Object
-
- net.sf.eBus.messages.EMessageObject.Builder<M>
-
- net.sf.eBus.messages.EField.Builder<F>
-
- net.sf.eBusx.geo.GeoObject.GeoBuilder<GeoLineString>
-
- net.sf.eBusx.geo.GeoLineString.Builder
-
- Enclosing class:
- GeoLineString
public static final class GeoLineString.Builder extends GeoObject.GeoBuilder<GeoLineString>
Builder used to createGeoLineString
instance.Builder
instance is obtained by callingGeoLineString.builder()
. It is recommended that a new builder instance be used to create eachGeoLineString
instance.
-
-
Field Summary
-
Fields inherited from class net.sf.eBus.messages.EMessageObject.Builder
mTargetClass
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected GeoLineString
buildImpl()
Returns a new GeoJSON line string instance based on this builder's settings.GeoLineString.Builder
lineString(LineString ls)
Sets line string.protected Validator
validate(Validator problems)
Checks if line string is set.-
Methods inherited from class net.sf.eBusx.geo.GeoObject.GeoBuilder
boundingBox, type
-
Methods inherited from class net.sf.eBus.messages.EMessageObject.Builder
build
-
-
-
-
Method Detail
-
validate
protected Validator validate(Validator problems)
Checks if line string is set.- Overrides:
validate
in classEField.Builder<GeoLineString>
- Parameters:
problems
- add each detected problem to this validator.- Returns:
problems
.- See Also:
Validator
-
buildImpl
protected GeoLineString buildImpl()
Returns a new GeoJSON line string instance based on this builder's settings.- Specified by:
buildImpl
in classEMessageObject.Builder<GeoLineString>
- Returns:
- new
GeoLineString
instance.
-
lineString
public GeoLineString.Builder lineString(LineString ls)
Sets line string. Returnsthis Builder
instance so that builder method calls can be chained.- Parameters:
ls
- line string.- Returns:
this Builder
instance.- Throws:
java.lang.NullPointerException
- ifls
isnull
.
-
-