001 //$HeadURL: svn+ssh://jwilden@svn.wald.intevation.org/deegree/base/branches/2.5_testing/src/org/deegree/ogcwebservices/wms/capabilities/Identifier.java $ 002 /*---------------------------------------------------------------------------- 003 This file is part of deegree, http://deegree.org/ 004 Copyright (C) 2001-2009 by: 005 Department of Geography, University of Bonn 006 and 007 lat/lon GmbH 008 009 This library is free software; you can redistribute it and/or modify it under 010 the terms of the GNU Lesser General Public License as published by the Free 011 Software Foundation; either version 2.1 of the License, or (at your option) 012 any later version. 013 This library is distributed in the hope that it will be useful, but WITHOUT 014 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 015 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 016 details. 017 You should have received a copy of the GNU Lesser General Public License 018 along with this library; if not, write to the Free Software Foundation, Inc., 019 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 020 021 Contact information: 022 023 lat/lon GmbH 024 Aennchenstr. 19, 53177 Bonn 025 Germany 026 http://lat-lon.de/ 027 028 Department of Geography, University of Bonn 029 Prof. Dr. Klaus Greve 030 Postfach 1147, 53001 Bonn 031 Germany 032 http://www.geographie.uni-bonn.de/deegree/ 033 034 e-mail: info@deegree.org 035 ----------------------------------------------------------------------------*/ 036 package org.deegree.ogcwebservices.wms.capabilities; 037 038 039 040 /** 041 * A Map Server may use zero or more Identifier elements to list ID numbers 042 * or labels defined by a particular Authority. For example, the Global Change 043 * Master Directory (gcmd.gsfc.nasa.gov) defines a DIF_ID label for every 044 * dataset. The authority name and explanatory URL are defined in a separate 045 * AuthorityURL element, which may be defined once and inherited by subsidiary 046 * layers. Identifiers themselves are not inherited. 047 * <p>----------------------------------------------------------------------</p> 048 * 049 * @author <a href="mailto:k.lupp@web.de">Katharina Lupp</a> 050 * @author <a href="mailto:mschneider@lat-lon.de">Markus Schneider</a> 051 * @version $Revision: 18195 $ 052 */ 053 public class Identifier { 054 private String authority = null; 055 private String value = null; 056 057 058 /** 059 * constructor initializing the class with the <Identifier> 060 * @param value 061 * @param authority 062 */ 063 public Identifier( String value, String authority ) { 064 setValue( value ); 065 setAuthority( authority ); 066 } 067 068 /** 069 * @return the value of the identifier. that may be a ID, a label 070 * or something comparable 071 */ 072 public String getValue() { 073 return value; 074 } 075 076 /** 077 * sets the value of the identifier. that may be a ID, a label 078 * or something comparable 079 * @param value 080 */ 081 public void setValue( String value ) { 082 this.value = value; 083 } 084 085 /** 086 * @return the name of the authority that defines the identifier 087 */ 088 public String getAuthority() { 089 return authority; 090 } 091 092 /** 093 * sets the name of the authority that defines the identifier 094 * @param authority 095 */ 096 public void setAuthority( String authority ) { 097 this.authority = authority; 098 } 099 100 @Override 101 public String toString() { 102 String ret = null; 103 ret = "value = " + value + "\n"; 104 ret += ( "authority = " + authority + "\n" ); 105 return ret; 106 } 107 108 }