org.geotoolkit.metadata.fra.FRA_Constraints Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geotk-metadata-fra Show documentation
Show all versions of geotk-metadata-fra Show documentation
French extensions to ISO metadata. Those extensions are standardized by AFNOR
(Association Française de Normalisation). All extended classes begin with the
FRA_ prefix.
/*
* Geotoolkit.org - An Open Source Java GIS Toolkit
* http://www.geotoolkit.org
*
* (C) 2008-2011, Open Source Geospatial Foundation (OSGeo)
* (C) 2009-2011, 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.metadata.fra;
import java.util.Collection;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import net.jcip.annotations.ThreadSafe;
import org.opengis.metadata.citation.Citation;
import org.opengis.metadata.constraint.Constraints;
import org.geotoolkit.metadata.iso.constraint.DefaultConstraints;
/**
* AFNOR extension to ISO {@link Constraints}.
* The following schema fragment specifies the expected content contained within this class.
*
* {@preformat xml
*
*
*
*
*
*
*
*
*
* }
*
* @author Cédric Briançon (Geomatys)
* @author Guilhem Legal (Geomatys)
* @author Martin Desruisseaux (Geomatys)
* @version 3.03
*
* @since 3.00
* @module
*/
@ThreadSafe
@XmlType(name = "FRA_Constraints_Type")
@XmlRootElement(name= "FRA_Constraints")
public class FRA_Constraints extends DefaultConstraints {
/**
* For serialization purpose.
*/
private static final long serialVersionUID = -5558935205709762055L;
/**
* The documents that specifies the nature of the constraints.
*/
private Collection citations;
/**
* Constructs an initially empty constraints.
*/
public FRA_Constraints() {
}
/**
* Constructs a metadata entity initialized with the values from the specified metadata.
*
* @param source The metadata to copy.
*/
public FRA_Constraints(final Constraints source) {
super(source);
}
/**
* Returns the documents that specifies the nature of the constraints.
*
* @return Citations to the current documents.
*/
@XmlElement(name = "citation")
public synchronized Collection getCitations() {
return citations = nonNullCollection(citations, Citation.class);
}
/**
* Sets the documents that specifies the nature of the constraints.
*
* @param newValues Citation to the new documents.
*/
public synchronized void setCitations(final Collection extends Citation> newValues) {
citations = copyCollection(newValues, citations, Citation.class);
}
}