Package com.luciad.models.features
Class FeatureModelMetadata.Builder
java.lang.Object
com.luciad.models.features.FeatureModelMetadata.Builder
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
FeatureModelMetadata
The builder for creating
FeatureModelMetadata
classes.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns a newFeatureModelMetadata
instance.void
close()
Sets theDataModel
for the model.featureTypes
(List<@NotNull DataType> featureTypes) Sets the DataTypes of the Features in the model.protected void
finalize()
reference
(CoordinateReference reference) Sets the preferred reference for the model.
-
Constructor Details
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
build
Returns a newFeatureModelMetadata
instance.This function throws an java.lang.Throwable when not all mandatory parameters are set.
- Returns:
- a new
FeatureModelMetadata
. - Throws:
IllegalStateException
- If not all mandatory parameters are set.
-
reference
Sets the preferred reference for the model.Calling this function is optional.
- Parameters:
reference
- a reference- See Also:
-
dataModel
Sets theDataModel
for the model.Calling this function is mandatory.
- Parameters:
dataModel
- a data model- See Also:
-
featureTypes
@NotNull public FeatureModelMetadata.Builder featureTypes(@NotNull List<@NotNull DataType> featureTypes) Sets the DataTypes of the Features in the model.Calling this function is optional. If this method is not called, the feature types will be derived from
DataModel#getDataTypes
- Parameters:
featureTypes
- the feature types- See Also:
-