public abstract class MetadataExtension<T extends ParameterOutput>
extends java.lang.Object
| Constructor and Description |
|---|
MetadataExtension() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.String |
getExtensionName() |
java.util.Collection<java.lang.String> |
getExtraMetadataFieldNames(T output) |
abstract java.util.Map<java.lang.String,java.lang.Object> |
getExtras(T output,
IoParameters parameters)
Gets the extra metadata as simple
key=value mapping. |
protected boolean |
hasExtrasToReturn(T output,
IoParameters parameters) |
protected java.util.Map<java.lang.String,java.lang.Object> |
wrapSingleIntoMap(java.lang.Object metadata) |
public abstract java.lang.String getExtensionName()
public abstract java.util.Map<java.lang.String,java.lang.Object> getExtras(T output, IoParameters parameters)
Gets the extra metadata as simple key=value mapping. The
value is of kind object, so the implementation is free to put any data
structure which might make sense to serialize.
Implementation is responsible to respect selected fields from the query
which can be obtained by IoParameters.getFields().
output - the actual parameter output to get extra metadata for.parameters - I/O parameters to fine grain extra metadata assembly.public java.util.Collection<java.lang.String> getExtraMetadataFieldNames(T output)
protected boolean hasExtrasToReturn(T output, IoParameters parameters)
protected java.util.Map<java.lang.String,java.lang.Object> wrapSingleIntoMap(java.lang.Object metadata)
Copyright © 2013–2019 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.