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.
BBItemType
protected BBItemType(String name,
Collection superTypes)
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