ucot.model.object
Class Attribute

java.lang.Object
  extended by ucot.model.object.Attribute
All Implemented Interfaces:
java.io.Serializable

public class Attribute
extends java.lang.Object
implements java.io.Serializable

This is attribute of an entity. It is basically direct link with cardinal information.

Author:
pajumasu
See Also:
Serialized Form

Field Summary
(package private)  Entity entity
           
(package private)  java.lang.String fromCardinal
           
static long serialVersionUID
           
(package private)  java.lang.String toCardinal
           
 
Constructor Summary
Attribute(Entity entity)
          Creates new Attribute reference to given entity.
 
Method Summary
 Entity getEntity()
          Get the entity this attribute refers to.
 java.lang.String getName()
          Returns the name of the attribute.
 void setEntity(Entity entity)
          Sets the entity this attribute refers to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values

fromCardinal

java.lang.String fromCardinal

toCardinal

java.lang.String toCardinal

entity

Entity entity
Constructor Detail

Attribute

public Attribute(Entity entity)
Creates new Attribute reference to given entity.

Parameters:
entity - The entity this attribute refers to.
Method Detail

getEntity

public Entity getEntity()
Get the entity this attribute refers to.

Returns:
The entity referred.

setEntity

public void setEntity(Entity entity)
Sets the entity this attribute refers to.

Parameters:
entity - The entity to be refered.

getName

public java.lang.String getName()
Returns the name of the attribute.

Returns:
name of the attribute