Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Licensed to the Apache Software Foundation (ASF) under one or more
   * contributor license agreements.  See the NOTICE file distributed with
   * this work for additional information regarding copyright ownership.
   * The ASF licenses this file to You under the Apache License, Version 2.0
   * (the "License"); you may not use this file except in compliance with
   * the License.  You may obtain a copy of the License at
   *
   *     http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
 package org.apache.sis.internal.profile.fra;
 
AFNOR extension to ISO SecurityConstraints. This extension adds a getCitations() property citing the documents that specify the constraints. In the 2013 revision of ISO 19115, this property is available as getReferences().

The following schema fragment specifies the expected content contained within this class.

xml <complexType name="FRA_SecurityConstraints_Type"> <complexContent> <extension base="{http://www.isotc211.org/2005/gmdMD_SecurityConstraints_Type"> <sequence> <element name="citation" type="{http://www.isotc211.org/2005/gmd}CI_Citation_PropertyType" maxOccurs="unbounded" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType> }

Author(s):
Cédric Briançon (Geomatys)
Guilhem Legal (Geomatys)
Martin Desruisseaux (Geomatys)
Version:
0.4 (derived from geotk-3.00)
Since:
0.4
Module:
 
 @XmlType(name = "FRA_SecurityConstraints_Type")
 @XmlRootElement(name = "FRA_SecurityConstraints")
 public class SecurityConstraints extends DefaultSecurityConstraints {
    
For serialization purpose.
 
     private static final long serialVersionUID = 1060402314281487284L;

    
The documents that specifies the nature of the constraints.
 
     private Collection<Citationcitations;

    
Constructs an initially empty constraints.
 
     public SecurityConstraints() {
     }

    
Constructs an instance initialized to a copy of the given object. This constructor does not copy the FRA-specific properties.

Parameters:
object The metadata to copy values from, or null if none.
 
         super(object);
     }

    
Returns the documents that specifies the nature of the constraints.

Returns:
Citations to the current documents.
 
     @XmlElement(name = "citation")
     public Collection<CitationgetCitations() {
         return  = nonNullCollection(Citation.class);
     }

    
Sets the documents that specifies the nature of the constraints.

Parameters:
newValues Citation to the new documents.
 
     public void setCitations(final Collection<? extends CitationnewValues) {
          = writeCollection(newValuesCitation.class);
     }
New to GrepCode? Check out our FAQ X