org.hypergraphdb.type
Class Slot
java.lang.Object
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
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Slot
public Slot()
Slot
public Slot(java.lang.String label,
HGHandle valueType)
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