Protege-2000 1.7

edu.stanford.smi.protege.model
Interface Facet

All Superinterfaces:
Comparable, Frame, Instance
All Known Implementing Classes:
DefaultFacet

public interface Facet
extends Instance

A description of a constraint on the value of a frame-slot binding. This constraint may be placed on any number of frame-slot bindings.

Author:
Ray Fergerson

Method Summary
 void addFacetListener(FacetListener listener)
           
 boolean areValidValues(Frame frame, Slot slot, Collection values)
           
 Slot getAssociatedSlot()
           
 FacetConstraint getConstraint()
           
 String getInvalidValuesText(Frame frame, Slot slot, Collection values)
           
 String getInvalidValueText(Frame frame, Slot slot, Object item)
           
 ValueType getValueType()
           
 boolean isValidValue(Frame frame, Slot slot, Object value)
           
 void removeFacetListener(FacetListener listener)
           
 void setAssociatedSlot(Slot slot)
           
 void setConstraint(FacetConstraint constraint)
           
 
Methods inherited from interface edu.stanford.smi.protege.model.Instance
addInstanceListener, getDirectType, getReachableSimpleInstances, hasDirectType, hasType, removeInstanceListener, setDirectType
 
Methods inherited from interface edu.stanford.smi.protege.model.Frame
addFrameListener, addOwnFacetValue, addOwnSlotValue, areValidOwnSlotValues, deepCopy, delete, getBrowserText, getDocumentation, getFrameID, getInvalidOwnSlotValuesText, getInvalidOwnSlotValueText, getKnowledgeBase, getName, getOwnFacetValue, getOwnFacetValues, getOwnSlotAllowsMultipleValues, getOwnSlotAndSubslotValues, getOwnSlotDefaultValues, getOwnSlotFacets, getOwnSlotFacetValues, getOwnSlots, getOwnSlotValue, getOwnSlotValueCount, getOwnSlotValues, getOwnSlotValueType, getProject, getReferences, getReferences, hasOwnSlot, isEditable, isIncluded, isSystem, isValid, isValidOwnSlotValue, isVisible, moveOwnSlotValue, removeFrameListener, removeOwnSlotValue, setDocumentation, setDocumentation, setEditable, setIncluded, setName, setOwnFacetValue, setOwnFacetValues, setOwnSlotValue, setOwnSlotValues, setVisible
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

addFacetListener

public void addFacetListener(FacetListener listener)

areValidValues

public boolean areValidValues(Frame frame,
                              Slot slot,
                              Collection values)

getAssociatedSlot

public Slot getAssociatedSlot()

getConstraint

public FacetConstraint getConstraint()

getInvalidValuesText

public String getInvalidValuesText(Frame frame,
                                   Slot slot,
                                   Collection values)

getInvalidValueText

public String getInvalidValueText(Frame frame,
                                  Slot slot,
                                  Object item)

getValueType

public ValueType getValueType()

isValidValue

public boolean isValidValue(Frame frame,
                            Slot slot,
                            Object value)

removeFacetListener

public void removeFacetListener(FacetListener listener)

setAssociatedSlot

public void setAssociatedSlot(Slot slot)

setConstraint

public void setConstraint(FacetConstraint constraint)

Protege-2000 1.7

Submit a bug report or feature request
Protege-2000 is a trademark of Stanford University.
Copyright (c) 1998-2002 Stanford University.