001: /*
002: * GeoTools - OpenSource mapping toolkit
003: * http://geotools.org
004: * (C) 2006, GeoTools Project Managment Committee (PMC)
005: * (C) 2005, Refractions Research Inc.
006: *
007: * This library is free software; you can redistribute it and/or
008: * modify it under the terms of the GNU Lesser General Public
009: * License as published by the Free Software Foundation;
010: * version 2.1 of the License.
011: *
012: * This library is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * Lesser General Public License for more details.
016: */
017: package org.geotools.catalog.defaults;
018:
019: import org.geotools.catalog.CatalogInfo;
020: import java.net.URI;
021:
022: /**
023: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/main/src/main/java/org/geotools/catalog/defaults/DefaultCatalogInfo.java $
024: */
025: public class DefaultCatalogInfo implements CatalogInfo {
026: protected String title;
027: protected String description;
028: protected URI source;
029: protected String[] keywords;
030:
031: public DefaultCatalogInfo() {
032: // for sub-classes
033: }
034:
035: public DefaultCatalogInfo(String title, String description,
036: URI source, String[] keywords) {
037: this .title = title;
038: this .description = description;
039: this .source = source;
040: this .keywords = keywords;
041: }
042:
043: /* (non-Javadoc)
044: * @see org.geotools.catalog.CatalogInfo#getTitle()
045: */
046: public String getTitle() {
047: return title;
048: }
049:
050: /* (non-Javadoc)
051: * @see org.geotools.catalog.CatalogInfo#getKeywords()
052: */
053: public String[] getKeywords() { // aka Subject
054:
055: return keywords;
056: }
057:
058: /* (non-Javadoc)
059: * @see org.geotools.catalog.CatalogInfo#getDescription()
060: */
061: public String getDescription() {
062: return description;
063: }
064:
065: /* (non-Javadoc)
066: * @see org.geotools.catalog.CatalogInfo#getSource()
067: */
068: public URI getSource() { // aka server
069:
070: return source;
071: }
072:
073: /**
074: * DOCUMENT ME!
075: *
076: * @param desc The desc to set.
077: */
078: public void setDesc(String desc) {
079: this .description = desc;
080: }
081:
082: /**
083: * DOCUMENT ME!
084: *
085: * @param keywords The keywords to set.
086: */
087: public void setKeywords(String[] keywords) {
088: this .keywords = keywords;
089: }
090:
091: /**
092: * DOCUMENT ME!
093: *
094: * @param source The source to set.
095: */
096: public void setSource(URI source) {
097: this .source = source;
098: }
099:
100: /**
101: * DOCUMENT ME!
102: *
103: * @param title The title to set.
104: */
105: public void setTitle(String title) {
106: this.title = title;
107: }
108: }
|