Protege 3.4.1

edu.stanford.smi.protege.model
Class MaximumCardinalityConstraint

java.lang.Object
  extended by edu.stanford.smi.protege.model.AbstractFacetConstraint
      extended by edu.stanford.smi.protege.model.MaximumCardinalityConstraint
All Implemented Interfaces:
FacetConstraint, Serializable

public class MaximumCardinalityConstraint
extends AbstractFacetConstraint

Constraint on the maximum number of values that a slot may have.

Author:
Ray Fergerson
See Also:
Serialized Form

Constructor Summary
MaximumCardinalityConstraint()
           
 
Method Summary
static boolean allowsMultipleValues(Integer i)
           
 String getInvalidValuesText(Frame frame, Slot slot, Collection slotValues, Collection facetValues)
           
 String getInvalidValueText(Frame frame, Slot slot, Object o, Collection facetValues)
           
static Integer getValue(boolean allowsMultiple)
           
static Integer getValue(int i)
           
static int getValue(Integer i)
           
static Collection getValues(boolean allowsMultiple)
           
 Collection resolve(Collection existingValues, Collection newValues)
           
 
Methods inherited from class edu.stanford.smi.protege.model.AbstractFacetConstraint
areValidValues, equals, isValidValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MaximumCardinalityConstraint

public MaximumCardinalityConstraint()
Method Detail

getInvalidValuesText

public String getInvalidValuesText(Frame frame,
                                   Slot slot,
                                   Collection slotValues,
                                   Collection facetValues)

getInvalidValueText

public String getInvalidValueText(Frame frame,
                                  Slot slot,
                                  Object o,
                                  Collection facetValues)

allowsMultipleValues

public static boolean allowsMultipleValues(Integer i)

getValue

public static int getValue(Integer i)

getValue

public static Integer getValue(int i)

getValue

public static Integer getValue(boolean allowsMultiple)

getValues

public static Collection getValues(boolean allowsMultiple)

resolve

public Collection resolve(Collection existingValues,
                          Collection newValues)

Protege 3.4.1

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