/**
*
* APDPlat - Application Product Development Platform
* Copyright (c) 2013, 杨尚川, yang-shangchuan@qq.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
package org.seo.rank.model;
/**
*
* @author 杨尚川
*/
public class Rank {
/**
* 查询排名的网页地址
*/
private String url;
/**
* 查询关键词
*/
private String keyword;
/**
* 是否被收录
*/
private boolean index;
/**
* 查询结果排名
*/
private int rank;
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getKeyword() {
return keyword;
}
public void setKeyword(String keyword) {
this.keyword = keyword;
}
public boolean isIndex() {
return index;
}
public void setIndex(boolean index) {
this.index = index;
}
public int getRank() {
if(!isIndex()){
return -1;
}
return rank;
}
public void setRank(int rank) {
this.rank = rank;
}
@Override
public String toString() {
return "url=" + url + "\nkeyword=" + keyword + "\nindex=" + index + "\nrank=" + rank;
}
}