org.geotoolkit.internal.jaxb.code.MD_ClassificationCode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geotk-xml-base Show documentation
Show all versions of geotk-xml-base Show documentation
Basic utilities for XML marshalling and unmarshalling. Those utilities are built on
top of the JAXB framework.
The newest version!
/*
* Geotoolkit.org - An Open Source Java GIS Toolkit
* http://www.geotoolkit.org
*
* (C) 2008-2012, Open Source Geospatial Foundation (OSGeo)
* (C) 2009-2012, 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.code;
import javax.xml.bind.annotation.XmlElement;
import org.opengis.metadata.constraint.Classification;
/**
* JAXB adapter for {@link Classification}, in order to integrate the value in an element
* complying with ISO-19139 standard. See package documentation for more information about
* the handling of {@code CodeList} in ISO-19139.
*
* @author Cédric Briançon (Geomatys)
* @version 3.05
*
* @since 2.5
* @module
*/
public final class MD_ClassificationCode extends CodeListAdapter {
/**
* Ensures that the adapted code list class is loaded.
*/
static {
ensureClassLoaded(Classification.class);
}
/**
* Empty constructor for JAXB only.
*/
public MD_ClassificationCode() {
}
/**
* Creates a new adapter for the given proxy.
*/
private MD_ClassificationCode(final CodeListProxy proxy) {
super(proxy);
}
/**
* {@inheritDoc}
*/
@Override
protected MD_ClassificationCode wrap(CodeListProxy proxy) {
return new MD_ClassificationCode(proxy);
}
/**
* {@inheritDoc}
*/
@Override
protected Class getCodeListClass() {
return Classification.class;
}
/**
* Invoked by JAXB on marshalling.
*
* @return The value to be marshalled.
*/
@Override
@XmlElement(name = "MD_ClassificationCode")
public CodeListProxy getElement() {
return proxy;
}
/**
* Invoked by JAXB on unmarshalling.
*
* @param proxy The unmarshalled value.
*/
public void setElement(final CodeListProxy proxy) {
this.proxy = proxy;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy