B
- the builder typepublic abstract static class ALfnResourceMetadata.Builder<B extends ALfnResourceMetadata.Builder<B>> extends Object
Modifier and Type | Method and Description |
---|---|
B |
abstract_(String aAbstract)
Sets the optional abstract of the resource.
|
abstract ALfnResourceMetadata |
build()
Builds an immutable resource.
|
String |
getAbstract()
Gets this builder's current abstract.
|
long |
getGlobalUpdateSequence()
Gets this builder's current last global update sequence
|
String |
getId()
Gets this builder's current ID.
|
TLcdISO19115Metadata |
getISO19115Metadata()
Gets this builder's current ISO 19115 metadata.
|
String |
getName()
Gets this builder's current name.
|
long |
getUpdateSequence()
Gets this builder's current update sequence.
|
B |
globalUpdateSequence(long aGlobalUpdateSequence)
Sets the global update sequence.
|
B |
id(String aId)
Sets the required ID of the resource.
|
B |
iso19115Metadata(TLcdISO19115Metadata aIso19115Metadata)
Sets the optional ISO 19115 metadata of the resource.
|
B |
name(String aName)
Sets the optional name of the resource.
|
B |
setAbstract(String aAbstract)
Deprecated.
use
abstract_(String) instead |
B |
setId(String aId)
Deprecated.
use
id(String) instead |
B |
setISO19115Metadata(TLcdISO19115Metadata aIso19115Metadata)
Deprecated.
use
iso19115Metadata(TLcdISO19115Metadata) instead |
B |
setName(String aName)
Deprecated.
use
name(String) instead |
B |
setUpdateSequence(long aUpdateSequence)
Deprecated.
use
updateSequence(long) instead |
B |
updateSequence(long aUpdateSequence)
Sets the required update sequence (version) of the resource.
|
public final B globalUpdateSequence(long aGlobalUpdateSequence)
Sets the global update sequence.
Note that you should normally never call this method. LuciadFusion automatically manages this number for you.
aGlobalUpdateSequence
- The global update sequenceALfnResourceMetadata.getGlobalUpdateSequence()
public final B id(String aId)
null
, the resource will have a default ID generated from UUID.randomUUID()
.
For vector coverages, setting the ID will trigger an update of the default data model.
aId
- the ID, which may be null
to reset to defaultpublic final B setId(String aId)
id(String)
insteadpublic final B name(String aName)
null
if unspecified.aName
- the name, may be null
public final B setName(String aName)
name(String)
insteadpublic final B abstract_(String aAbstract)
null
if unspecified.
The trailing underscore in the method name is necessary to avoid conflict with the reserved Java keyword abstract
.aAbstract
- the abstract, may be null
public final B setAbstract(String aAbstract)
abstract_(String)
insteadpublic final B updateSequence(long aUpdateSequence)
ALfnResourceMetadata.NEW_UPDATE_SEQUENCE
.aUpdateSequence
- the update sequence, which may be negative to reset to defaultpublic final B setUpdateSequence(long aUpdateSequence)
updateSequence(long)
insteadpublic final B iso19115Metadata(TLcdISO19115Metadata aIso19115Metadata)
null
if unspecified.aIso19115Metadata
- the metadata, may be null
public final B setISO19115Metadata(TLcdISO19115Metadata aIso19115Metadata)
iso19115Metadata(TLcdISO19115Metadata)
insteadpublic abstract ALfnResourceMetadata build()
NullPointerException
- in case one or more required fields have not been setpublic final long getGlobalUpdateSequence()
public final String getId()
null
public final String getName()
null
public final String getAbstract()
null
public final long getUpdateSequence()
public final TLcdISO19115Metadata getISO19115Metadata()
null