001: //$HeadURL: https://svn.wald.intevation.org/svn/deegree/base/trunk/src/org/deegree/model/metadata/iso19115/RoleCode.java $
002: /*
003: ---------------- FILE HEADER ------------------------------------------
004:
005: This file is part of deegree.
006: Copyright (C) 2001-2008 by:
007: EXSE, Department of Geography, University of Bonn
008: http://www.giub.uni-bonn.de/deegree/
009: lat/lon GmbH
010: http://www.lat-lon.de
011:
012: This library is free software; you can redistribute it and/or
013: modify it under the terms of the GNU Lesser General Public
014: License as published by the Free Software Foundation; either
015: version 2.1 of the License, or (at your option) any later version.
016:
017: This library is distributed in the hope that it will be useful,
018: but WITHOUT ANY WARRANTY; without even the implied warranty of
019: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
020: Lesser General Public License for more details.
021:
022: You should have received a copy of the GNU Lesser General Public
023: License along with this library; if not, write to the Free Software
024: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
025:
026: Contact:
027:
028: Andreas Poth
029: lat/lon GmbH
030: Aennchenstr. 19
031: 53115 Bonn
032: Germany
033: E-Mail: poth@lat-lon.de
034:
035: Prof. Dr. Klaus Greve
036: Department of Geography
037: University of Bonn
038: Meckenheimer Allee 166
039: 53115 Bonn
040: Germany
041: E-Mail: greve@giub.uni-bonn.de
042:
043:
044: ---------------------------------------------------------------------------*/
045:
046: package org.deegree.model.metadata.iso19115;
047:
048: /**
049: *
050: *
051: *
052: * @author <a href="mailto:poth@lat-lon.de">Andreas Poth</a>
053: * @author last edited by: $Author: mschneider $
054: *
055: * @version $Revision: 10547 $, $Date: 2008-03-11 01:40:28 -0700 (Tue, 11 Mar 2008) $
056: */
057: public class RoleCode {
058:
059: String value = null;
060:
061: /**
062: * Creates a new instance of RoleCode
063: *
064: * @param value
065: */
066: public RoleCode(String value) {
067: setValue(value);
068: }
069:
070: /**
071: * returns the value-attribute. use="required". Possible value-values are:
072: * <ul>
073: * <li>contentProvider
074: * <li>custodianSteward
075: * <li>owner
076: * <li>user
077: * <li>distributor
078: * <li>metadataProvider
079: * <li>originator
080: * <li>pointOfContact
081: * <li>principalInvestigator
082: * <li>processor
083: * <li>publisher
084: * </ul>
085: *
086: */
087: public String getValue() {
088: return value;
089: }
090:
091: /**
092: * @see #getValue()
093: * @param value
094: */
095: public void setValue(String value) {
096: this .value = value;
097: }
098:
099: /**
100: * to String method
101: *
102: * @return string representation
103: */
104: public String toString() {
105: String ret = null;
106: ret = "value = " + value + "\n";
107: return ret;
108: }
109:
110: }
|