001: /* Copyright (c) 2001 - 2007 TOPP - www.openplans.org. All rights reserved.
002: * This code is licensed under the GPL 2.0 license, availible at the root
003: * application directory.
004: */
005: package org.vfny.geoserver.global;
006:
007: import org.apache.commons.lang.builder.ToStringBuilder;
008:
009: /**
010: * Represents a MetadataLink Attribute.
011: *
012: * @author $Author: Alessio Fabiani (alessio.fabiani@gmail.com) $ (last modification)
013: * @author $Author: Simone Giannecchini (simboss1@gmail.com) $ (last modification)
014: * @version $Id: MetaDataLink.java 6326 2007-03-15 18:36:40Z jdeolive $
015: */
016: public class MetaDataLink extends GlobalLayerSupertype {
017: /**
018: *
019: * @uml.property name="type" multiplicity="(0 1)"
020: */
021: private String type;
022:
023: /**
024: *
025: * @uml.property name="about" multiplicity="(0 1)"
026: */
027: private String about;
028:
029: /**
030: *
031: * @uml.property name="metadataType" multiplicity="(0 1)"
032: */
033: private String metadataType;
034:
035: /**
036: *
037: * @uml.property name="content" multiplicity="(0 1)"
038: */
039: private String content;
040:
041: /**
042: * Builds an empty metadata link
043: */
044: public MetaDataLink() {
045: }
046:
047: public MetaDataLink(MetaDataLink other) {
048: this .type = other.type;
049: this .about = other.about;
050: this .metadataType = other.metadataType;
051: this .content = other.content;
052: }
053:
054: /* (non-Javadoc)
055: * @see org.vfny.geoserver.global.GlobalLayerSupertype#toDTO()
056: */
057: Object toDTO() {
058: return null;
059: }
060:
061: /**
062: * @return Returns the about.
063: *
064: * @uml.property name="about"
065: */
066: public String getAbout() {
067: return about;
068: }
069:
070: /**
071: * @param about The about to set.
072: *
073: * @uml.property name="about"
074: */
075: public void setAbout(String about) {
076: this .about = about;
077: }
078:
079: /**
080: * @return Returns the metadataType.
081: *
082: * @uml.property name="metadataType"
083: */
084: public String getMetadataType() {
085: return metadataType;
086: }
087:
088: /**
089: * @param metadataType The metadataType to set.
090: *
091: * @uml.property name="metadataType"
092: */
093: public void setMetadataType(String metadataType) {
094: this .metadataType = metadataType;
095: }
096:
097: /**
098: * @return Returns the type.
099: *
100: * @uml.property name="type"
101: */
102: public String getType() {
103: return type;
104: }
105:
106: /**
107: * @param type The type to set.
108: *
109: * @uml.property name="type"
110: */
111: public void setType(String type) {
112: this .type = type;
113: }
114:
115: /**
116: * @return Returns the content.
117: *
118: * @uml.property name="content"
119: */
120: public String getContent() {
121: return content;
122: }
123:
124: /**
125: * @param content The content to set.
126: *
127: * @uml.property name="content"
128: */
129: public void setContent(String content) {
130: this .content = content;
131: }
132:
133: public String toString() {
134: return new ToStringBuilder(this).append(content).append(type)
135: .append(metadataType).append(about).toString();
136: }
137: }
|