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

com.nfbsoftware.diffbot.model.Article Maven / Gradle / Ivy

Go to download

The NFB Software Simple-Diffbot is a Java wrapper for the Diffbot.com API for website data extraction.

There is a newer version: 1.0.15
Show newest version
package com.nfbsoftware.diffbot.model;

import java.util.ArrayList;
import java.util.List;

import com.nfbsoftware.util.NfbUUID;
import com.nfbsoftware.util.StringUtil;

/**
 * 
 * @author brendanclemenzi
 */
public class Article
{
    private String m_id;
    private String m_text;
    private String m_title;
    private String m_author;
    private String m_diffbotUri;
    private String m_pageUrl;
    private String m_humanLanguage;
    private String m_html;
    private String m_type;
    private String m_resolvedPageUrl;
    private String m_siteName;
    
    private List m_tags = new ArrayList();
    private List m_images = new ArrayList();
    
    public String getId()
    {
        if(StringUtil.isNullOrEmpty(m_id))
        {
            m_id = NfbUUID.generateGUID();
        }
        
        return m_id;
    }
    public void setId(String id)
    {
        m_id = id;
    }
    
    public String getAuthor()
    {
        return m_author;
    }
    public void setAuthor(String author)
    {
        m_author = author;
    }
    
    public String getText()
    {
        return m_text;
    }
    public void setText(String text)
    {
        m_text = text;
    }
    
    public String getTitle()
    {
        return m_title;
    }
    public void setTitle(String title)
    {
        m_title = title;
    }
    
    public String getDiffbotUri()
    {
        return m_diffbotUri;
    }
    public void setDiffbotUri(String diffbotUri)
    {
        m_diffbotUri = diffbotUri;
    }
    
    public String getPageUrl()
    {
        return m_pageUrl;
    }
    public void setPageUrl(String pageUrl)
    {
        m_pageUrl = pageUrl;
    }
    
    public String getHumanLanguage()
    {
        return m_humanLanguage;
    }
    public void setHumanLanguage(String humanLanguage)
    {
        m_humanLanguage = humanLanguage;
    }
    
    public String getHtml()
    {
        return m_html;
    }
    public void setHtml(String html)
    {
        m_html = html;
    }
    
    public String getType()
    {
        return m_type;
    }
    public void setType(String type)
    {
        m_type = type;
    }
    
    public String getResolvedPageUrl()
    {
        return m_resolvedPageUrl;
    }
    public void setResolvedPageUrl(String resolvedPageUrl)
    {
        m_resolvedPageUrl = resolvedPageUrl;
    }
    
    public String getSiteName()
    {
        return m_siteName;
    }
    public void setSiteName(String siteName)
    {
        m_siteName = siteName;
    }
    
    public List getTags()
    {
        return m_tags;
    }
    public void setTags(List tags)
    {
        m_tags = tags;
    }

    public List getImages()
    {
        return m_images;
    }
    public void setImages(List images)
    {
        m_images = images;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy