All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opengis.annotation.Obligation Maven / Gradle / Ivy

There is a newer version: 24.2-oss84-1
Show newest version
/*
 *    GeoTools - The Open Source Java GIS Toolkit
 *    http://geotools.org
 *
 *    (C) 2011, Open Source Geospatial Foundation (OSGeo)
 *    (C) 2003-2005 Open Geospatial Consortium Inc.
 *
 *    All Rights Reserved. http://www.opengis.org/legal/
 */
package org.opengis.annotation;

import static org.opengis.annotation.Specification.*;

/**
 * Obligation of the element or entity. The enum values declared here are an exact copy of the code
 * list elements declared in the {@link org.opengis.metadata.Obligation} code list from the metadata
 * package.
 *
 * @version ISO 19115
 * @author Martin Desruisseaux (IRD)
 * @since GeoAPI 2.0
 */
@UML(identifier = "MD_ObligationCode", specification = ISO_19115)
public enum Obligation {
    /** Element is required when a specific condition is met. */
    /// @UML(identifier="conditional", obligation=CONDITIONAL, specification=ISO_19115)
    CONDITIONAL,

    /** Element is not required. */
    @UML(identifier = "optional", obligation = CONDITIONAL, specification = ISO_19115)
    OPTIONAL,

    /** Element is always required. */
    @UML(identifier = "mandatory", obligation = CONDITIONAL, specification = ISO_19115)
    MANDATORY,

    /**
     * The element should always be {@code null}. This obligation code is used only when a
     * subinterface overrides an association and force it to a {@code null} value. An example is
     * {@link org.opengis.referencing.datum.TemporalDatum#getAnchorPoint}.
     */
    @Extension
    FORBIDDEN
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy