Protege 2.1.2

edu.stanford.smi.protegex.widget.instancetable
Class InstanceRowConfigurationChecks

java.lang.Object
  extended byedu.stanford.smi.protegex.widget.instancetable.InstanceRowConfigurationChecks

public class InstanceRowConfigurationChecks
extends Object

Static methods to make sure that InstanceTable is valid. Returns a string. A null return value means "okay"

Author:
William Grosso

Constructor Summary
InstanceRowConfigurationChecks()
           
 
Method Summary
static boolean checkValidity(Cls cls, Slot slot)
           
static JComponent getDetailedWarnings(Cls cls, Slot slot)
           
static JComponent getShortWarning(Cls cls, Slot slot)
           
protected static boolean singleAllowedClass(Cls cls, Slot slot)
           
protected static boolean singleAllowedClass(Cls cls, Slot slot, JTextArea warningDisplayArea)
           
protected static boolean slotHasRightCardinality(Cls cls, Slot slot)
           
protected static boolean slotHasRightCardinality(Cls cls, Slot slot, JTextArea warningDisplayArea)
           
protected static boolean slotTargetOfTypeInstance(Cls cls, Slot slot)
           
protected static boolean slotTargetOfTypeInstance(Cls cls, Slot slot, JTextArea warningDisplayArea)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstanceRowConfigurationChecks

public InstanceRowConfigurationChecks()
Method Detail

checkValidity

public static boolean checkValidity(Cls cls,
                                    Slot slot)

getDetailedWarnings

public static JComponent getDetailedWarnings(Cls cls,
                                             Slot slot)

getShortWarning

public static JComponent getShortWarning(Cls cls,
                                         Slot slot)

singleAllowedClass

protected static boolean singleAllowedClass(Cls cls,
                                            Slot slot)

singleAllowedClass

protected static boolean singleAllowedClass(Cls cls,
                                            Slot slot,
                                            JTextArea warningDisplayArea)

slotHasRightCardinality

protected static boolean slotHasRightCardinality(Cls cls,
                                                 Slot slot)

slotHasRightCardinality

protected static boolean slotHasRightCardinality(Cls cls,
                                                 Slot slot,
                                                 JTextArea warningDisplayArea)

slotTargetOfTypeInstance

protected static boolean slotTargetOfTypeInstance(Cls cls,
                                                  Slot slot)

slotTargetOfTypeInstance

protected static boolean slotTargetOfTypeInstance(Cls cls,
                                                  Slot slot,
                                                  JTextArea warningDisplayArea)

Protege 2.1.2

Submit a bug report or feature request