org.eucalyptus.analysesi.model
Class Attribute

java.lang.Object
  extended by org.eucalyptus.analysesi.model.Attribute

public class Attribute
extends java.lang.Object

Cette classe représente un attribut a associer à une Entity.

Author:
Yann D'ISANTO

Constructor Summary
Attribute()
          Le constructeur par défaut de la classe Attribute.
Attribute(java.lang.String name)
          Construit un attribut avec un nom.
Attribute(java.lang.String name, TypeAttribute type)
          Construit un attribut avec un nom et un type.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getDescription()
          Retourne la description de l'attribut.
 java.lang.String getName()
          Retourne le nom de l'attribut.
 TypeAttribute getType()
          Retourne le type de l'attribut.
 int hashCode()
           
 void setDescription(java.lang.String description)
          Retourne la nouvelle description de l'attribut.
 void setName(java.lang.String name)
          Modifie le nom de l'attribut.
 void setType(TypeAttribute type)
          Modifie le type de l'attribut.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Attribute

public Attribute()
Le constructeur par défaut de la classe Attribute. Construit un attribut avec pour nom une chaine de caractéres vide.


Attribute

public Attribute(java.lang.String name)
Construit un attribut avec un nom.

Parameters:
name - Le nom de la attribut

Attribute

public Attribute(java.lang.String name,
                 TypeAttribute type)
Construit un attribut avec un nom et un type.

Parameters:
name - Le nom de l'attribut
type - Le type de l'attribut
Method Detail

getName

public java.lang.String getName()
Retourne le nom de l'attribut.

Returns:
le nom de l'attribut

setName

public void setName(java.lang.String name)
Modifie le nom de l'attribut.

Parameters:
name - le nouveau nom de l'attribut

getDescription

public java.lang.String getDescription()
Retourne la description de l'attribut.

Returns:
la description de l'attribut

setDescription

public void setDescription(java.lang.String description)
Retourne la nouvelle description de l'attribut.

Parameters:
description - la nouvelle description de l'attribut

getType

public TypeAttribute getType()
Retourne le type de l'attribut.

Returns:
le type de l'attribut

setType

public void setType(TypeAttribute type)
Modifie le type de l'attribut.

Parameters:
type - le nouveau type de l'attribut

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2009. All Rights Reserved.