You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sis.apache.org by de...@apache.org on 2013/08/26 16:24:43 UTC
svn commit: r1517543 [2/2] - in /sis/branches/JDK7: ./
core/sis-metadata/src/main/java/org/apache/sis/internal/jaxb/metadata/
core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/
core/sis-metadata/src/test/java/org/apache/sis/metadata/ core/sis...
Added: sis/branches/JDK7/profiles/sis-french-profile/src/main/java/org/apache/sis/profile/fra/FRA_IndirectReferenceSystem.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/profiles/sis-french-profile/src/main/java/org/apache/sis/profile/fra/FRA_IndirectReferenceSystem.java?rev=1517543&view=auto
==============================================================================
--- sis/branches/JDK7/profiles/sis-french-profile/src/main/java/org/apache/sis/profile/fra/FRA_IndirectReferenceSystem.java (added)
+++ sis/branches/JDK7/profiles/sis-french-profile/src/main/java/org/apache/sis/profile/fra/FRA_IndirectReferenceSystem.java [UTF-8] Mon Aug 26 14:24:42 2013
@@ -0,0 +1,93 @@
+/*
+ * 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.profile.fra;
+
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.XmlRootElement;
+import org.opengis.metadata.citation.Citation;
+import org.opengis.referencing.ReferenceSystem;
+import org.opengis.referencing.ReferenceIdentifier;
+import org.apache.sis.metadata.iso.ImmutableIdentifier;
+import org.apache.sis.internal.jaxb.metadata.ReferenceSystemMetadata;
+
+
+/**
+ * AFNOR extension to ISO {@link ReferenceSystem}.
+ * The following schema fragment specifies the expected content contained within this class.
+ *
+ * {@preformat xml
+ * <complexType name="FRA_IndirectReferenceSystem_Type">
+ * <complexContent>
+ * <extension base="{http://www.isotc211.org/2005/gmd}MD_ReferenceSystem_Type">
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * }
+ *
+ * @author Cédric Briançon (Geomatys)
+ * @author Guilhem Legal (Geomatys)
+ * @version 0.4 (derived from geotk-3.00)
+ * @since 0.4
+ * @module
+ */
+@XmlType(name = "FRA_IndirectReferenceSystem_Type")
+@XmlRootElement(name= "FRA_IndirectReferenceSystem")
+public class FRA_IndirectReferenceSystem extends ReferenceSystemMetadata {
+ /**
+ * For serialization purpose.
+ */
+ private static final long serialVersionUID = 177802130150613930L;
+
+ /**
+ * Empty constructor for JAXB.
+ */
+ private FRA_IndirectReferenceSystem() {
+ }
+
+ /**
+ * Creates a new reference system from the given one.
+ *
+ * @param crs The reference system to partially copy.
+ */
+ public FRA_IndirectReferenceSystem(final ReferenceSystem crs) {
+ super(crs);
+ }
+
+ /**
+ * Creates a new reference system from the given code.
+ *
+ * @param identifier The reference system identifier.
+ */
+ public FRA_IndirectReferenceSystem(final ReferenceIdentifier identifier) {
+ super(identifier);
+ }
+
+ /**
+ * Creates a new reference system from the specified code and authority.
+ *
+ * @param authority
+ * Organization or party responsible for definition and maintenance of the code space or code.
+ * @param codespace
+ * Name or identifier of the person or organization responsible for namespace.
+ * This is often an abbreviation of the authority name.
+ * @param code
+ * Identifier code or name, optionally from a controlled list or pattern defined by a code space.
+ */
+ public FRA_IndirectReferenceSystem(final Citation authority, final String codespace, final String code) {
+ super(new ImmutableIdentifier(authority, codespace, code));
+ }
+}
Propchange: sis/branches/JDK7/profiles/sis-french-profile/src/main/java/org/apache/sis/profile/fra/FRA_IndirectReferenceSystem.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: sis/branches/JDK7/profiles/sis-french-profile/src/main/java/org/apache/sis/profile/fra/FRA_IndirectReferenceSystem.java
------------------------------------------------------------------------------
svn:mime-type = text/plain;charset=UTF-8
Added: sis/branches/JDK7/profiles/sis-french-profile/src/main/java/org/apache/sis/profile/fra/FRA_LegalConstraints.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/profiles/sis-french-profile/src/main/java/org/apache/sis/profile/fra/FRA_LegalConstraints.java?rev=1517543&view=auto
==============================================================================
--- sis/branches/JDK7/profiles/sis-french-profile/src/main/java/org/apache/sis/profile/fra/FRA_LegalConstraints.java (added)
+++ sis/branches/JDK7/profiles/sis-french-profile/src/main/java/org/apache/sis/profile/fra/FRA_LegalConstraints.java [UTF-8] Mon Aug 26 14:24:42 2013
@@ -0,0 +1,97 @@
+/*
+ * 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.profile.fra;
+
+import java.util.Collection;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import org.opengis.metadata.citation.Citation;
+import org.opengis.metadata.constraint.LegalConstraints;
+import org.apache.sis.metadata.iso.constraint.DefaultLegalConstraints;
+
+
+/**
+ * AFNOR extension to ISO {@link LegalConstraints}.
+ * The following schema fragment specifies the expected content contained within this class.
+ *
+ * {@preformat xml
+ * <complexType name="FRA_LegalConstraints_Type">
+ * <complexContent>
+ * <extension base="{http://www.isotc211.org/2005/gmd}MD_LegalConstraints_Type">
+ * <sequence>
+ * <element name="citation" type="{http://www.isotc211.org/2005/gmd}CI_Citation_PropertyType" maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * }
+ *
+ * @author Cédric Briançon (Geomatys)
+ * @author Guilhem Legal (Geomatys)
+ * @author Martin Desruisseaux (Geomatys)
+ * @version 0.4 (derived from geotk-3.00)
+ * @since 0.4
+ * @module
+ */
+@XmlType(name = "FRA_LegalConstraints_Type")
+@XmlRootElement(name="FRA_LegalConstraints")
+public class FRA_LegalConstraints extends DefaultLegalConstraints {
+ /**
+ * For serialization purpose.
+ */
+ private static final long serialVersionUID = -4139267154783806229L;
+
+ /**
+ * The documents that specifies the nature of the constraints.
+ */
+ private Collection<Citation> citations;
+
+ /**
+ * Constructs an initially empty constraints.
+ */
+ public FRA_LegalConstraints() {
+ }
+
+ /**
+ * Constructs a metadata entity initialized with the values from the specified metadata.
+ *
+ * @param source The metadata to copy.
+ */
+ public FRA_LegalConstraints(final LegalConstraints source) {
+ super(source);
+ }
+
+ /**
+ * Returns the documents that specifies the nature of the constraints.
+ *
+ * @return Citations to the current documents.
+ */
+ @XmlElement(name = "citation")
+ public Collection<Citation> 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 void setCitations(final Collection<? extends Citation> newValues) {
+ citations = writeCollection(newValues, citations, Citation.class);
+ }
+}
Propchange: sis/branches/JDK7/profiles/sis-french-profile/src/main/java/org/apache/sis/profile/fra/FRA_LegalConstraints.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: sis/branches/JDK7/profiles/sis-french-profile/src/main/java/org/apache/sis/profile/fra/FRA_LegalConstraints.java
------------------------------------------------------------------------------
svn:mime-type = text/plain;charset=UTF-8
Added: sis/branches/JDK7/profiles/sis-french-profile/src/main/java/org/apache/sis/profile/fra/FRA_SecurityConstraints.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/profiles/sis-french-profile/src/main/java/org/apache/sis/profile/fra/FRA_SecurityConstraints.java?rev=1517543&view=auto
==============================================================================
--- sis/branches/JDK7/profiles/sis-french-profile/src/main/java/org/apache/sis/profile/fra/FRA_SecurityConstraints.java (added)
+++ sis/branches/JDK7/profiles/sis-french-profile/src/main/java/org/apache/sis/profile/fra/FRA_SecurityConstraints.java [UTF-8] Mon Aug 26 14:24:42 2013
@@ -0,0 +1,97 @@
+/*
+ * 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.profile.fra;
+
+import java.util.Collection;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import org.opengis.metadata.citation.Citation;
+import org.opengis.metadata.constraint.SecurityConstraints;
+import org.apache.sis.metadata.iso.constraint.DefaultSecurityConstraints;
+
+
+/**
+ * AFNOR extension to ISO {@link SecurityConstraints}.
+ * The following schema fragment specifies the expected content contained within this class.
+ *
+ * {@preformat xml
+ * <complexType name="FRA_SecurityConstraints_Type">
+ * <complexContent>
+ * <extension base="{http://www.isotc211.org/2005/gmd}MD_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 Cédric Briançon (Geomatys)
+ * @author Guilhem Legal (Geomatys)
+ * @author 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 FRA_SecurityConstraints extends DefaultSecurityConstraints {
+ /**
+ * For serialization purpose.
+ */
+ private static final long serialVersionUID = 1060402314281487284L;
+
+ /**
+ * The documents that specifies the nature of the constraints.
+ */
+ private Collection<Citation> citations;
+
+ /**
+ * Constructs an initially empty constraints.
+ */
+ public FRA_SecurityConstraints() {
+ }
+
+ /**
+ * Constructs a metadata entity initialized with the values from the specified metadata.
+ *
+ * @param source The metadata to copy.
+ */
+ public FRA_SecurityConstraints(final SecurityConstraints source) {
+ super(source);
+ }
+
+ /**
+ * Returns the documents that specifies the nature of the constraints.
+ *
+ * @return Citations to the current documents.
+ */
+ @XmlElement(name = "citation")
+ public Collection<Citation> 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 void setCitations(final Collection<? extends Citation> newValues) {
+ citations = writeCollection(newValues, citations, Citation.class);
+ }
+}
Propchange: sis/branches/JDK7/profiles/sis-french-profile/src/main/java/org/apache/sis/profile/fra/FRA_SecurityConstraints.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: sis/branches/JDK7/profiles/sis-french-profile/src/main/java/org/apache/sis/profile/fra/FRA_SecurityConstraints.java
------------------------------------------------------------------------------
svn:mime-type = text/plain;charset=UTF-8
Added: sis/branches/JDK7/profiles/sis-french-profile/src/main/java/org/apache/sis/profile/fra/package-info.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/profiles/sis-french-profile/src/main/java/org/apache/sis/profile/fra/package-info.java?rev=1517543&view=auto
==============================================================================
--- sis/branches/JDK7/profiles/sis-french-profile/src/main/java/org/apache/sis/profile/fra/package-info.java (added)
+++ sis/branches/JDK7/profiles/sis-french-profile/src/main/java/org/apache/sis/profile/fra/package-info.java [UTF-8] Mon Aug 26 14:24:42 2013
@@ -0,0 +1,43 @@
+/*
+ * 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.
+ */
+
+/**
+ * French extensions to ISO metadata. Those extensions are standardized by the
+ * <cite>Association Française de Normalisation</cite> (AFNOR).
+ * All extended classes begin with the {@code FRA_} prefix.
+ *
+ * @author Cédric Briançon (Geomatys)
+ * @author Guilhem Legal (Geomatys)
+ * @version 0.4 (derived from geotk-3.00)
+ * @since 0.4
+ * @module
+ */
+@XmlSchema(elementFormDefault = XmlNsForm.QUALIFIED, namespace = Namespaces.FRA)
+@XmlAccessorType(XmlAccessType.NONE)
+@XmlJavaTypeAdapters({
+ @XmlJavaTypeAdapter(CI_Citation.class)
+})
+package org.apache.sis.profile.fra;
+
+import javax.xml.bind.annotation.XmlSchema;
+import javax.xml.bind.annotation.XmlNsForm;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapters;
+import org.apache.sis.internal.jaxb.metadata.CI_Citation;
+import org.apache.sis.xml.Namespaces;
Propchange: sis/branches/JDK7/profiles/sis-french-profile/src/main/java/org/apache/sis/profile/fra/package-info.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: sis/branches/JDK7/profiles/sis-french-profile/src/main/java/org/apache/sis/profile/fra/package-info.java
------------------------------------------------------------------------------
svn:mime-type = text/plain;charset=UTF-8
Added: sis/branches/JDK7/profiles/sis-french-profile/src/main/resources/META-INF/services/org.apache.sis.internal.jaxb.AdapterReplacement
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/profiles/sis-french-profile/src/main/resources/META-INF/services/org.apache.sis.internal.jaxb.AdapterReplacement?rev=1517543&view=auto
==============================================================================
--- sis/branches/JDK7/profiles/sis-french-profile/src/main/resources/META-INF/services/org.apache.sis.internal.jaxb.AdapterReplacement (added)
+++ sis/branches/JDK7/profiles/sis-french-profile/src/main/resources/META-INF/services/org.apache.sis.internal.jaxb.AdapterReplacement [UTF-8] Mon Aug 26 14:24:42 2013
@@ -0,0 +1 @@
+org.apache.sis.internal.profile.fra.FRA_ReferenceSystemAdapter
Propchange: sis/branches/JDK7/profiles/sis-french-profile/src/main/resources/META-INF/services/org.apache.sis.internal.jaxb.AdapterReplacement
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: sis/branches/JDK7/profiles/sis-french-profile/src/main/resources/META-INF/services/org.apache.sis.internal.jaxb.AdapterReplacement
------------------------------------------------------------------------------
svn:mime-type = text/plain;charset=UTF-8
Added: sis/branches/JDK7/profiles/sis-french-profile/src/main/resources/META-INF/services/org.apache.sis.internal.jaxb.TypeRegistration
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/profiles/sis-french-profile/src/main/resources/META-INF/services/org.apache.sis.internal.jaxb.TypeRegistration?rev=1517543&view=auto
==============================================================================
--- sis/branches/JDK7/profiles/sis-french-profile/src/main/resources/META-INF/services/org.apache.sis.internal.jaxb.TypeRegistration (added)
+++ sis/branches/JDK7/profiles/sis-french-profile/src/main/resources/META-INF/services/org.apache.sis.internal.jaxb.TypeRegistration [UTF-8] Mon Aug 26 14:24:42 2013
@@ -0,0 +1 @@
+org.apache.sis.internal.profile.fra.ProfileTypes
Propchange: sis/branches/JDK7/profiles/sis-french-profile/src/main/resources/META-INF/services/org.apache.sis.internal.jaxb.TypeRegistration
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: sis/branches/JDK7/profiles/sis-french-profile/src/main/resources/META-INF/services/org.apache.sis.internal.jaxb.TypeRegistration
------------------------------------------------------------------------------
svn:mime-type = text/plain;charset=UTF-8
Added: sis/branches/JDK7/profiles/sis-french-profile/src/test/java/org/apache/sis/profile/fra/XMLBindingsTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/profiles/sis-french-profile/src/test/java/org/apache/sis/profile/fra/XMLBindingsTest.java?rev=1517543&view=auto
==============================================================================
--- sis/branches/JDK7/profiles/sis-french-profile/src/test/java/org/apache/sis/profile/fra/XMLBindingsTest.java (added)
+++ sis/branches/JDK7/profiles/sis-french-profile/src/test/java/org/apache/sis/profile/fra/XMLBindingsTest.java [UTF-8] Mon Aug 26 14:24:42 2013
@@ -0,0 +1,90 @@
+/*
+ * 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.profile.fra;
+
+import java.util.Arrays;
+import java.io.IOException;
+import java.io.InputStream;
+import javax.xml.bind.JAXBException;
+import org.apache.sis.xml.XML;
+import org.apache.sis.metadata.iso.DefaultMetadata;
+import org.apache.sis.metadata.iso.citation.DefaultCitation;
+import org.apache.sis.metadata.iso.citation.HardCodedCitations;
+import org.apache.sis.util.ComparisonMode;
+import org.apache.sis.test.TestCase;
+import org.junit.Test;
+
+import static org.apache.sis.test.Assert.*;
+import static org.apache.sis.test.TestUtilities.getSingleton;
+
+
+/**
+ * Tests (un)marshalling of French profile of metadata.
+ *
+ * @author Cédric Briançon (Geomatys)
+ * @author Guilhem Legal (Geomatys)
+ * @version 0.4 (derived from geotk-3.00)
+ * @since 0.4
+ * @module
+ */
+public final strictfp class XMLBindingsTest extends TestCase {
+ /**
+ * An XML file representing a reference system tree.
+ */
+ private static final String RESOURCE_FILE = "DirectReferenceSystem.xml";
+
+ /**
+ * Creates the metadata object to be tested.
+ */
+ private static DefaultMetadata createMetadata() {
+ final DefaultMetadata metadata = new DefaultMetadata();
+ final FRA_DirectReferenceSystem refSys = new FRA_DirectReferenceSystem(
+ new DefaultCitation(getSingleton(HardCodedCitations.EPSG.getCitedResponsibleParties())), null, "4326");
+ metadata.setReferenceSystemInfo(Arrays.asList(refSys));
+ return metadata;
+ }
+
+ /**
+ * Ensures that the marshalling process of a {@link DefaultMetadata} produces
+ * an XML document which complies with the one expected.
+ *
+ * @throws IOException if an error occurred while reading the resource file.
+ * @throws JAXBException if the marshalling process fails.
+ */
+ @Test
+ public void marshallingTest() throws IOException, JAXBException {
+ final String actual = XML.marshal(createMetadata());
+ assertXmlEquals(XMLBindingsTest.class.getResource(RESOURCE_FILE), actual, "xmlns:*", "xsi:schemaLocation");
+ }
+
+ /**
+ * Ensures that the unmarshalling process of a {@link DefaultMetadata} stored in an XML
+ * document produces an object containing all the information.
+ *
+ * @throws JAXBException if the unmarshalling process fails.
+ * @throws IOException if an error occurred while reading the resource file.
+ */
+ @Test
+ public void unmarshallingTest() throws JAXBException, IOException {
+ final DefaultMetadata result;
+ try (InputStream in = XMLBindingsTest.class.getResourceAsStream(RESOURCE_FILE)) {
+ result = (DefaultMetadata) XML.unmarshal(in);
+ }
+ final DefaultMetadata expected = createMetadata();
+ assertTrue(expected.equals(result, ComparisonMode.DEBUG));
+ }
+}
Propchange: sis/branches/JDK7/profiles/sis-french-profile/src/test/java/org/apache/sis/profile/fra/XMLBindingsTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: sis/branches/JDK7/profiles/sis-french-profile/src/test/java/org/apache/sis/profile/fra/XMLBindingsTest.java
------------------------------------------------------------------------------
svn:mime-type = text/plain;charset=UTF-8
Added: sis/branches/JDK7/profiles/sis-french-profile/src/test/resources/org/apache/sis/profile/fra/DirectReferenceSystem.xml
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/profiles/sis-french-profile/src/test/resources/org/apache/sis/profile/fra/DirectReferenceSystem.xml?rev=1517543&view=auto
==============================================================================
--- sis/branches/JDK7/profiles/sis-french-profile/src/test/resources/org/apache/sis/profile/fra/DirectReferenceSystem.xml (added)
+++ sis/branches/JDK7/profiles/sis-french-profile/src/test/resources/org/apache/sis/profile/fra/DirectReferenceSystem.xml Mon Aug 26 14:24:42 2013
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ 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.
+-->
+
+<gmd:MD_Metadata
+ xmlns:gmd = "http://www.isotc211.org/2005/gmd"
+ xmlns:gco = "http://www.isotc211.org/2005/gco"
+ xmlns:fra = "http://www.cnig.gouv.fr/2005/fra"
+ xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation = "http://www.isotc211.org/2005/gmd http://eden.ign.fr/xsd/fra/20060922/gmd/gmd.xsd
+ http://www.cnig.gouv.fr/2005/fra http://eden.ign.fr/xsd/fra/20060922/fra/fra.xsd">
+
+ <!-- This XML file is known to be invalid. It does not declare every mandatory fields
+ (in order to keep the test simpler) and does not yet declare the ISO type. -->
+
+ <gmd:referenceSystemInfo>
+ <fra:FRA_DirectReferenceSystem>
+ <gmd:referenceSystemIdentifier>
+ <gmd:RS_Identifier>
+ <gmd:code>
+ <gco:CharacterString>4326</gco:CharacterString>
+ </gmd:code>
+ <gmd:authority>
+ <gmd:CI_Citation>
+ <gmd:title>
+ <gco:CharacterString>European Petroleum Survey Group</gco:CharacterString>
+ </gmd:title>
+ <gmd:citedResponsibleParty>
+ <gmd:CI_ResponsibleParty>
+ <gmd:organisationName>
+ <gco:CharacterString>European Petroleum Survey Group</gco:CharacterString>
+ </gmd:organisationName>
+ <gmd:contactInfo>
+ <gmd:CI_Contact>
+ <gmd:onlineResource>
+ <gmd:CI_OnlineResource>
+ <gmd:linkage>
+ <gmd:URL>http://www.epsg.org</gmd:URL>
+ </gmd:linkage>
+ <gmd:function>
+ <gmd:CI_OnLineFunctionCode codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#CI_OnLineFunctionCode" codeListValue="information">Information</gmd:CI_OnLineFunctionCode>
+ </gmd:function>
+ </gmd:CI_OnlineResource>
+ </gmd:onlineResource>
+ </gmd:CI_Contact>
+ </gmd:contactInfo>
+ <gmd:role>
+ <gmd:CI_RoleCode codeList="http://schemas.opengis.net/iso/19139/20070417/resources/Codelist/gmxCodelists.xml#CI_RoleCode" codeListValue="principalInvestigator">Principal investigator</gmd:CI_RoleCode>
+ </gmd:role>
+ </gmd:CI_ResponsibleParty>
+ </gmd:citedResponsibleParty>
+ </gmd:CI_Citation>
+ </gmd:authority>
+ </gmd:RS_Identifier>
+ </gmd:referenceSystemIdentifier>
+ </fra:FRA_DirectReferenceSystem>
+ </gmd:referenceSystemInfo>
+</gmd:MD_Metadata>
Propchange: sis/branches/JDK7/profiles/sis-french-profile/src/test/resources/org/apache/sis/profile/fra/DirectReferenceSystem.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: sis/branches/JDK7/profiles/sis-french-profile/src/test/resources/org/apache/sis/profile/fra/DirectReferenceSystem.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml