public abstract static class ALfnAssetMetadata.Builder<B extends ALfnAssetMetadata.Builder<B,P>,P extends ALfnAssetMetadata.AssetPart> extends ALfnResourceMetadata.Builder<B>
Modifier and Type | Method and Description |
---|---|
abstract ALfnAssetMetadata.AssetPart.Builder |
addAssetPart()
Creates a new asset part builder, which adds an asset part to the asset metadata being built.
|
B |
addAssetPart(P aAssetPart)
Adds a part to this asset.
|
B |
addAssetParts(Collection<P> aAssetParts)
Adds multiple parts to this asset.
|
B |
addAssetParts(P... aAssetParts)
Adds multiple parts to this asset.
|
B |
assetParts(Collection<P> aAssetParts)
Sets the List of parts of the asset.
|
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.
|
B |
clearAssetParts()
Clears all asset parts on the asset metadata being built.
|
B |
clippingShape(ILcdShape aClippingShape)
Sets the optional clipping shape of the asset.
|
B |
featureTypeStyles(Collection<? extends TLcdSLDFeatureTypeStyle> aFeatureTypeStyles)
Sets the feature type styles of the asset part being built by this builder.
|
B |
featureTypeStyles(TLcdSLDFeatureTypeStyle... aFeatureTypeStyles)
Sets the feature type styles of the asset part being built by this builder.
|
B |
format(String aFormat)
Sets the required format of the asset.
|
B |
geoReference(ILcdGeoReference aGeoReference)
Sets the required geographic reference of the asset.
|
List<ALfnAssetMetadata.AssetPart.Builder> |
getAssetPartBuilders()
Gets this builder's current asset part builders as an unmodifiable list.
|
ILcdShape |
getClippingShape()
Gets this builder's current clipping shape.
|
List<TLcdSLDFeatureTypeStyle> |
getFeatureTypeStyles()
Gets this builder's current list of feature type styles
|
String |
getFormat()
Gets this builder's current format.
|
ILcdGeoReference |
getGeoReference()
Gets this builder's current geographic reference.
|
URI |
getLocation()
Gets this builder's current location.
|
int |
getMaxScaleDenominator()
Gets this builder's current maximum scale denominator.
|
int |
getMinScaleDenominator()
Gets this builder's current minimum scale denominator.
|
URI |
getRoot()
Gets this builder's current root.
|
List<ELfnDataType> |
getSupportedCoverageTypes()
Gets this builder's current supported coverage types (unmodifiable).
|
ELfnDataType |
getType()
Gets this builder's current type.
|
B |
location(URI aLocation)
Sets the location.
|
B |
maxScaleDenominator(int aScaleDenominator)
Sets the denominator of the maximum scale at which this asset should be used.
|
B |
minScaleDenominator(int aScaleDenominator)
Sets the denominator of the minimum scale at which this asset should be used.
|
B |
root(URI aRoot)
Sets the root for the location and support locations.
|
B |
setAssetParts(Collection<P> aAssetParts)
Deprecated.
use
assetParts(java.util.Collection) instead |
B |
setAssetParts(P... aAssetParts)
Deprecated.
|
B |
setBoundingShape(ILcdShape aBoundingShape)
Deprecated.
use
clippingShape(com.luciad.shape.ILcdShape) instead |
B |
setGeoReference(ILcdGeoReference aGeoReference)
Deprecated.
|
B |
setMaxScaleDenominator(int aScaleDenominator)
Deprecated.
use
maxScaleDenominator(int) instead |
B |
setMinScaleDenominator(int aScaleDenominator)
Deprecated.
use
minScaleDenominator(int) instead |
B |
setSupportedCoverageTypes(Collection<ELfnDataType> aSupportedCoverageTypes)
Deprecated.
use
supportedCoverageTypes(java.util.Collection) instead |
B |
setSupportedCoverageTypes(ELfnDataType... aSupportedCoverageTypes)
Deprecated.
|
B |
setType(ELfnDataType aType)
Deprecated.
use
type(ELfnDataType) instead |
B |
supportedCoverageTypes(Collection<ELfnDataType> aSupportedCoverageTypes)
Sets the supported coverage types.
|
B |
supportedCoverageTypes(ELfnDataType... aSupportedCoverageTypes)
Sets the supported coverage types.
|
B |
type(ELfnDataType aType)
Sets the required type of the asset.
|
abstract_, getAbstract, getGlobalUpdateSequence, getId, getISO19115Metadata, getName, getUpdateSequence, globalUpdateSequence, id, iso19115Metadata, name, setAbstract, setId, setISO19115Metadata, setName, setUpdateSequence, updateSequence
public final B clearAssetParts()
public abstract ALfnAssetMetadata.AssetPart.Builder addAssetPart()
null
public final B assetParts(Collection<P> aAssetParts)
aAssetParts
- the parts of the asset, must not be null
or emptypublic final B setAssetParts(Collection<P> aAssetParts)
assetParts(java.util.Collection)
insteadpublic final B assetParts(P... aAssetParts)
aAssetParts
- the parts of the asset, must not be null
public final B setAssetParts(P... aAssetParts)
assetParts(com.luciad.fusion.tilestore.metadata.ALfnAssetMetadata.AssetPart[])
insteadpublic final B addAssetPart(P aAssetPart)
aAssetPart
- the part to be added, must not be null
public final B addAssetParts(Collection<P> aAssetParts)
aAssetParts
- the parts to be added, must nobe be null
public final B addAssetParts(P... aAssetParts)
aAssetParts
- the parts to be added, must not be null
public B type(ELfnDataType aType)
null
, 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.
aType
- a type, or null
to indicate the default typepublic final B format(String aFormat)
aFormat
- the format, must not be null
public final B setType(ELfnDataType aType)
type(ELfnDataType)
insteadpublic final B supportedCoverageTypes(ELfnDataType... aSupportedCoverageTypes)
null
, 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.aSupportedCoverageTypes
- The supported coverage types. Use null
to reset to default.public final B setSupportedCoverageTypes(ELfnDataType... aSupportedCoverageTypes)
supportedCoverageTypes(com.luciad.fusion.tilestore.ELfnDataType...)
insteadpublic final B supportedCoverageTypes(Collection<ELfnDataType> aSupportedCoverageTypes)
null
, 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.
aSupportedCoverageTypes
- The supported coverage types. Use null
to reset to default.public final B setSupportedCoverageTypes(Collection<ELfnDataType> aSupportedCoverageTypes)
supportedCoverageTypes(java.util.Collection)
insteadpublic final B geoReference(ILcdGeoReference aGeoReference)
This method may cause changes to the bounding boxes of the asset parts. They possibly need to be transformed to the new geographic reference.
aGeoReference
- a geographic referencepublic final B setGeoReference(ILcdGeoReference aGeoReference)
geoReference(com.luciad.reference.ILcdGeoReference)
insteadpublic final B clippingShape(ILcdShape aClippingShape)
null
if unspecified.aClippingShape
- a clipping shape, may be null
public final B setBoundingShape(ILcdShape aBoundingShape)
clippingShape(com.luciad.shape.ILcdShape)
insteadpublic final B minScaleDenominator(int aScaleDenominator)
1:denominator
.aScaleDenominator
- the scale denominator of the minimum scaleALfnAssetMetadata.getMinScaleDenominator()
public final B setMinScaleDenominator(int aScaleDenominator)
minScaleDenominator(int)
insteadpublic final B maxScaleDenominator(int aScaleDenominator)
1:denominator
.aScaleDenominator
- the scale denominator of the maximum scaleALfnAssetMetadata.getMaxScaleDenominator()
public final B setMaxScaleDenominator(int aScaleDenominator)
maxScaleDenominator(int)
insteadpublic final B root(URI aRoot)
aRoot
- the optional root of the asset part being built by this builder, may be null
public final B location(URI aLocation)
aLocation
- the location to setpublic B featureTypeStyles(TLcdSLDFeatureTypeStyle... aFeatureTypeStyles)
null
, 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.
aFeatureTypeStyles
- the SLD feature type styles to be used, or null
to reset to defaultpublic B featureTypeStyles(Collection<? extends TLcdSLDFeatureTypeStyle> aFeatureTypeStyles)
null
, 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.
aFeatureTypeStyles
- the SLD feature type styles to be used, or null
to reset to defaultpublic final ELfnDataType getType()
null
public final String getFormat()
null
public final List<ELfnDataType> getSupportedCoverageTypes()
null
public final ILcdGeoReference getGeoReference()
null
public final List<ALfnAssetMetadata.AssetPart.Builder> getAssetPartBuilders()
null
public final ILcdShape getClippingShape()
null
public final int getMinScaleDenominator()
public final int getMaxScaleDenominator()
public final URI getRoot()
public final URI getLocation()
public final List<TLcdSLDFeatureTypeStyle> getFeatureTypeStyles()
public abstract ALfnAssetMetadata build()
NullPointerException
with an appropriate message.build
in class ALfnResourceMetadata.Builder<B extends ALfnAssetMetadata.Builder<B,P>>
null