Protege 3.0

edu.stanford.smi.protege.model
Class AbstractFacetConstraint

java.lang.Object
  extended byedu.stanford.smi.protege.model.AbstractFacetConstraint
All Implemented Interfaces:
FacetConstraint, Serializable
Direct Known Subclasses:
DefaultValuesConstraint, MaximumCardinalityConstraint, MinimumCardinalityConstraint, NumericMaximumConstraint, NumericMinimumConstraint, RoleConstraint, ValueTypeConstraint

public abstract class AbstractFacetConstraint
extends Object
implements FacetConstraint, Serializable

Base class for implementions of FacetConstraint. Implementations are provided for the is/are valid methods that just get the "invalid text" descriptions of the problems and test it. If there is "invalid text" then the values are not valid.

Author:
Ray Fergerson
See Also:
Serialized Form

Constructor Summary
AbstractFacetConstraint()
           
 
Method Summary
 boolean areValidValues(Frame frame, Slot slot, Collection slotValues, Collection facetValues)
           
static boolean equals(Object o1, Object o2)
           
 boolean isValidValue(Frame frame, Slot slot, Object o, Collection facetValues)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.stanford.smi.protege.model.FacetConstraint
getInvalidValuesText, getInvalidValueText, resolve
 

Constructor Detail

AbstractFacetConstraint

public AbstractFacetConstraint()
Method Detail

areValidValues

public boolean areValidValues(Frame frame,
                              Slot slot,
                              Collection slotValues,
                              Collection facetValues)
Specified by:
areValidValues in interface FacetConstraint

isValidValue

public boolean isValidValue(Frame frame,
                            Slot slot,
                            Object o,
                            Collection facetValues)
Specified by:
isValidValue in interface FacetConstraint

equals

public static boolean equals(Object o1,
                             Object o2)

toString

public String toString()

Protege 3.0

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