Protege 3.3.1

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)
           
 boolean getAllowsMultipleValues()
           
 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)
           
 Collection resolveValues(Collection originalValues, Collection newValues)
           
 void setAssociatedSlot(Slot slot)
           
 void setConstraint(FacetConstraint constraint)
           
 
Methods inherited from interface edu.stanford.smi.protege.model.Instance
addDirectType, addInstanceListener, getDirectType, getDirectTypes, getReachableSimpleInstances, hasDirectType, hasType, moveDirectType, removeDirectType, removeInstanceListener, setDirectType, setDirectTypes
 
Methods inherited from interface edu.stanford.smi.protege.model.Frame
addFrameListener, addOwnFacetValue, addOwnSlotValue, areValidOwnSlotValues, copy, deepCopy, delete, getBrowserText, getDirectOwnSlotValue, getDirectOwnSlotValues, getDocumentation, getFrameID, getIcon, getInvalidOwnSlotValuesText, getInvalidOwnSlotValueText, getKnowledgeBase, getName, getOwnFacetValue, getOwnFacetValues, getOwnSlotAllowsMultipleValues, getOwnSlotAndSubslotValues, getOwnSlotDefaultValues, getOwnSlotFacets, getOwnSlotFacetValues, getOwnSlots, getOwnSlotValue, getOwnSlotValueCount, getOwnSlotValues, getOwnSlotValueType, getProject, getReferences, getReferences, hasOwnSlot, isBeingDeleted, isDeleted, isEditable, isIncluded, isSystem, isValid, isValidOwnSlotValue, isVisible, markDeleted, markDeleting, moveDirectOwnSlotValue, removeFrameListener, removeOwnSlotValue, setDirectOwnSlotValue, setDirectOwnSlotValues, setDocumentation, setDocumentation, setEditable, setIncluded, setName, setOwnFacetValue, setOwnFacetValues, setOwnSlotValue, setOwnSlotValues, setVisible, shallowCopy
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

addFacetListener

void addFacetListener(FacetListener listener)

areValidValues

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

getAssociatedSlot

Slot getAssociatedSlot()

getConstraint

FacetConstraint getConstraint()

getInvalidValuesText

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

getInvalidValueText

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

getValueType

ValueType getValueType()

getAllowsMultipleValues

boolean getAllowsMultipleValues()

isValidValue

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

removeFacetListener

void removeFacetListener(FacetListener listener)

setAssociatedSlot

void setAssociatedSlot(Slot slot)

setConstraint

void setConstraint(FacetConstraint constraint)

resolveValues

Collection resolveValues(Collection originalValues,
                         Collection newValues)

Protege 3.3.1

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