From: Andreas Kohlbecker Date: Fri, 3 Sep 2010 09:12:41 +0000 (+0000) Subject: fixing namespaces X-Git-Tag: 3.0.3~649 X-Git-Url: https://dev.e-taxonomy.eu/gitweb/cdmlib.git/commitdiff_plain/0c09030058e50303ac48ad523c66eb348d5c73b0 fixing namespaces --- diff --git a/cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/oaipmh/ReferenceOaiPmhController.java b/cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/oaipmh/ReferenceOaiPmhController.java index c42763459a..945a38a07f 100644 --- a/cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/oaipmh/ReferenceOaiPmhController.java +++ b/cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/oaipmh/ReferenceOaiPmhController.java @@ -1,3 +1,12 @@ +// $Id$ +/** +* Copyright (C) 2009 EDIT +* European Distributed Institute of Taxonomy +* http://www.e-taxonomy.eu +* +* The contents of this file are subject to the Mozilla Public License Version 1.1 +* See LICENSE.TXT at the top of this package for the full license terms. +*/ package eu.etaxonomy.cdm.remote.controller.oaipmh; import static eu.etaxonomy.cdm.remote.dto.oaipmh.MetadataPrefix.DWC; diff --git a/cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/oaipmh/TaxonOaiPmhController.java b/cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/oaipmh/TaxonOaiPmhController.java index ab5a63c8fe..e3f30f2b9c 100644 --- a/cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/oaipmh/TaxonOaiPmhController.java +++ b/cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/oaipmh/TaxonOaiPmhController.java @@ -1,3 +1,12 @@ +// $Id$ +/** +* Copyright (C) 2009 EDIT +* European Distributed Institute of Taxonomy +* http://www.e-taxonomy.eu +* +* The contents of this file are subject to the Mozilla Public License Version 1.1 +* See LICENSE.TXT at the top of this package for the full license terms. +*/ package eu.etaxonomy.cdm.remote.controller.oaipmh; import java.util.ArrayList; diff --git a/cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/dto/oaipmh/DarwinCoreSimple.java b/cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/dto/oaipmh/DarwinCoreSimple.java index efdc506555..0834010df8 100644 --- a/cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/dto/oaipmh/DarwinCoreSimple.java +++ b/cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/dto/oaipmh/DarwinCoreSimple.java @@ -1,4 +1,15 @@ +// $Id$ +/** +* Copyright (C) 2009 EDIT +* European Distributed Institute of Taxonomy +* http://www.e-taxonomy.eu +* +* The contents of this file are subject to the Mozilla Public License Version 1.1 +* See LICENSE.TXT at the top of this package for the full license terms. +*/ + package eu.etaxonomy.cdm.remote.dto.oaipmh; +// TODO move into other package : eu.etaxonomy.cdm.remote.dto.dwc import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; @@ -47,7 +58,7 @@ import org.joda.time.DateTime; * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "dwc_type", namespace = "http://rs.tdwg.org/dwc/xsd/simpledarwincore/", propOrder = { +@XmlType(name = "SimpleDarwinRecord", namespace = "http://rs.tdwg.org/dwc/xsd/simpledarwincore/", propOrder = { "type", "modified", "language", diff --git a/cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/dto/oaipmh/Metadata.java b/cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/dto/oaipmh/Metadata.java index d76711a712..de8416e095 100644 --- a/cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/dto/oaipmh/Metadata.java +++ b/cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/dto/oaipmh/Metadata.java @@ -51,7 +51,7 @@ public class Metadata { @XmlElement(name = "dc", namespace = "http://www.openarchives.org/OAI/2.0/oai_dc/", type = OaiDc.class), @XmlElement(name = "TaxonConcept", namespace = "http://rs.tdwg.org/ontology/voc/TaxonConcept#", type = TaxonConcept.class), @XmlElement(name = "SpeciesProfileModel", namespace = "http://rs.tdwg.org/ontology/voc/SpeciesProfileModel#", type = SpeciesProfileModel.class), - @XmlElement(name = "dwc", namespace = "http://rs.tdwg.org/dwc/xsd/simpledarwincore/SimpleDarwinRecord/", type = DarwinCoreSimple.class) + @XmlElement(name = "SimpleDarwinRecord", namespace = "http://rs.tdwg.org/dwc/xsd/simpledarwincore/", type = DarwinCoreSimple.class) }) protected Object any;