Protege 2.1.1

edu.stanford.smi.protege.model
Interface FacetConstraint

All Superinterfaces:
Serializable
All Known Implementing Classes:
AbstractFacetConstraint

public interface FacetConstraint
extends Serializable

Programmatic implementation of the constraint expressed by a specific facet. For example, an implementation of this interface would know about what it means to have "maximum cardinality" and would be able to check to see if a particular value was consistent with this constraint. The Facet itself is really just a placeholder and has no knowledge of the actual constraint that it represents. The logic is all in the implementations of this interface.

Author:
Ray Fergerson

Method Summary
 boolean areValidValues(Frame frame, Slot slot, Collection slotValues, Collection facetValues)
           
 String getInvalidValuesText(Frame frame, Slot slot, Collection slotValues, Collection facetValues)
           
 String getInvalidValueText(Frame frame, Slot slot, Object value, Collection facetValues)
           
 boolean isValidValue(Frame frame, Slot slot, Object item, Collection facetValues)
           
 Collection resolve(Collection existingValues, Collection newValues)
           
 

Method Detail

areValidValues

public boolean areValidValues(Frame frame,
                              Slot slot,
                              Collection slotValues,
                              Collection facetValues)

getInvalidValuesText

public String getInvalidValuesText(Frame frame,
                                   Slot slot,
                                   Collection slotValues,
                                   Collection facetValues)

getInvalidValueText

public String getInvalidValueText(Frame frame,
                                  Slot slot,
                                  Object value,
                                  Collection facetValues)

isValidValue

public boolean isValidValue(Frame frame,
                            Slot slot,
                            Object item,
                            Collection facetValues)

resolve

public Collection resolve(Collection existingValues,
                          Collection newValues)

Protege 2.1.1

Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2004 Stanford University.