/**
* Copyright (C) 2008-2010, Squale Project - http://www.squale.org
*
* This file is part of Squale.
*
* Squale is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or any later version.
*
* Squale 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 Lesser General Public License
* along with Squale. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* Cr�� le 22 juil. 05
*
* Pour changer le mod�le de ce fichier g�n�r�, allez � :
* Fen�tre>Pr�f�rences>Java>G�n�ration de code>Code et commentaires
*/
package org.squale.welcom.addons.access.excel.object;
import org.squale.welcom.outils.Util;
/**
* @author M327837 Pour changer le mod�le de ce commentaire de type g�n�r�, allez � :
* Fen�tre>Pr�f�rences>Java>G�n�ration de code>Code et commentaires
*/
public class AccessKey
{
/** id */
private int idAccessKey = 0;
/** Nombre de tabulation */
private String tab = "";
/** Valeur de la clef */
private String accesskey = "";
/** libelle */
private String label = "";
/** type de donn�e */
private String type = "";
/**
* @return key
*/
public String getAccesskey()
{
return accesskey;
}
/**
* @return label
*/
public String getLabel()
{
return label;
}
/**
* @return tab
*/
public String getTab()
{
return tab;
}
/**
* @return type
*/
public String getType()
{
return type;
}
/**
* @param string key
*/
public void setAccesskey( final String string )
{
accesskey = string;
}
/**
* @param string label
*/
public void setLabel( final String string )
{
label = string;
}
/**
* @param string tab
*/
public void setTab( final String string )
{
tab = string;
}
/**
* @param string type
*/
public void setType( final String string )
{
type = string;
}
/**
* @return idAccessKey
*/
public int getIdAccessKey()
{
return idAccessKey;
}
/**
* @param i :idAccessKey
*/
public void setIdAccessKey( final int i )
{
idAccessKey = i;
}
/**
* @see java.lang.Object#equals(java.lang.Object)
*/
public boolean equals( final Object obj )
{
return Util.isEquals( this.getAccesskey(), ( (AccessKey) obj ).getAccesskey() )
&& Util.isEquals( this.getLabel(), ( (AccessKey) obj ).getLabel() )
&& Util.isEquals( this.getTab(), ( (AccessKey) obj ).getTab() )
&& Util.isEquals( this.getType(), ( (AccessKey) obj ).getType() )
&& ( this.getIdAccessKey() == ( (AccessKey) obj ).getIdAccessKey() );
}
/**
* @see java.lang.Object#toString()
*/
public String toString()
{
return " AccessKey [ " + this.getIdAccessKey() + " - " + this.getAccesskey() + " - " + this.getLabel() + " - "
+ this.getTab() + " - " + this.getType() + " ]";
}
}