iitb.con.core
Class Instance

java.lang.Object
  extended by iitb.con.core.Instance
Direct Known Subclasses:
EntityInstance, RelationInstance

public abstract class Instance
extends java.lang.Object

Instance is the instantiated item of the Type.
All the instances of specialized type will extend the Instance class.

See Also:
Type

Field Summary
 int id
          Instance Id
 short typeId
          Type name of the instance
 
Constructor Summary
Instance()
           
 
Method Summary
 java.lang.Object getAttributeValue(java.lang.String name)
          Returns the specified attributes value.
This method should be over-ridden by the specialized instances
 void setAttributeValue(java.lang.String name, java.lang.Object value)
          Sets the instance's attribute value.
This method should be over-ridden by the specialized instances
 void setType(Type type)
          Sets the type of the instance
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

public int id
Instance Id


typeId

public short typeId
Type name of the instance

Constructor Detail

Instance

public Instance()
Method Detail

getAttributeValue

public java.lang.Object getAttributeValue(java.lang.String name)
Returns the specified attributes value.
This method should be over-ridden by the specialized instances

Parameters:
name - attribute name
Returns:
attribute value

setAttributeValue

public void setAttributeValue(java.lang.String name,
                              java.lang.Object value)
Sets the instance's attribute value.
This method should be over-ridden by the specialized instances

Parameters:
name - attribute name
value - attribute's value

setType

public void setType(Type type)
Sets the type of the instance

Parameters:
type - Type