import android.content.Intent;

public class Tag {
	/** タグに表示される文字列 */
	private String word;

	/** タグの重要度 */
	private int    count;

	/** タグがクリックされた際に発行するインテント */
	private Intent intent = new Intent();


	/**
	 * コンストラクタ
	 */
	public Tag( String _word, int _count, Intent _intent ) {
		Set( _word, _count, _intent );
	}

	public Tag( String _word, int _count ) {
		Set( _word, _count );
	}

	public Tag( String _word ) {
		Set( _word );
	}

	public Tag( String _word, Intent _intent ) {
		Set( _word, _intent );
	}

	/**
	 * 重要度を増やすためのメソッド
	 */
	public void CountUp() {
		this.CountUp(1);
	}

	public void CountUp( int c ) {
		this.Set( this.getCount() + c );
	}

	/**
	 * セッター
	 */
	public void Set(String _word) {
		this.word = _word;
	}

	public void Set(int _count) {
		this.count = _count;
	}

	public void Set( Intent _intent ) {
		intent = _intent;
	}

	public void Set( String _word, int _count ) {
		Set( _word );
		Set( _count );
	}

	public void Set( String _word, Intent _intent ) {
		Set( _word );
		Set( _intent );
	}

	public void Set( String _word, int _count, Intent _intent ) {
		Set( _word );
		Set( _count );
		Set( _intent );
	}

	/**
	 * ゲッター
	 */
	public Intent getIntent() {
		return intent;
	}

	public String getWord() {
		return word;
	}

	public int getCount() {
		return count;
	}

}
