org.hypergraphdb.type
Class HGAbstractCompositeType

java.lang.Object
  extended by org.hypergraphdb.type.HGAbstractType
      extended by org.hypergraphdb.type.HGAbstractCompositeType
All Implemented Interfaces:
HGGraphHolder, HGAtomType, HGCompositeType

public class HGAbstractCompositeType
extends HGAbstractType
implements HGCompositeType


Nested Class Summary
static class HGAbstractCompositeType.Projection
           
 
Constructor Summary
HGAbstractCompositeType()
           
 
Method Summary
 void addProjection(HGAbstractCompositeType.Projection p)
           
 java.util.Iterator<java.lang.String> getDimensionNames()
          Return an Iterator listing the names of all dimensions of this composite type.
 HGProjection getProjection(java.lang.String dimensionName)
          Get the projection function for a particular dimension.
 void removeProjection(java.lang.String name)
           
 
Methods inherited from class org.hypergraphdb.type.HGAbstractType
make, release, setHyperGraph, store, subsumes
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.hypergraphdb.type.HGAtomType
make, release, store, subsumes
 
Methods inherited from interface org.hypergraphdb.HGGraphHolder
setHyperGraph
 

Constructor Detail

HGAbstractCompositeType

public HGAbstractCompositeType()
Method Detail

addProjection

public void addProjection(HGAbstractCompositeType.Projection p)

removeProjection

public void removeProjection(java.lang.String name)

getDimensionNames

public java.util.Iterator<java.lang.String> getDimensionNames()
Description copied from interface: HGCompositeType

Return an Iterator listing the names of all dimensions of this composite type. A projection function can be obtained through the getProjection method.

Specified by:
getDimensionNames in interface HGCompositeType

getProjection

public HGProjection getProjection(java.lang.String dimensionName)
Description copied from interface: HGCompositeType

Get the projection function for a particular dimension.

Specified by:
getProjection in interface HGCompositeType
Parameters:
dimensionName - The name of the dimension.
Returns:
The HGProjection instance.