iitb.con.core
Class Attribute

java.lang.Object
  extended by iitb.con.core.Attribute

public class Attribute
extends java.lang.Object

Attribute class used to model the Entity and Relationattributes.
Attributes can be of two types:
- Single-valued
- Multi-valued (or) Repeating

DataType - for the attribute data types.


Field Summary
 byte dataType
          Data type of the attribute
 java.lang.String defaultValue
          Default value of the attribute
 short id
          Attribute Id
 java.lang.String name
          Name of the attribute
 boolean repeating
          Is the attribute is repeating?
 
Constructor Summary
Attribute()
           
Attribute(java.lang.String name)
          Initializes the newly created Attribute with the attribute name.
Attribute(java.lang.String name, byte dataType)
          Initializes the newly created Attribute with the attribute name and data type.
Attribute(java.lang.String name, byte dataType, boolean repeating)
          Initializes the newly created Attribute with the attribute name, data type and repeating info.
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataType

public byte dataType
Data type of the attribute


defaultValue

public java.lang.String defaultValue
Default value of the attribute


id

public short id
Attribute Id


name

public java.lang.String name
Name of the attribute


repeating

public boolean repeating
Is the attribute is repeating?

Constructor Detail

Attribute

public Attribute()

Attribute

public Attribute(java.lang.String name)
Initializes the newly created Attribute with the attribute name.

Parameters:
name - attribute name

Attribute

public Attribute(java.lang.String name,
                 byte dataType)
Initializes the newly created Attribute with the attribute name and data type.

Parameters:
name - attribute name
dataType - data type
See Also:
DataType

Attribute

public Attribute(java.lang.String name,
                 byte dataType,
                 boolean repeating)
Initializes the newly created Attribute with the attribute name, data type and repeating info.

Parameters:
name - attribute name
dataType - data type
repeating - is-repeating