edu.stanford.smi.protegex.owl.ui.conditions
Class ConditionsTableItem
java.lang.Object
edu.stanford.smi.protegex.owl.ui.conditions.ConditionsTableItem
- All Implemented Interfaces:
- ConditionsTableConstants, Comparable
public class ConditionsTableItem
- extends Object
- implements ConditionsTableConstants, Comparable
An object representing an entry in the table. One instance is kept for
each row.
- Author:
- Holger Knublauch
aClass
protected RDFSClass aClass
INHERITED
public static final String INHERITED
- See Also:
- Constant Field Values
NECESSARY
public static final String NECESSARY
- See Also:
- Constant Field Values
SUFFICIENT
public static final String SUFFICIENT
- See Also:
- Constant Field Values
ConditionsTableItem
protected ConditionsTableItem(RDFSClass aClass,
int type,
OWLNamedClass originCls,
OWLIntersectionClass definition,
boolean isNew)
dispose
public void dispose()
compareTo
public int compareTo(Object o)
- Sorts according to the following order:
1) Equivalent classes > superclasses > inherited superclasses
2) NamedClasses by name
3) Anonymous classes > restrictions
4) Restrictions by slot name
- Specified by:
compareTo
in interface Comparable
- Parameters:
o
- the other ClassDescriptionItem to compare to
- Returns:
- -1 if this is smaller (higher in the list), 1 if the other is smaller
create
protected static ConditionsTableItem create(RDFSClass aClass,
int type)
createInherited
protected static ConditionsTableItem createInherited(RDFSClass aClass,
OWLNamedClass originCls)
createNew
protected static ConditionsTableItem createNew(int type)
createSufficient
protected static ConditionsTableItem createSufficient(RDFSClass aClass,
int type,
OWLIntersectionClass definition)
createSeparator
protected static ConditionsTableItem createSeparator(int type)
getCls
public RDFSClass getCls()
getDefinition
protected OWLIntersectionClass getDefinition()
getIcon
protected Icon getIcon(int rowHeight)
getOriginCls
public OWLNamedClass getOriginCls()
getSuperclassIcon
protected static Icon getSuperclassIcon()
getType
protected int getType()
isDefinition
protected boolean isDefinition()
isInherited
protected boolean isInherited()
isNew
protected boolean isNew()
isSeparator
protected boolean isSeparator()
setType
protected void setType(int value)
toString
public String toString()
- Overrides:
toString
in class Object
Submit a bug report or feature request
Copyright (c) 1998-2009 Stanford University.