org.activemath.content.items
Class ItemRelationType
java.lang.Object
org.activemath.content.items.ItemRelationType
public class ItemRelationType
- extends Object
A relation type between Items.
This class implements a typesafe enumeration pattern, so instances of this class
can be safely compared with "==".
TODO: We can also add special behavior, such a "isA(ItemRelationType)", so relations
can get a hierachy.
log
protected static Category log
FOR
public static final ItemRelationType FOR
IS_A
public static final ItemRelationType IS_A
OF
public static final ItemRelationType OF
REFERENCES
public static final ItemRelationType REFERENCES
SIMILAR
public static final ItemRelationType SIMILAR
AGAINST
public static final ItemRelationType AGAINST
getByName
public static final ItemRelationType getByName(String relName)
- Returns:
ItemRelationType instance for type typeName, or null
toString
public String toString()
- Overrides:
toString in class Object
isA
public final boolean isA(ItemRelationType rel)
- Say if a relation type matches a super type.
TODO: complete this method