edu.stanford.smi.protege.model
Class AbstractFacetConstraint
java.lang.Object
edu.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
AbstractFacetConstraint
public AbstractFacetConstraint()
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()
- Overrides:
toString
in class Object
Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2011 Stanford University.