edu.stanford.smi.protege.model
Class ValueTypeConstraint
java.lang.Object
edu.stanford.smi.protege.model.AbstractFacetConstraint
edu.stanford.smi.protege.model.ValueTypeConstraint
- All Implemented Interfaces:
- FacetConstraint, Serializable
public class ValueTypeConstraint
- extends AbstractFacetConstraint
Constraint that checks a set of values to determine if they are of the right type for a slot. This class also
contains a bunch of helper methods for handling the bizarre storage format of the VALUE-TYPE slot.
- Author:
- Ray Fergerson
- See Also:
- Serialized Form
ValueTypeConstraint
public ValueTypeConstraint()
getAllowedClses
public static Collection getAllowedClses(Collection bindingValue)
getAllowedParents
public static Collection getAllowedParents(Collection bindingValue)
getAllowedValues
public static Collection getAllowedValues(Collection bindingValue)
getInvalidValuesText
public String getInvalidValuesText(Frame frame,
Slot slot,
Collection slotValues,
Collection facetValues)
getInvalidValueText
public String getInvalidValueText(Frame frame,
Slot slot,
Object value,
Collection facetValues)
getType
public static ValueType getType(Collection bindingValue)
getValues
public static Collection getValues()
getValues
public static Collection getValues(ValueType type)
getValues
public static List getValues(ValueType type,
Collection secondaryValues)
resolve
public Collection resolve(Collection existingValues,
Collection newValues)
Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2011 Stanford University.