org.hypergraphdb.type
Class Slot

java.lang.Object
  extended by org.hypergraphdb.type.Slot

public class Slot
extends java.lang.Object

A Slot represents a placeholder in a record type. A slot has a label, which is simply a string a type handle that constraints the type of the value it can hold. Note that this class does not hold actual slot values. Rather, it is a descriptor of a record slot instances. A RecordType is defined simply as a set of Slots.

Author:
Borislav Iordanov

Constructor Summary
Slot()
           
Slot(java.lang.String label, HGHandle valueType)
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 java.lang.String getLabel()
           
 HGHandle getValueType()
           
 int hashCode()
           
 void setLabel(java.lang.String label)
           
 void setValueType(HGHandle valueType)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Slot

public Slot()

Slot

public Slot(java.lang.String label,
            HGHandle valueType)
Method Detail

getLabel

public java.lang.String getLabel()
Returns:
Returns the label.

setLabel

public void setLabel(java.lang.String label)
Parameters:
label - The label to set.

getValueType

public HGHandle getValueType()
Returns:
Returns the valueType.

setValueType

public void setValueType(HGHandle valueType)
Parameters:
valueType - The valueType to set.

hashCode

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

equals

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

toString

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