Class ALfnResourceMetadata.Builder<B extends ALfnResourceMetadata.Builder<B>>
java.lang.Object
com.luciad.fusion.tilestore.metadata.ALfnResourceMetadata.Builder<B>
- Type Parameters:
B
- the builder type
- Direct Known Subclasses:
ALfnAssetMetadata.Builder
,ALfnCoverageMetadata.Builder
,TLfnThemeMetadata.Builder
- Enclosing class:
ALfnResourceMetadata
public abstract static class ALfnResourceMetadata.Builder<B extends ALfnResourceMetadata.Builder<B>>
extends Object
Abstract builder for resource metadata. A builder cannot be instantiated directly via a constructor, it must be
instantiated via one of the static factory methods on the concrete subclasses of this class.
A builder may be reused to build multiple resources, but it is not thread-safe.
- Since:
- 10.0
-
Method Summary
Modifier and TypeMethodDescriptionfinal B
Sets the optional abstract of the resource.abstract ALfnResourceMetadata
build()
Builds an immutable resource.final String
Gets this builder's current abstract.final long
Gets this builder's current last global update sequencefinal String
getId()
Gets this builder's current ID.final TLcdISO19115Metadata
Gets this builder's current ISO 19115 metadata.final String
getName()
Gets this builder's current name.final long
Gets this builder's current update sequence.final B
globalUpdateSequence
(long aGlobalUpdateSequence) Sets the global update sequence.final B
Sets the required ID of the resource.final B
iso19115Metadata
(TLcdISO19115Metadata aIso19115Metadata) Sets the optional ISO 19115 metadata of the resource.final B
Sets the optional name of the resource.final B
setAbstract
(String aAbstract) Deprecated.final B
Deprecated.useid(String)
insteadfinal B
setISO19115Metadata
(TLcdISO19115Metadata aIso19115Metadata) Deprecated.useiso19115Metadata(TLcdISO19115Metadata)
insteadfinal B
Deprecated.usename(String)
insteadfinal B
setUpdateSequence
(long aUpdateSequence) Deprecated.useupdateSequence(long)
insteadfinal B
updateSequence
(long aUpdateSequence) Sets the required update sequence (version) of the resource.
-
Method Details
-
globalUpdateSequence
Sets the global update sequence.
Note that you should normally never call this method. LuciadFusion automatically manages this number for you.
- Parameters:
aGlobalUpdateSequence
- The global update sequence- Returns:
- this builder
- See Also:
-
id
Sets the required ID of the resource. If not set, or if set tonull
, the resource will have a default ID generated fromUUID.randomUUID()
.For vector coverages, setting the ID will trigger an update of the default data model.
- Parameters:
aId
- the ID, which may benull
to reset to default- Returns:
- this builder
- Since:
- 2013.0
-
setId
Deprecated.useid(String)
instead -
name
Sets the optional name of the resource. It will benull
if unspecified.- Parameters:
aName
- the name, may benull
- Returns:
- this builder
- Since:
- 2013.0
-
setName
Deprecated.usename(String)
instead -
abstract_
Sets the optional abstract of the resource. It will benull
if unspecified. The trailing underscore in the method name is necessary to avoid conflict with the reserved Java keywordabstract
.- Parameters:
aAbstract
- the abstract, may benull
- Returns:
- this builder
- Since:
- 2013.0
-
setAbstract
Deprecated.useabstract_(String)
instead -
updateSequence
Sets the required update sequence (version) of the resource. If not set, or if set to a negative value, the resource will have the defaultALfnResourceMetadata.NEW_UPDATE_SEQUENCE
.- Parameters:
aUpdateSequence
- the update sequence, which may be negative to reset to default- Returns:
- this builder
- Since:
- 2013.0
-
setUpdateSequence
Deprecated.useupdateSequence(long)
instead -
iso19115Metadata
Sets the optional ISO 19115 metadata of the resource. It will benull
if unspecified.- Parameters:
aIso19115Metadata
- the metadata, may benull
- Returns:
- this builder
- Since:
- 2013.0
-
setISO19115Metadata
Deprecated.useiso19115Metadata(TLcdISO19115Metadata)
instead -
build
Builds an immutable resource. Note that, depending on the builder implementation, this is not necessarily a new object. Builders may optimize memory usage by returning the same objects, for instance if no fields were modified in between two subsequent calls to this method.- Returns:
- the immutable resource
- Throws:
NullPointerException
- in case one or more required fields have not been set
-
getGlobalUpdateSequence
public final long getGlobalUpdateSequence()Gets this builder's current last global update sequence- Returns:
- the current last global update sequence
- Since:
- 2015.0
-
getId
Gets this builder's current ID.- Returns:
- the current ID, never
null
- Since:
- 2012.0
-
getName
Gets this builder's current name.- Returns:
- the current name, possibly
null
- Since:
- 2012.0
-
getAbstract
Gets this builder's current abstract.- Returns:
- the current abstract, possibly
null
- Since:
- 2012.0
-
getUpdateSequence
public final long getUpdateSequence()Gets this builder's current update sequence.- Returns:
- the current update sequence, which is never negative
- Since:
- 2012.0
-
getISO19115Metadata
Gets this builder's current ISO 19115 metadata.- Returns:
- the current ISO 19115 metadata, possibly
null
- Since:
- 2012.0
-
abstract_(String)
instead