org.geotoolkit.internal.jaxb.code.MI_PolarizationOrientationCode 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.content.PolarizationOrientation;
import org.geotoolkit.xml.Namespaces;
/**
* JAXB adapter for {@link PolarizationOrientation}, in order to integrate the value in an element respecting
* the ISO-19139 standard. See package documentation for more information about the handling
* of {@code CodeList} in ISO-19139.
*
* @author Cédric Briançon (Geomatys)
* @author Guilhem Legal (Geomatys)
* @version 3.17
*
* @since 3.02
* @module
*/
public final class MI_PolarizationOrientationCode
extends CodeListAdapter
{
/**
* Ensures that the adapted code list class is loaded.
*/
static {
ensureClassLoaded(PolarizationOrientation.class);
}
/**
* Empty constructor for JAXB only.
*/
public MI_PolarizationOrientationCode() {
}
/**
* Creates a new adapter for the given proxy.
*/
private MI_PolarizationOrientationCode(final CodeListProxy proxy) {
super(proxy);
}
/**
* {@inheritDoc}
*/
@Override
protected MI_PolarizationOrientationCode wrap(CodeListProxy proxy) {
return new MI_PolarizationOrientationCode(proxy);
}
/**
* {@inheritDoc}
*/
@Override
protected Class getCodeListClass() {
return PolarizationOrientation.class;
}
/**
* Invoked by JAXB on marshalling.
*
* @return The value to be marshalled.
*/
@Override
@XmlElement(name = "MI_PolarizationOrientationCode", namespace = Namespaces.GMI)
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