org.hypergraphdb.atom
Class AtomProjection

java.lang.Object
  extended by org.hypergraphdb.HGPlainLink
      extended by org.hypergraphdb.atom.AtomProjection
All Implemented Interfaces:
HGLink

public class AtomProjection
extends HGPlainLink

This link represents a relationship between a composite type and one of its projections. It states that the projection in question is an atom in itself and therefore must be recorded as a HGAtomRef in all values of this composite type. The mode of the atom reference projection is the sole attribute of the relationship.

The link is between the type whose projection is an atom reference and the type of the projection's value.

An AtomProjection also holds the name of the projection as an attribute. the name together with the value type are enough (and generally necessary) to identify the projection.

Author:
Borislav Iordanov

Constructor Summary
AtomProjection(HGHandle[] targetSet)
           
AtomProjection(HGHandle type, java.lang.String name, HGHandle valueType, HGAtomRef.Mode mode)
           Construct an atom projection link.
 
Method Summary
 HGAtomRef.Mode getMode()
           
 java.lang.String getName()
           
 HGHandle getProjectionValueType()
           
 HGHandle getType()
           
 void setMode(HGAtomRef.Mode mode)
           
 void setName(java.lang.String name)
           
 
Methods inherited from class org.hypergraphdb.HGPlainLink
getArity, getTargetAt, notifyTargetHandleUpdate, notifyTargetRemoved
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtomProjection

public AtomProjection(HGHandle[] targetSet)

AtomProjection

public AtomProjection(HGHandle type,
                      java.lang.String name,
                      HGHandle valueType,
                      HGAtomRef.Mode mode)

Construct an atom projection link.

Parameters:
type - The handle to a HGCompositeType.
projection - The handle to the atom projection.
mode - The mode of the atom reference to be used when managing atoms of the composite type.
Method Detail

getType

public HGHandle getType()

getProjectionValueType

public HGHandle getProjectionValueType()

getMode

public HGAtomRef.Mode getMode()

setMode

public void setMode(HGAtomRef.Mode mode)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)