Package org.apache.sis.metadata.iso

Examples of org.apache.sis.metadata.iso.DefaultIdentifier


            "  </gmd:source>\n" +
            "</gmd:LI_Lineage>", actual, "xmlns:*");
        /*
         * Now add a ISO 19115-2 specific property. The XML name shall become "gmi:LE_Source".
         */
        source.setProcessedLevel(new DefaultIdentifier("DummyLevel"));
        actual = XML.marshal(lineage);
        assertXmlEquals(
            "<gmd:LI_Lineage xmlns:gmd=\"" + Namespaces.GMD + "\">\n" +
            "  <gmd:source>\n" +
            "    <gmi:LE_Source>\n" +
View Full Code Here


            if (identifier == null) {
                return null;
            }
        }
        final String namespace  = decoder.stringValue(NAMING_AUTHORITY);
        return new DefaultIdentifier((namespace != null) ? new DefaultCitation(namespace) : null, identifier);
    }
View Full Code Here

                 * If there is some NetCDF attributes that can be stored only in the ImageDescription
                 * subclass, instantiate that subclass. Otherwise instantiate the more generic class.
                 */
                if (processingLevel != null) {
                    content = new DefaultImageDescription();
                    ((DefaultImageDescription) content).setProcessingLevelCode(new DefaultIdentifier(processingLevel));
                } else {
                    content = new DefaultCoverageDescription();
                }
                contents.put(dimensions, content);
            }
View Full Code Here

     * @param code The identifier code used to represent a geographic area, or {@code null} if none.
     */
    public DefaultGeographicDescription(final Citation authority, final String code) {
        super(true);
        if (authority != null || code != null) {
            this.geographicIdentifier = new DefaultIdentifier(authority, code);
        }
    }
View Full Code Here

     * @param code The identifier code used to represent a geographic area, or {@code null} if none.
     */
    public DefaultGeographicDescription(final Citation authority, final String code) {
        super(true);
        if (authority != null || code != null) {
            this.geographicIdentifier = new DefaultIdentifier(authority, code);
        }
    }
View Full Code Here

            "  </gmd:source>\n" +
            "</gmd:LI_Lineage>", actual, "xmlns:*");
        /*
         * Now add a ISO 19115-2 specific property. The XML name shall become "gmi:LE_Source".
         */
        source.setProcessedLevel(new DefaultIdentifier("DummyLevel"));
        actual = XML.marshal(lineage);
        assertXmlEquals(
            "<gmd:LI_Lineage xmlns:gmd=\"" + Namespaces.GMD + '"' +
                           " xmlns:gmi=\"" + Namespaces.GMI + '"' +
                           " xmlns:gco=\"" + Namespaces.GCO + "\">\n" +
View Full Code Here

         *   └─Identifier
         *       └─Code……………………………………………………………………… NCEP/SST/Global_5x2p5deg/SST_Global_5x2p5deg_20050922_0000.nc
         */
        final DefaultCitation citation = new DefaultCitation("Sea Surface Temperature Analysis Model");
        citation.getDates().add(new DefaultCitationDate(TestUtilities.date("2005-09-22 00:00:00"), DateType.CREATION));
        citation.getIdentifiers().add(new DefaultIdentifier("SST_Global.nc"));
        /*
         * Descriptive keywords
         *   ├─Keyword………………………………………………………………………… EARTH SCIENCE > Oceans > Ocean Temperature > Sea Surface Temperature
         *   ├─Type………………………………………………………………………………… Theme
         *   └─Thesaurus name
View Full Code Here

         * The ISBN code shall be ignored because and ISBN property was already set.
         * The ISSN code shall be retained because it is a new code.
         */
        assertNull("ISSN shall be initially null.", citation.getISSN());
        citation.setIdentifiers(Arrays.asList(
                new DefaultIdentifier(HardCodedCitations.OGC,  "MyOGC"),
                new DefaultIdentifier(HardCodedCitations.EPSG, "MyEPSG"),
                new DefaultIdentifier(Citations.ISBN, "MyIgnored"),
                new DefaultIdentifier(Citations.ISSN, "MyISSN")));

        assertEquals("The ISBN value shall not have been overwritten.",    "MyISBN", citation.getISBN());
        assertEquals("The ISSN value shall have been added, because new.", "MyISSN", citation.getISSN());
        assertEquals("{OGC=“MyOGC”, EPSG=“MyEPSG”, ISSN=“MyISSN”, ISBN=“MyISBN”}", identifierMap.toString());
    }
View Full Code Here

            if (identifier == null) {
                return null;
            }
        }
        final String namespace  = decoder.stringValue(NAMING_AUTHORITY);
        return new DefaultIdentifier((namespace != null) ? new DefaultCitation(namespace) : null, identifier);
    }
View Full Code Here

                 * If there is some NetCDF attributes that can be stored only in the ImageDescription
                 * subclass, instantiate that subclass. Otherwise instantiate the more generic class.
                 */
                if (processingLevel != null) {
                    content = new DefaultImageDescription();
                    ((DefaultImageDescription) content).setProcessingLevelCode(new DefaultIdentifier(processingLevel));
                } else {
                    content = new DefaultCoverageDescription();
                }
                contents.put(dimensions, content);
            }
View Full Code Here

TOP

Related Classes of org.apache.sis.metadata.iso.DefaultIdentifier

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.