public final class TLfnData extends Object
Since a single data represents a geospatial data set, it can represent multiple files. The type of the data describes what format the data is, whereas the categories gives the general categories that the data belongs to.
Use the TLfnDataRepository
to query the data available in LuciadFusion Studio.
Use getDataSource()
and pass it to the appropriate ILcdModelDecoder.decodeSource(ILcdDataSource)
to obtain the decoded model for this data.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object aO)
Indicates whether some other object is "equal to" this
TLfnData . |
String |
getAbstractText()
Returns the abstract text describing the data.
|
Set<TLcdModelMetadata.DataCategory> |
getCategories()
Returns the data categories that the data belongs to.
|
ZonedDateTime |
getCreationTime()
Returns the date and time when the data was created.
|
Set<TLfnCustomProperty> |
getCustomProperties()
Returns the custom properties of the data.
|
ILcdDataSource |
getDataSource()
Returns the data source for the data.
|
String |
getId()
Returns the identifier of the data.
|
List<String> |
getKeywords()
Returns the list of keywords associated with the data.
|
Set<TLcdISO19103MeasureTypeCode> |
getMeasureTypeCodes()
Returns the measure type codes for the data.
|
String |
getMimeType()
Returns the mime type of the data.
|
Optional<ILcdModelReference> |
getModelReference()
Returns the model reference corresponding to the coordinate reference system of the data,
Optional.empty() is returned if the reference could not be determined. |
Optional<ILcdMultiDimensional> |
getMultiDimensional()
Returns the multi-dimensional of the data.
|
String |
getTitle()
Returns the human-readable title of the data.
|
String |
getType()
Returns the type of this data.
|
TLfnUser |
getUpdatedBy()
Returns the user that did the last update to the data.
|
ZonedDateTime |
getUpdateTime()
Returns the date and time when the data was last updated.
|
Long |
getVersion()
Returns the version of the data.
|
ILcdBounds |
getWGS84Bounds()
Returns the bounds of the data in the WGS84 reference system.
|
int |
hashCode() |
String |
toString() |
public String getId()
id
is unique among all data.public String getTitle()
public String getType()
SHP
for a shp data set.
This corresponds to ILcdModelDescriptor.getTypeName()
or TLcdModelMetadata.getFormat()
when the data has been decoded.public Set<TLcdModelMetadata.DataCategory> getCategories()
public Set<TLcdISO19103MeasureTypeCode> getMeasureTypeCodes()
TLcdISO19103MeasureTypeCodeExtension.TEMPERATURE
or TLcdISO19103MeasureTypeCodeExtension.PRESSURE
for example.
If the set contains TLcdISO19103MeasureTypeCodeExtension.TERRAIN_HEIGHT
or TLcdISO19103MeasureTypeCodeExtension.ALTITUDE
, this indicates that the data item contains elevation data.public String getMimeType()
application/json
, application/xml
, image/tiff
.public ZonedDateTime getCreationTime()
public ZonedDateTime getUpdateTime()
public TLfnUser getUpdatedBy()
public ILcdBounds getWGS84Bounds()
null
.public String getAbstractText()
public List<String> getKeywords()
public ILcdDataSource getDataSource()
Pass the data source to the appropriate ILcdModelDecoder.decodeSource(ILcdDataSource)
to obtain the decoded model for this data.
public Optional<ILcdModelReference> getModelReference()
Optional.empty()
is returned if the reference could not be determined.Optional.empty()
if the reference could not be determinedpublic Optional<ILcdMultiDimensional> getMultiDimensional()
Optional.empty()
if the data is not multi-dimensional.Optional.empty()
if the data is not multi-dimensionalpublic Set<TLfnCustomProperty> getCustomProperties()
For performance reasons, it's possible that the custom properties are not prefetched in this object. In that case, calling this method results in an additional query to fetch the custom properties. Note that the custom properties might have been changed in the database between fetching the data object and calling this method.
public Long getVersion()
The version is increased every time the data is updated, such as re-crawling the data after changes. The version can be used to determine if cache information related to the data needs to be invalidated. Store the version when the cache is created and check if the version has increased when accessing the cache.
public boolean equals(Object aO)