Class TLcyDrawingDataModelDescriptor.Builder
java.lang.Object
com.luciad.lucy.addons.drawing.model.TLcyDrawingDataModelDescriptor.Builder
- Enclosing class:
TLcyDrawingDataModelDescriptor
Builder class for
TLcyDrawingDataModelDescriptor
instances.
See the class javadoc of TLcyDrawingDataModelDescriptor
for a code snippet on how to use
this builder.- Since:
- 2017.0
-
Method Summary
Modifier and TypeMethodDescriptionaddBooleanProperty
(String aPropertyName) Adds aboolean property
to the data model of theTLcyDrawingDataModelDescriptor
under construction.addDateProperty
(String aPropertyName) Adds adate property
to the data model of theTLcyDrawingDataModelDescriptor
under construction.addDoubleProperty
(String aPropertyName) Adds adouble property
to the data model of theTLcyDrawingDataModelDescriptor
under construction.addIntegerProperty
(String aPropertyName) Adds ainteger property
to the data model of theTLcyDrawingDataModelDescriptor
under construction.addStringProperty
(String aPropertyName) Adds astring property
to the data model of theTLcyDrawingDataModelDescriptor
under construction.build()
Builds the model descriptor.dataModelName
(String aDataModelName) Sets the name for the data modeldisplayName
(String aDisplayName) Sets the display name for the model descriptor under constructionCreates a new builder instancesourceName
(String aSourceName) Sets the source name for the model descriptor under constructionstyleRepository
(TLcyDrawingStyleRepository aStyleRepository) Sets the repository containing the SLD styles which can be used by the domain objects.
-
Method Details
-
styleRepository
public TLcyDrawingDataModelDescriptor.Builder styleRepository(TLcyDrawingStyleRepository aStyleRepository) Sets the repository containing the SLD styles which can be used by the domain objects.- Parameters:
aStyleRepository
- Repository containing SLD styles which can be used by the domain objects- Returns:
- this builder
-
addBooleanProperty
Adds aboolean property
to the data model of theTLcyDrawingDataModelDescriptor
under construction.- Parameters:
aPropertyName
- The name of the property- Returns:
- this builder
-
addIntegerProperty
Adds ainteger property
to the data model of theTLcyDrawingDataModelDescriptor
under construction.- Parameters:
aPropertyName
- The name of the property- Returns:
- this builder
-
addDoubleProperty
Adds adouble property
to the data model of theTLcyDrawingDataModelDescriptor
under construction.- Parameters:
aPropertyName
- The name of the property- Returns:
- this builder
-
addStringProperty
Adds astring property
to the data model of theTLcyDrawingDataModelDescriptor
under construction.- Parameters:
aPropertyName
- The name of the property- Returns:
- this builder
-
addDateProperty
Adds adate property
to the data model of theTLcyDrawingDataModelDescriptor
under construction.- Parameters:
aPropertyName
- The name of the property- Returns:
- this builder
- Since:
- 2017.0
-
sourceName
Sets the source name for the model descriptor under construction- Parameters:
aSourceName
- The source name- Returns:
- This builder
- See Also:
-
displayName
Sets the display name for the model descriptor under construction- Parameters:
aDisplayName
- The display name- Returns:
- This builder
- See Also:
-
dataModelName
Sets the name for the data model- Parameters:
aDataModelName
- The name for the data model- Returns:
- This builder
- See Also:
-
build
Builds the model descriptor. After calling this method, the builder should not longer be used.- Returns:
- the model descriptor
-
newInstance
Creates a new builder instance- Returns:
- a builder instance
-