Package org.apache.sis.internal.storage
Class FeatureCatalogBuilder
java.lang.Object
org.apache.sis.internal.storage.MetadataBuilder
org.apache.sis.internal.storage.FeatureCatalogBuilder
Helper methods for the feature metadata created by
DataStore
implementations.
This is a convenience class for chaining addFeatureType(FeatureType, long)
method calls with FeatureNaming.add(DataStore, GenericName, Object)
.- Since:
- 0.8
- Version:
- 0.8
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.internal.storage.MetadataBuilder
MetadataBuilder.GridType, MetadataBuilder.PartyType, MetadataBuilder.Scope
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal FeatureNaming<DefaultFeatureType>
The feature types created by theFeatureCatalogBuilder
.private final DataStore
The data store for which the metadata will be created, ornull
if unknown. -
Constructor Summary
ConstructorsConstructorDescriptionFeatureCatalogBuilder
(DataStore store) Creates a new builder for the given data store. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
define
(DefaultFeatureType type) Adds descriptions for the given feature in both theDefaultMetadata
andFeatureNaming
instances.Methods inherited from class org.apache.sis.internal.storage.MetadataBuilder
addAbstract, addAccessConstraint, addAcquisitionOperation, addAcquisitionRequirement, addAcquisitionTime, addAcquisitionTime, addAuthor, addBandDescription, addBandName, addBoundingPolygon, addCitationDate, addCitedResponsibleParty, addCompleteMetadata, addCompression, addContentType, addControlPoints, addCredits, addDefaultMetadata, addDefaultMetadata, addDefaultMetadata, addDistributor, addEdition, addEncoding, addExtent, addExtent, addExtent, addFeatureType, addFeatureType, addFormatName, addFromComponent, addGeolocation, addHostComputer, addIdentifier, addIdentifier, addInstrument, addKeywords, addLanguage, addLineage, addMaximumSampleValue, addMinimumSampleValue, addNewBand, addOtherCitationDetails, addPage, addPage, addPlatform, addPointOfContact, addProcessDescription, addProcessing, addPurpose, addReferenceSystem, addResolution, addResourceScope, addSampleValueDescription, addSeries, addSoftwareReference, addSource, addSource, addSource, addSpatialRepresentation, addSpatialRepresentation, addSupplementalInformation, addTemporalExtent, addTitle, addTitleOrIdentifier, addTopicCategory, addUseLimitation, addVerticalExtent, build, buildAndFreeze, hasSampleValueRange, mergeMetadata, newAcquisition, newCoverage, newDistribution, newFeatureTypes, newGridRepresentation, newIdentification, newLineage, newParty, newSampleDimension, parseLegalNotice, setAxisName, setAxisResolution, setAxisSize, setBandIdentifier, setBandIdentifier, setBitPerSample, setCellGeometry, setCloudCoverPercentage, setFormatEdition, setGeoreferencingAvailability, setGridToCRS, setIlluminationAzimuthAngle, setIlluminationElevationAngle, setISOStandards, setPointInPixel, setPredefinedFormat, setProcessingLevelCode, setSampleUnits, setTransferFunction, shared, shared
-
Field Details
-
store
The data store for which the metadata will be created, ornull
if unknown. This is used for producing error message if an exception is thrown. -
features
The feature types created by theFeatureCatalogBuilder
.DataStore
implementations can keep the reference to thisFeatureNaming
after the#build(boolean)
method has been invoked.
-
-
Constructor Details
-
FeatureCatalogBuilder
Creates a new builder for the given data store.- Parameters:
store
- the data store for which the metadata will be created, ornull
if unknown.
-
-
Method Details
-
define
Adds descriptions for the given feature in both theDefaultMetadata
andFeatureNaming
instances. Invoking this method is equivalent to executing the following code (omittingnull
checks for brevity):- Parameters:
type
- the feature type to add, ornull
.- Throws:
IllegalNameException
- if a feature of the same name has already been added.- See Also:
-