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 DataStoreThe data store for which the metadata will be created, ornullif unknown. -
Constructor Summary
ConstructorsConstructorDescriptionFeatureCatalogBuilder(DataStore store) Creates a new builder for the given data store. -
Method Summary
Modifier and TypeMethodDescriptionfinal voiddefine(DefaultFeatureType type) Adds descriptions for the given feature in both theDefaultMetadataandFeatureNaminginstances.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, ornullif unknown. This is used for producing error message if an exception is thrown. -
features
The feature types created by theFeatureCatalogBuilder.DataStoreimplementations can keep the reference to thisFeatureNamingafter 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, ornullif unknown.
-
-
Method Details
-
define
Adds descriptions for the given feature in both theDefaultMetadataandFeatureNaminginstances. Invoking this method is equivalent to executing the following code (omittingnullchecks 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:
-