Class ALfnAssetMetadata.Builder<B extends ALfnAssetMetadata.Builder<B,P>,P extends ALfnAssetMetadata.AssetPart>
- Direct Known Subclasses:
TLfnRasterAssetMetadata.Builder
,TLfnVectorAssetMetadata.Builder
- Enclosing class:
ALfnAssetMetadata
- Since:
- 11.0
-
Method Summary
Modifier and TypeMethodDescriptionabstract ALfnAssetMetadata.AssetPart.Builder
Creates a new asset part builder, which adds an asset part to the asset metadata being built.final B
addAssetPart
(P aAssetPart) Adds a part to this asset.final B
addAssetParts
(Collection<P> aAssetParts) Adds multiple parts to this asset.final B
addAssetParts
(P... aAssetParts) Adds multiple parts to this asset.final B
assetParts
(Collection<P> aAssetParts) Sets the List of parts of the asset.final B
assetParts
(P... aAssetParts) Sets the parts of the asset.abstract ALfnAssetMetadata
build()
Builds an immutable asset metadata from the current properties set on this builder.final B
Clears all asset parts on the asset metadata being built.final B
clippingShape
(ILcdShape aClippingShape) Sets the optional clipping shape of the asset.featureTypeStyles
(TLcdSLDFeatureTypeStyle... aFeatureTypeStyles) Sets the feature type styles of the asset part being built by this builder.featureTypeStyles
(Collection<? extends TLcdSLDFeatureTypeStyle> aFeatureTypeStyles) Sets the feature type styles of the asset part being built by this builder.final B
Sets the required format of the asset.final B
geoReference
(ILcdGeoReference aGeoReference) Sets the required geographic reference of the asset.Gets this builder's current asset part builders as an unmodifiable list.final ILcdShape
Gets this builder's current clipping shape.final List
<TLcdSLDFeatureTypeStyle> Gets this builder's current list of feature type stylesfinal String
Gets this builder's current format.final ILcdGeoReference
Gets this builder's current geographic reference.final URI
Gets this builder's current location.final int
Gets this builder's current maximum scale denominator.final int
Gets this builder's current minimum scale denominator.final URI
getRoot()
Gets this builder's current root.final List
<ELfnDataType> Gets this builder's current supported coverage types (unmodifiable).final ELfnDataType
getType()
Gets this builder's current type.final B
Sets the location.final B
maxScaleDenominator
(int aScaleDenominator) Sets the denominator of the maximum scale at which this asset should be used.final B
minScaleDenominator
(int aScaleDenominator) Sets the denominator of the minimum scale at which this asset should be used.final B
Sets the root for the location and support locations.final B
setAssetParts
(Collection<P> aAssetParts) Deprecated.final B
setAssetParts
(P... aAssetParts) Deprecated.final B
setBoundingShape
(ILcdShape aBoundingShape) Deprecated.useclippingShape(com.luciad.shape.ILcdShape)
insteadfinal B
setGeoReference
(ILcdGeoReference aGeoReference) Deprecated.final B
setMaxScaleDenominator
(int aScaleDenominator) Deprecated.usemaxScaleDenominator(int)
insteadfinal B
setMinScaleDenominator
(int aScaleDenominator) Deprecated.useminScaleDenominator(int)
insteadfinal B
setSupportedCoverageTypes
(ELfnDataType... aSupportedCoverageTypes) Deprecated.final B
setSupportedCoverageTypes
(Collection<ELfnDataType> aSupportedCoverageTypes) Deprecated.usesupportedCoverageTypes(java.util.Collection)
insteadfinal B
setType
(ELfnDataType aType) Deprecated.usetype(ELfnDataType)
insteadfinal B
supportedCoverageTypes
(ELfnDataType... aSupportedCoverageTypes) Sets the supported coverage types.final B
supportedCoverageTypes
(Collection<ELfnDataType> aSupportedCoverageTypes) Sets the supported coverage types.type
(ELfnDataType aType) Sets the required type of the asset.Methods inherited from class com.luciad.fusion.tilestore.metadata.ALfnResourceMetadata.Builder
abstract_, getAbstract, getGlobalUpdateSequence, getId, getISO19115Metadata, getName, getUpdateSequence, globalUpdateSequence, id, iso19115Metadata, name, setAbstract, setId, setISO19115Metadata, setName, setUpdateSequence, updateSequence
-
Method Details
-
clearAssetParts
Clears all asset parts on the asset metadata being built.- Returns:
- this builder
- Since:
- 2014.0
-
addAssetPart
Creates a new asset part builder, which adds an asset part to the asset metadata being built.- Returns:
- a new asset part builder, never
null
- Since:
- 2014.0
-
assetParts
Sets the List of parts of the asset. The list must not be empty. Any existing parts are overwritten.- Parameters:
aAssetParts
- the parts of the asset, must not benull
or empty- Returns:
- this builder
- Since:
- 2013.0
-
setAssetParts
Deprecated.useassetParts(java.util.Collection)
instead -
assetParts
Sets the parts of the asset. Any existing parts are overwritten. Call this method without arguments to clear the asset parts.- Parameters:
aAssetParts
- the parts of the asset, must not benull
- Returns:
- this builder
- Since:
- 2013.0
-
setAssetParts
Deprecated. -
addAssetPart
Adds a part to this asset.- Parameters:
aAssetPart
- the part to be added, must not benull
- Returns:
- this builder
-
addAssetParts
Adds multiple parts to this asset.- Parameters:
aAssetParts
- the parts to be added, must nobe benull
- Returns:
- this builder
-
addAssetParts
Adds multiple parts to this asset.- Parameters:
aAssetParts
- the parts to be added, must not benull
- Returns:
- this builder
-
type
Sets the required type of the asset. If unset or if set tonull
, the default type will be used.For vector assets, the default type is
VECTOR
, which is the only allowed type.For raster assets, there is no default type and it must always be set explicitly.
As a consequence of this method, the default supported coverage types will be adjusted.
- Parameters:
aType
- a type, ornull
to indicate the default type- Returns:
- this builder
- Since:
- 2013.0
-
format
Sets the required format of the asset.- Parameters:
aFormat
- the format, must not benull
- Returns:
- this builder
- Since:
- 2013.1
-
setType
Deprecated.usetype(ELfnDataType)
instead -
supportedCoverageTypes
Sets the supported coverage types. If not set or if set tonull
, the default will be used. The default supported coverage type is a singleton list containing the asset type itself. The supported coverage types should not be empty, even though it is allowed on the API.- Parameters:
aSupportedCoverageTypes
- The supported coverage types. Usenull
to reset to default.- Returns:
- this builder
- Since:
- 2013.0
-
setSupportedCoverageTypes
Deprecated. -
supportedCoverageTypes
Sets the supported coverage types. If not set or if set tonull
, the default will be used. The default supported coverage type is a singleton list containing the asset type itself. The supported coverage types should not be empty, even though it is allowed on the API.The collection of supported coverage types which you pass as parameter is internally copied to an immutable list. Any changes you make to the collection after having called this method will have no effect on the metadata. This also means that the list of supported coverage types you get using
ALfnAssetMetadata.getSupportedCoverageTypes()
will be different instance than the one you've passed as argument to this method.- Parameters:
aSupportedCoverageTypes
- The supported coverage types. Usenull
to reset to default.- Returns:
- this builder
- Since:
- 2013.0
-
setSupportedCoverageTypes
Deprecated.usesupportedCoverageTypes(java.util.Collection)
instead -
geoReference
Sets the required geographic reference of the asset.This method may cause changes to the bounding boxes of the asset parts. They possibly need to be transformed to the new geographic reference.
- Parameters:
aGeoReference
- a geographic reference- Returns:
- this builder
- Since:
- 2013.0
-
setGeoReference
Deprecated. -
clippingShape
Sets the optional clipping shape of the asset. It defaults tonull
if unspecified.- Parameters:
aClippingShape
- a clipping shape, may benull
- Returns:
- this builder
- Since:
- 2013.0
-
setBoundingShape
Deprecated.useclippingShape(com.luciad.shape.ILcdShape)
instead -
minScaleDenominator
Sets the denominator of the minimum scale at which this asset should be used. The scale of the asset is1:denominator
.- Parameters:
aScaleDenominator
- the scale denominator of the minimum scale- Returns:
- this builder
- Since:
- 2013.0
- See Also:
-
setMinScaleDenominator
Deprecated.useminScaleDenominator(int)
instead -
maxScaleDenominator
Sets the denominator of the maximum scale at which this asset should be used. The scale of the asset is1:denominator
.- Parameters:
aScaleDenominator
- the scale denominator of the maximum scale- Returns:
- this builder
- Since:
- 2013.0
- See Also:
-
setMaxScaleDenominator
Deprecated.usemaxScaleDenominator(int)
instead -
root
Sets the root for the location and support locations.- Parameters:
aRoot
- the optional root of the asset part being built by this builder, may benull
- Returns:
- this builder
- Since:
- 2014.0
-
location
Sets the location. If there is a root, the location must include the root.- Parameters:
aLocation
- the location to set- Returns:
- this builder
- Since:
- 2014.0
-
featureTypeStyles
Sets the feature type styles of the asset part being built by this builder. If not set or if set tonull
, the default SLD feature type styles will be used, which is the aggreggate of the SLD style files next to the asset part's source files if these exists.The style will be used when fusing assets to an image coverage. It will also be used by the WMS server for coverages with asset sources in Tile Store.
- Parameters:
aFeatureTypeStyles
- the SLD feature type styles to be used, ornull
to reset to default- Returns:
- this builder
- Since:
- 2016.0
-
featureTypeStyles
Sets the feature type styles of the asset part being built by this builder. If not set or if set tonull
, the default SLD feature type styles will be used, which is the aggreggate of the SLD style files next to the asset part's source files if these exists.The style will be used when fusing assets to an image coverage. It will also be used by the WMS server for coverages with asset sources in Tile Store.
- Parameters:
aFeatureTypeStyles
- the SLD feature type styles to be used, ornull
to reset to default- Returns:
- this builder
- Since:
- 2016.0
-
getType
Gets this builder's current type.- Returns:
- the current type, possibly
null
- Since:
- 2012.0
-
getFormat
Gets this builder's current format.- Returns:
- the current format, possibly
null
- Since:
- 2012.0
-
getSupportedCoverageTypes
Gets this builder's current supported coverage types (unmodifiable).- Returns:
- the current supported coverage types, possibly
null
- Since:
- 2012.0
-
getGeoReference
Gets this builder's current geographic reference.- Returns:
- the current georeference, possibly
null
- Since:
- 2012.0
-
getAssetPartBuilders
Gets this builder's current asset part builders as an unmodifiable list. You can use this method to inspect the properties of the asset parts being built.- Returns:
- the current asset parts, possibly empty but never
null
- Since:
- 2014.0
-
getClippingShape
Gets this builder's current clipping shape.- Returns:
- the current clipping shape, possibly
null
- Since:
- 2012.0
-
getMinScaleDenominator
public final int getMinScaleDenominator()Gets this builder's current minimum scale denominator.- Returns:
- the current minimum scale denominator
- Since:
- 2012.0
-
getMaxScaleDenominator
public final int getMaxScaleDenominator()Gets this builder's current maximum scale denominator.- Returns:
- the current maximum scale denominator
- Since:
- 2012.0
-
getRoot
Gets this builder's current root.- Returns:
- the current root
- Since:
- 2014.0
-
getLocation
Gets this builder's current location.- Returns:
- the current location
- Since:
- 2014.0
-
getFeatureTypeStyles
Gets this builder's current list of feature type styles- Returns:
- the current list of feature type styles
- Since:
- 2016.0
-
build
Builds an immutable asset metadata from the current properties set on this builder. The asset metadata requires a geographic reference and a type. If none have been set, this method will throw aNullPointerException
with an appropriate message.- Specified by:
build
in classALfnResourceMetadata.Builder<B extends ALfnAssetMetadata.Builder<B,
P>> - Returns:
- an immutable asset metadata, never
null
-
assetParts(java.util.Collection)
instead