org.geotoolkit.internal.jaxb.code.MD_PixelOrientationCode 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.spatial.PixelOrientation;
/**
* JAXB adapter for {@link PixelOrientation}, 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.18
*
* @since 2.5
* @module
*/
public final class MD_PixelOrientationCode
extends CodeListAdapter
{
/**
* Ensures that the adapted code list class is loaded.
*/
static {
ensureClassLoaded(PixelOrientation.class);
}
/**
* Empty constructor for JAXB only.
*/
public MD_PixelOrientationCode() {
}
/**
* Creates a new adapter for the given proxy.
*/
private MD_PixelOrientationCode(final CodeListProxy proxy) {
super(proxy);
}
/**
* {@inheritDoc}
*/
@Override
protected MD_PixelOrientationCode wrap(CodeListProxy proxy) {
return new MD_PixelOrientationCode(proxy);
}
/**
* {@inheritDoc}
*/
@Override
protected Class getCodeListClass() {
return PixelOrientation.class;
}
/**
* Returns {@code true} since this code list is actually an enum.
*
* @since 3.18
*/
@Override
protected boolean isEnum() {
return true;
}
/**
* Invoked by JAXB on marshalling.
*
* @return The value to be marshalled.
*/
@Override
@XmlElement(name = "MD_PixelOrientationCode")
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