|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectiitb.con.core.Attribute
public class Attribute
Attribute class used to model the Entity
and Relation
attributes.
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 |
---|
public byte dataType
public java.lang.String defaultValue
public short id
public java.lang.String name
public boolean repeating
Constructor Detail |
---|
public Attribute()
public Attribute(java.lang.String name)
Attribute
with the attribute name.
name
- attribute namepublic Attribute(java.lang.String name, byte dataType)
Attribute
with the attribute name and data type.
name
- attribute namedataType
- data typeDataType
public Attribute(java.lang.String name, byte dataType, boolean repeating)
Attribute
with the attribute name, data type and repeating info.
name
- attribute namedataType
- data typerepeating
- is-repeating
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |