Class AbstractLocationBuilder<U extends AbstractLocationBuilder<U>>
- java.lang.Object
-
- de.fraunhofer.iosb.ilt.sta.model.builder.api.AbstractBuilder<T>
-
- de.fraunhofer.iosb.ilt.sta.model.builder.api.ExtensibleBuilder<T,U>
-
- de.fraunhofer.iosb.ilt.sta.model.builder.api.EntityBuilder<Location,U>
-
- de.fraunhofer.iosb.ilt.sta.model.builder.api.AbstractLocationBuilder<U>
-
- Type Parameters:
U
- the type of the concrete class that extends thisAbstractLocationBuilder
- Direct Known Subclasses:
LocationBuilder
public abstract class AbstractLocationBuilder<U extends AbstractLocationBuilder<U>> extends EntityBuilder<Location,U>
Base class for anyEntityBuilder
ofLocation
- Author:
- Aurelien Bourdon
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractLocationBuilder.ValueCode
All the possible values for aLocation.encodingType
attribute
-
Constructor Summary
Constructors Constructor Description AbstractLocationBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description U
description(String description)
U
encodingType(AbstractLocationBuilder.ValueCode encodingType)
U
historicalLocation(HistoricalLocation historicalLocation)
U
historicalLocations(List<HistoricalLocation> historicalLocations)
U
location(Object location)
U
name(String name)
protected Location
newBuildingInstance()
Create the new instance that will be build by thisAbstractBuilder
U
thing(Thing thing)
U
things(List<Thing> things)
-
Methods inherited from class de.fraunhofer.iosb.ilt.sta.model.builder.api.EntityBuilder
id, service
-
Methods inherited from class de.fraunhofer.iosb.ilt.sta.model.builder.api.ExtensibleBuilder
getSelf
-
Methods inherited from class de.fraunhofer.iosb.ilt.sta.model.builder.api.AbstractBuilder
build, getBuildingInstance
-
-
-
-
Method Detail
-
newBuildingInstance
protected Location newBuildingInstance()
Description copied from class:AbstractBuilder
Create the new instance that will be build by thisAbstractBuilder
- Specified by:
newBuildingInstance
in classAbstractBuilder<Location>
- Returns:
- the new instance that will be build by this
AbstractBuilder
-
encodingType
public U encodingType(AbstractLocationBuilder.ValueCode encodingType)
-
historicalLocations
public U historicalLocations(List<HistoricalLocation> historicalLocations)
-
historicalLocation
public U historicalLocation(HistoricalLocation historicalLocation)
-
-