public class GmdTransformer extends AbstractGmdTransformer implements InputTransformer
GCO_PREFIX, GML_PREFIX
Constructor and Description |
---|
GmdTransformer(MetacardType metacardType) |
GmdTransformer(MetacardType metacardType,
Supplier<com.thoughtworks.xstream.converters.Converter> converterSupplier) |
transform
public GmdTransformer(MetacardType metacardType, Supplier<com.thoughtworks.xstream.converters.Converter> converterSupplier)
public GmdTransformer(MetacardType metacardType)
public void destroy()
public LinkedHashSet<com.thoughtworks.xstream.io.path.Path> buildPaths()
public Metacard transform(InputStream inputStream) throws IOException, CatalogTransformerException
InputTransformer
Metacard
.transform
in interface InputTransformer
inputStream
- the binary InputStream
to transformMetacard
IOException
- if an I/O exception occurs when reading the InputStream
CatalogTransformerException
- if an error occurs during transformationpublic Metacard transform(InputStream inputStream, String id) throws IOException, CatalogTransformerException
InputTransformer
transform
in interface InputTransformer
inputStream
- the binary InputStream
to transformid
- the attribute value for the Metacard.ID
attribute that should be set in the
generated Metacard
Metacard
IOException
- if an I/O exception occurs when reading the InputStream
CatalogTransformerException
- if an error occurs during transformationpublic InputStream getSourceInputStream() throws IOException
IOException
public void setMetacardAttributes(MetacardImpl metacard, String id, XstreamPathValueTracker pathValueTracker)
public Metacard toMetacard(XstreamPathValueTracker pathValueTracker, String id)
public void addMetacardLanguage(XstreamPathValueTracker pathValueTracker, MetacardImpl metacard)
public void addMetacardFormat(XstreamPathValueTracker pathValueTracker, MetacardImpl metacard)
public void addMetacardCrs(XstreamPathValueTracker pathValueTracker, MetacardImpl metacard)
public void addFieldToMetacardIfPresent(XstreamPathValueTracker pathValueTracker, MetacardImpl metacard, String value, String metacardField)
public void addFieldsToMetacardIfPresent(XstreamPathValueTracker pathValueTracker, MetacardImpl metacard, String value, String metacardField)
public com.thoughtworks.xstream.io.path.Path toPath(String stringPath)
This work is licensed under a Creative Commons Attribution 4.0 International License.