org.geotoolkit.internal.jaxb.metadata.direct.MetadataAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geotk-metadata Show documentation
Show all versions of geotk-metadata Show documentation
Implementations of metadata derived from ISO 19115. This module provides both an implementation
of the metadata interfaces defined in GeoAPI, and a framework for handling those metadata through
Java reflection.
/*
* Geotoolkit.org - An Open Source Java GIS Toolkit
* http://www.geotoolkit.org
*
* (C) 2010-2011, Open Source Geospatial Foundation (OSGeo)
* (C) 2010-2011, Geomatys
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation;
* version 2.1 of the License.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*/
package org.geotoolkit.internal.jaxb.metadata.direct;
import javax.xml.bind.annotation.adapters.XmlAdapter;
/**
* Base class for adapters from GeoAPI interfaces to their Geotk implementation.
*
* @param The GeoAPI interface being adapted.
* @param The Geotk class implementing the interface.
*
* @author Martin Desruisseaux (Geomatys)
* @version 3.15
*
* @since 3.15
* @module
*/
public abstract class MetadataAdapter
extends XmlAdapter
{
/**
* Empty constructor for subclasses only.
*/
protected MetadataAdapter() {
}
/**
* Returns the given object unchanged, to be marshalled directly.
*
* @param value The metadata value.
* @return The value to marshall (which is the same).
*/
@Override
public final BoundType unmarshal(final ValueType value) {
return value;
}
}