edu.mit.sketch.system
Class BBItemType

java.lang.Object
  |
  +--edu.mit.sketch.system.BBItemType

public class BBItemType
extends Object

Created: Fri Feb 15 14:55:00 2002
Copyright: Copyright (C) 2002 by MIT. All rights reserved.


Constructor Summary
protected BBItemType(String name, Collection superTypes)
           
 
Method Summary
 boolean equals(Object obj)
           
 Set getAllAncestors()
          Get all of the ancesstors of this type.
 List getSuperTypes()
          Get the immediate parents of this type.
static BBItemType getType(String name)
           
 int hashCode()
           
 boolean isa(BBItemType type)
           
static BBItemType newType(String name)
           
static BBItemType newType(String name, BBItemType superType)
           
static BBItemType newType(String name, BBItemType[] superTypes)
           
static BBItemType newType(String name, Collection superTypes)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BBItemType

protected BBItemType(String name,
                     Collection superTypes)
Method Detail

newType

public static BBItemType newType(String name,
                                 Collection superTypes)

newType

public static BBItemType newType(String name,
                                 BBItemType[] superTypes)

newType

public static BBItemType newType(String name,
                                 BBItemType superType)

newType

public static BBItemType newType(String name)

getType

public static BBItemType getType(String name)

getSuperTypes

public List getSuperTypes()
Get the immediate parents of this type.

getAllAncestors

public Set getAllAncestors()
Get all of the ancesstors of this type.

isa

public boolean isa(BBItemType type)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object