All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.vfny.geoserver.global.MetaDataLink Maven / Gradle / Ivy

The newest version!
/* Copyright (c) 2001 - 2007 TOPP - www.openplans.org.  All rights reserved.
 * This code is licensed under the GPL 2.0 license, availible at the root
 * application directory.
 */
package org.vfny.geoserver.global;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.geoserver.catalog.MetadataLinkInfo;


/**
 * Represents a MetadataLink Attribute.
 *
 * @author $Author: Alessio Fabiani ([email protected]) $ (last modification)
 * @author $Author: Simone Giannecchini ([email protected]) $ (last modification)
 * @version $Id: MetaDataLink.java 9023 2008-05-28 07:00:37Z jdeolive $
 * 
 * @deprecated use {@link MetadataLinkInfo}.
 */
public class MetaDataLink extends GlobalLayerSupertype {
    ///**
    // *
    // * @uml.property name="type" multiplicity="(0 1)"
    // */
    //private String type;
    //
    ///**
    // *
    // * @uml.property name="about" multiplicity="(0 1)"
    // */
    //private String about;
    //
    ///**
    // *
    // * @uml.property name="metadataType" multiplicity="(0 1)"
    // */
    //private String metadataType;
    //
    ///**
    // *
    // * @uml.property name="content" multiplicity="(0 1)"
    // */
    //private String content;

    MetadataLinkInfo link;
    
    ///**
    // * Builds an empty metadata link
    // */
    //public MetaDataLink() {
    //}
    
    //public MetaDataLink(MetaDataLink other) {
    //    setType( other.getType() );
    //    setAbout( other.getAbout() );
    //    setMetadataType( other.getMetadataType() );
    //    setContent( other.getContent() );
    //}

    public MetadataLinkInfo getMetadataLink() {
        return link;
    }
    
    public MetaDataLink(MetadataLinkInfo link) {
        this.link = link;
    }

    public MetaDataLink load( MetaDataLink other ) {
        setType( other.getType() );
        setAbout( other.getAbout() );
        setMetadataType( other.getMetadataType() );
        setContent( other.getContent() );
        return this;
    }
    
    /* (non-Javadoc)
     * @see org.vfny.geoserver.global.GlobalLayerSupertype#toDTO()
     */
    Object toDTO() {
        return null;
    }

    /**
     * @return Returns the about.
     *
     * @uml.property name="about"
     */
    public String getAbout() {
        return link.getAbout();
        //return about;
    }

    /**
     * @param about The about to set.
     *
     * @uml.property name="about"
     */
    public void setAbout(String about) {
        link.setAbout(about);
        //this.about = about;
    }

    /**
     * @return Returns the metadataType.
     *
     * @uml.property name="metadataType"
     */
    public String getMetadataType() {
        return link.getMetadataType();
        //return metadataType;
    }

    /**
     * @param metadataType The metadataType to set.
     *
     * @uml.property name="metadataType"
     */
    public void setMetadataType(String metadataType) {
        link.setMetadataType(metadataType);
        //this.metadataType = metadataType;
    }

    /**
     * @return Returns the type.
     *
     * @uml.property name="type"
     */
    public String getType() {
        return link.getType();
        //return type;
    }

    /**
     * @param type The type to set.
     *
     * @uml.property name="type"
     */
    public void setType(String type) {
        link.setType(type);
        //this.type = type;
    }

    /**
     * @return Returns the content.
     *
     * @uml.property name="content"
     */
    public String getContent() {
        return link.getContent();
        //return content;
    }

    /**
     * @param content The content to set.
     *
     * @uml.property name="content"
     */
    public void setContent(String content) {
        link.setContent(content);
        //this.content = content;
    }

    public String toString() {
        return new ToStringBuilder(this).append(getContent()).append(getType()).append(getMetadataType())
                                        .append(getAbout()).toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy