/*$************************************************************************************************
**
** $Id: Restriction.java 831 2006-05-01 00:27:23Z Desruisseaux $
**
** $URL: http://svn.code.sf.net/p/geoapi/code/branches/2.0.x/geoapi/src/main/java/org/opengis/metadata/constraint/Restriction.java $
**
** Copyright (C) 2004-2005 Open GIS Consortium, Inc.
** All Rights Reserved. http://www.opengis.org/legal/
**
*************************************************************************************************/
package org.opengis.metadata.constraint;
// J2SE directdependencies
import java.util.List;
import java.util.ArrayList;
// OpenGIS direct dependencies
import org.opengis.util.CodeList;
// Annotations
import org.opengis.annotation.UML;
import static org.opengis.annotation.Obligation.*;
import static org.opengis.annotation.Specification.*;
/**
* Limitation(s) placed upon the access or use of the data.
*
* @version Abstract specification 5.0
* @author Martin Desruisseaux (IRD)
* @since GeoAPI 2.0
*/
@UML(identifier="MD_RestrictionCode", specification=ISO_19115)
public final class Restriction extends CodeList {
/**
* Serial number for compatibility with different versions.
*/
private static final long serialVersionUID = 7949159742645339894L;
/**
* List of all enumerations of this type.
* Must be declared before any enum declaration.
*/
private static final List VALUES = new ArrayList(8);
/**
* Exclusive right to the publication, production, or sale of the rights to a literary,
* dramatic, musical, or artistic work, or to the use of a commercial print or label,
* granted by law for a specified period of time to an author, composer, artist, distributor.
*/
@UML(identifier="copyright", obligation=CONDITIONAL, specification=ISO_19115)
public static final Restriction COPYRIGHT = new Restriction("COPYRIGHT");
/**
* Government has granted exclusive right to make, sell, use or license an invention
* or discovery.
*/
@UML(identifier="patent", obligation=CONDITIONAL, specification=ISO_19115)
public static final Restriction PATENT = new Restriction("PATENT");
/**
* Produced or sold information awaiting a patent.
*/
@UML(identifier="patentPending", obligation=CONDITIONAL, specification=ISO_19115)
public static final Restriction PATENT_PENDING = new Restriction("PATENT_PENDING");
/**
* A name, symbol, or other device identifying a product, officially registered and
* legally restricted to the use of the owner or manufacturer.
*/
@UML(identifier="trademark", obligation=CONDITIONAL, specification=ISO_19115)
public static final Restriction TRADEMARK = new Restriction("TRADEMARK");
/**
* Formal permission to do something.
*/
@UML(identifier="license", obligation=CONDITIONAL, specification=ISO_19115)
public static final Restriction LICENSE = new Restriction("LICENSE");
/**
* Rights to financial benefit from and control of distribution of non-tangible property
* that is a result of creativity.
*/
@UML(identifier="intellectualPropertyRights", obligation=CONDITIONAL, specification=ISO_19115)
public static final Restriction INTELLECTUAL_PROPERTY_RIGHTS = new Restriction("INTELLECTUAL_PROPERTY_RIGHTS");
/**
* Withheld from general circulation or disclosure.
*/
@UML(identifier="restricted", obligation=CONDITIONAL, specification=ISO_19115)
public static final Restriction RESTRICTED = new Restriction("RESTRICTED");
/**
* Limitation not listed.
*/
@UML(identifier="otherRestictions", obligation=CONDITIONAL, specification=ISO_19115)
public static final Restriction OTHER_RESTRICTIONS = new Restriction("OTHER_RESTRICTIONS");
/**
* Constructs an enum with the given name. The new enum is
* automatically added to the list returned by {@link #values}.
*
* @param name The enum name. This name must not be in use by an other enum of this type.
*/
public Restriction(final String name) {
super(name, VALUES);
}
/**
* Returns the list of {@code Restriction}s.
*/
public static Restriction[] values() {
synchronized (VALUES) {
return (Restriction[]) VALUES.toArray(new Restriction[VALUES.size()]);
}
}
/**
* Returns the list of enumerations of the same kind than this enum.
*/
public /*{Restriction}*/ CodeList[] family() {
return values();
}
}
Ads help maintain this website.