edu.stanford.smi.protege.model
Interface Facet
- All Superinterfaces:
- Comparable, Frame, Instance, Serializable
- 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
Methods inherited from interface edu.stanford.smi.protege.model.Frame |
addFrameListener, addOwnFacetValue, addOwnSlotValue, areValidOwnSlotValues, copy, deepCopy, delete, getBrowserText, getDefiningProjectURI, 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, isDeleted, isEditable, isIncluded, isSystem, isValid, isValidOwnSlotValue, isVisible, markDeleted, moveOwnSlotValue, removeFrameListener, removeOwnSlotValue, setDirectOwnSlotValue, setDirectOwnSlotValues, setDocumentation, setDocumentation, setEditable, setIncluded, setName, setOwnFacetValue, setOwnFacetValues, setOwnSlotValue, setOwnSlotValues, setVisible, shallowCopy |
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()
getAllowsMultipleValues
public boolean getAllowsMultipleValues()
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)
resolveValues
public Collection resolveValues(Collection originalValues,
Collection newValues)
Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2004 Stanford University.