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.BuilderCreates a new asset part builder, which adds an asset part to the asset metadata being built.final BaddAssetPart(P aAssetPart) Adds a part to this asset.final BaddAssetParts(Collection<P> aAssetParts) Adds multiple parts to this asset.final BaddAssetParts(P... aAssetParts) Adds multiple parts to this asset.final BassetParts(Collection<P> aAssetParts) Sets the List of parts of the asset.final BassetParts(P... aAssetParts) Sets the parts of the asset.abstract ALfnAssetMetadatabuild()Builds an immutable asset metadata from the current properties set on this builder.final BClears all asset parts on the asset metadata being built.final BclippingShape(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 BSets the required format of the asset.final BgeoReference(ILcdGeoReference aGeoReference) Sets the required geographic reference of the asset.Gets this builder's current asset part builders as an unmodifiable list.final ILcdShapeGets this builder's current clipping shape.final List<TLcdSLDFeatureTypeStyle> Gets this builder's current list of feature type stylesfinal StringGets this builder's current format.final ILcdGeoReferenceGets this builder's current geographic reference.final URIGets this builder's current location.final intGets this builder's current maximum scale denominator.final intGets this builder's current minimum scale denominator.final URIgetRoot()Gets this builder's current root.final List<ELfnDataType> Gets this builder's current supported coverage types (unmodifiable).final ELfnDataTypegetType()Gets this builder's current type.final BSets the location.final BmaxScaleDenominator(int aScaleDenominator) Sets the denominator of the maximum scale at which this asset should be used.final BminScaleDenominator(int aScaleDenominator) Sets the denominator of the minimum scale at which this asset should be used.final BSets the root for the location and support locations.final BsetAssetParts(Collection<P> aAssetParts) Deprecated.final BsetAssetParts(P... aAssetParts) Deprecated.final BsetBoundingShape(ILcdShape aBoundingShape) Deprecated.useclippingShape(com.luciad.shape.ILcdShape)insteadfinal BsetGeoReference(ILcdGeoReference aGeoReference) Deprecated.final BsetMaxScaleDenominator(int aScaleDenominator) Deprecated.usemaxScaleDenominator(int)insteadfinal BsetMinScaleDenominator(int aScaleDenominator) Deprecated.useminScaleDenominator(int)insteadfinal BsetSupportedCoverageTypes(ELfnDataType... aSupportedCoverageTypes) Deprecated.final BsetSupportedCoverageTypes(Collection<ELfnDataType> aSupportedCoverageTypes) Deprecated.usesupportedCoverageTypes(java.util.Collection)insteadfinal BsetType(ELfnDataType aType) Deprecated.usetype(ELfnDataType)insteadfinal BsupportedCoverageTypes(ELfnDataType... aSupportedCoverageTypes) Sets the supported coverage types.final BsupportedCoverageTypes(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 benullor 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, ornullto 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. Usenullto 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. Usenullto 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 tonullif 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, ornullto 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, ornullto 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 aNullPointerExceptionwith an appropriate message.- Specified by:
buildin classALfnResourceMetadata.Builder<B extends ALfnAssetMetadata.Builder<B,P>> - Returns:
- an immutable asset metadata, never
null
-
assetParts(java.util.Collection)instead