001: //$HeadURL: https://svn.wald.intevation.org/svn/deegree/base/trunk/src/org/deegree/owscommon/OWSMetadata.java $
002: /*---------------- FILE HEADER ------------------------------------------
003:
004: This file is part of deegree.
005: Copyright (C) 2001-2008 by:
006: EXSE, Department of Geography, University of Bonn
007: http://www.giub.uni-bonn.de/deegree/
008: lat/lon GmbH
009: http://www.lat-lon.de
010:
011: This library is free software; you can redistribute it and/or
012: modify it under the terms of the GNU Lesser General Public
013: License as published by the Free Software Foundation; either
014: version 2.1 of the License, or (at your option) any later version.
015:
016: This library is distributed in the hope that it will be useful,
017: but WITHOUT ANY WARRANTY; without even the implied warranty of
018: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
019: Lesser General Public License for more details.
020:
021: You should have received a copy of the GNU Lesser General Public
022: License along with this library; if not, write to the Free Software
023: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
024:
025: Contact:
026:
027: Andreas Poth
028: lat/lon GmbH
029: Aennchenstraße 19
030: 53177 Bonn
031: Germany
032: E-Mail: poth@lat-lon.de
033:
034: Prof. Dr. Klaus Greve
035: Department of Geography
036: University of Bonn
037: Meckenheimer Allee 166
038: 53115 Bonn
039: Germany
040: E-Mail: greve@giub.uni-bonn.de
041:
042: ---------------------------------------------------------------------------*/
043:
044: package org.deegree.owscommon;
045:
046: import java.net.URI;
047:
048: import org.deegree.datatypes.xlink.SimpleLink;
049:
050: /**
051: * Class representation of an <code>ows:Metadata</code> -Element as defined in
052: * <code>owsOperationsMetadata.xsd</code> from the <code>OWS Common Implementation
053: * Specification 0.3</code>.
054: * <p>
055: * This element either references or contains more metadata about the element that includes this
056: * element. Either at least one of the attributes in xlink:simpleLink or a substitute for the
057: * _MetaData element shall be included, but not both. An Implementation Specification can restrict
058: * the contents of this element to always be a reference or always contain metadata. (Informative:
059: * This element was adapted from the metaDataProperty element in GML 3.0.)
060: *
061: * @author <a href="mailto:schneider@lat-lon.de">Markus Schneider </a>
062: * @author last edited by: $Author: aschmitz $
063: *
064: * @version 2.0, $Revision: 10502 $, $Date: 2008-03-06 08:40:02 -0800 (Thu, 06 Mar 2008) $
065: *
066: * @since 2.0
067: */
068: public class OWSMetadata {
069:
070: private URI about;
071:
072: // an ows:Metadata - Element has the same attributes as a SimpleLink
073: private SimpleLink link;
074:
075: private String name;
076:
077: /**
078: * @param about
079: * @param link
080: * @param name
081: */
082: public OWSMetadata(URI about, SimpleLink link, String name) {
083: this .about = about;
084: this .link = link;
085: this .name = name;
086: }
087:
088: /**
089: * @return Returns the about.
090: */
091: public URI getAbout() {
092: return about;
093: }
094:
095: /**
096: * @return Returns the link.
097: */
098: public SimpleLink getLink() {
099: return link;
100: }
101:
102: /**
103: * @return Returns the name.
104: */
105: public String getName() {
106: return name;
107: }
108:
109: }
|