Package gdurelle.gadget.tagcloud.server.tags

Source Code of gdurelle.gadget.tagcloud.server.tags.TagDTO

package gdurelle.gadget.tagcloud.server.tags;

import gdurelle.gadget.tagcloud.client.tag.Tag;
import gdurelle.gadget.tagcloud.client.tag.WordTag;

public class TagDTO {
    public static Tag convertToTag(TagBean tagbean){
       
        Tag tag = new WordTag(((WordTagBean)tagbean).getWord(), tagbean.getLink());
        tag.setNumberOfOccurences(tagbean.getNumberOfOccurences());
        tag.setId(tagbean.getId());
       
        return tag;
    }
}
TOP

Related Classes of gdurelle.gadget.tagcloud.server.tags.TagDTO

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.