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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns a newFeatureModelMetadatainstance.voidclose()Sets theDataModelfor the model.featureTypes(List<@NotNull DataType> featureTypes) Sets the DataTypes of the Features in the model.protected voidfinalize()reference(CoordinateReference reference) Sets the preferred reference for the model.
-
Constructor Details
-
Builder
-
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
build
Returns a newFeatureModelMetadatainstance.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 theDataModelfor 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:
-