|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.smi.protege.model.DefaultFrame
edu.stanford.smi.protege.model.DefaultInstance
edu.stanford.smi.protege.model.DefaultCls
edu.stanford.smi.protegex.owl.model.impl.AbstractRDFSClass
edu.stanford.smi.protegex.owl.model.impl.AbstractOWLAnonymousClass
edu.stanford.smi.protegex.owl.model.impl.AbstractOWLRestriction
edu.stanford.smi.protegex.owl.model.impl.AbstractOWLCardinalityBase
The base class of MaxCardi and OWLMinCardinality.
Field Summary | |
private char |
operatorChar
|
Fields inherited from class edu.stanford.smi.protege.model.DefaultFrame |
|
Constructor Summary | |
(package private) |
AbstractOWLCardinalityBase(char operatorChar)
|
|
AbstractOWLCardinalityBase(edu.stanford.smi.protege.model.KnowledgeBase kb,
edu.stanford.smi.protege.model.FrameID id,
char operatorChar)
|
Method Summary | |
void |
checkFillerText(String text)
Checks the filler from a textual expression. |
static void |
checkFillerText(String text,
RDFProperty property)
|
boolean |
equalsStructurally(RDFObject object)
Determines whether or not the specified class is structurally equal to this class. |
int |
getCardinality()
Gets the cardinality value in this restriction. |
String |
getFillerText()
Gets the filler of this restriction for display purposes. |
void |
getNestedNamedClasses(Set set)
Gets all RDFSClses that are somewhere used in the expression below this. |
RDFSClass |
getQualifier()
Gets the qualifier class. |
RDFSClass |
getValuesFrom()
If this is a qualified cardinality restriction, then this gets the owl:valuesFrom property value. |
boolean |
isQualified()
Checks if this is a qualified cardinality restriction. |
void |
setCardinality(int value)
Sets the cardinality value in this restriction. |
void |
setFillerText(String text)
Sets the filler from a (valid) textual expression. |
void |
setValuesFrom(RDFSClass value)
|
Methods inherited from class edu.stanford.smi.protegex.owl.model.impl.AbstractOWLRestriction |
checkExpression, getBrowserTextFiller, getBrowserTextPropertyName, getNestedBrowserText, getOnProperty, isDefined, isFillerDefined, setOnProperty |
Methods inherited from class edu.stanford.smi.protegex.owl.model.impl.AbstractOWLAnonymousClass |
createClone, getBrowserText, getDependingClasses, getExpressionRoot, getIcon, getImageIcon, getOwner, isAnonymous, isVisible |
Methods inherited from class edu.stanford.smi.protege.model.DefaultCls |
addClsListener, addDirectSuperclass, addDirectTemplateSlot, addTemplateFacetValue, addTemplateSlotValue, createDirectInstance, getBrowserSlot, getBrowserSlotPattern, getConcreteSubclasses, getDirectBrowserSlot, getDirectBrowserSlotPattern, getDirectInstanceCount, getDirectInstances, getDirectlyOverriddenTemplateFacets, getDirectSubclassCount, getDirectSubclasses, getDirectSuperclassCount, getDirectSuperclasses, getDirectTemplateFacetValues, getDirectTemplateSlots, getDirectTemplateSlotValues, getInheritedBrowserSlot, getInheritedBrowserSlotPattern, getInstanceCount, getInstances, getOverriddenTemplateFacets, getSubclasses, getSuperclasses, getTemplateFacets, getTemplateFacetValue, getTemplateFacetValues, getTemplateSlotAllowedClses, getTemplateSlotAllowedParents, getTemplateSlotAllowedValues, getTemplateSlotAllowsMultipleValues, getTemplateSlotDefaultValues, getTemplateSlotDocumentation, getTemplateSlotMaximumCardinality, getTemplateSlotMaximumValue, getTemplateSlotMinimumCardinality, getTemplateSlotMinimumValue, getTemplateSlots, getTemplateSlotValue, getTemplateSlotValues, getTemplateSlotValueType, getVisibleDirectSubclassCount, getVisibleDirectSubclasses, getVisibleTemplateSlots, hasDirectlyOverriddenTemplateFacet, hasDirectlyOverriddenTemplateSlot, hasDirectSuperclass, hasDirectTemplateSlot, hasInheritedTemplateSlot, hasOverriddenTemplateFacet, hasOverriddenTemplateSlot, hasSuperclass, hasTemplateFacet, hasTemplateSlot, isAbstract, isClsMetaCls, isConcrete, isDefaultClsMetaCls, isDefaultFacetMetaCls, isDefaultSlotMetaCls, isFacetMetaCls, isMetaCls, isRoot, isSlotMetaCls, moveDirectSubclass, moveDirectTemplateSlot, removeClsListener, removeDirectSuperclass, removeDirectTemplateSlot, removeTemplateFacetOverrides, setAbstract, setDirectBrowserSlot, setDirectBrowserSlotPattern, setDirectTypeOfSubclasses, setTemplateFacetValue, setTemplateFacetValues, setTemplateSlotAllowedClses, setTemplateSlotAllowedParents, setTemplateSlotAllowedValues, setTemplateSlotAllowsMultipleValues, setTemplateSlotDefaultValues, setTemplateSlotDocumentation, setTemplateSlotDocumentation, setTemplateSlotMaximumCardinality, setTemplateSlotMaximumValue, setTemplateSlotMinimumCardinality, setTemplateSlotMinimumValue, setTemplateSlotValue, setTemplateSlotValues, setTemplateSlotValueType, toString |
Methods inherited from class edu.stanford.smi.protege.model.DefaultInstance |
addDirectType, addInstanceListener, copy, deepCopy, getDirectType, getDirectTypes, getOwnFacetValue, getOwnFacetValues, getReachableSimpleInstances, hasDirectType, hasType, moveDirectType, removeDirectType, removeInstanceListener, setDirectType, setDirectTypes, shallowCopy |
Methods inherited from class edu.stanford.smi.protege.model.DefaultFrame |
addFrameListener, addOwnFacetValue, addOwnSlotValue, areValidOwnSlotValues, compareTo, delete, equals, equals, getDefaultKnowledgeBase, getDefiningProjectURI, getDirectOwnSlotValue, getDirectOwnSlotValues, getFrameID, getInvalidOwnSlotValuesText, getInvalidOwnSlotValueText, getKnowledgeBase, getName, getOwnSlotAllowsMultipleValues, getOwnSlotAndSubslotValues, getOwnSlotDefaultValues, getOwnSlotFacets, getOwnSlotFacetValues, getOwnSlots, getOwnSlotValue, getOwnSlotValueCount, getOwnSlotValues, getOwnSlotValueType, getProject, getReferences, getReferences, hashCode, hasOwnSlot, isBeingDeleted, isDeleted, isEditable, isIncluded, isSystem, isValid, isValidOwnSlotValue, localize, markDeleted, markDeleting, moveDirectOwnSlotValue, readExternal, removeFrameListener, removeOwnSlotValue, setDirectOwnSlotValue, setDirectOwnSlotValues, setDocumentation, setEditable, setIncluded, setName, setOwnFacetValue, setOwnFacetValues, setOwnSlotValue, setOwnSlotValues, setSystem, setVisible, writeExternal |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface edu.stanford.smi.protegex.owl.model.OWLRestriction |
getFillerProperty, getOnProperty, getOperator, isDefined, setOnProperty |
Methods inherited from interface edu.stanford.smi.protegex.owl.model.OWLAnonymousClass |
getExpressionRoot, getOwner |
Methods inherited from interface edu.stanford.smi.protege.model.Instance |
moveDirectType |
Methods inherited from interface edu.stanford.smi.protege.model.Frame |
delete, getName, isValid, isVisible, moveDirectOwnSlotValue, setName, setVisible |
Methods inherited from interface java.lang.Comparable |
compareTo |
Methods inherited from interface edu.stanford.smi.protege.model.Cls |
getBrowserSlot, getDirectBrowserSlot, getInheritedBrowserSlot |
Methods inherited from interface edu.stanford.smi.protegex.owl.model.visitor.Visitable |
accept |
Field Detail |
private final char operatorChar
Constructor Detail |
public AbstractOWLCardinalityBase(edu.stanford.smi.protege.model.KnowledgeBase kb, edu.stanford.smi.protege.model.FrameID id, char operatorChar)
AbstractOWLCardinalityBase(char operatorChar)
Method Detail |
public void checkFillerText(String text) throws Exception
OWLRestriction
checkFillerText
in interface OWLRestriction
text
- the potential filler value
Exception
- to indicate a parse exceptionpublic static void checkFillerText(String text, RDFProperty property) throws OWLClassParseException, NumberFormatException
OWLClassParseException
NumberFormatException
public boolean equalsStructurally(RDFObject object)
RDFObject
equalsStructurally
in interface RDFObject
object
- The class to test against.
true
if the class is structurally equal
to this, false
if the class is not structurally
equal to this.public int getCardinality()
OWLCardinalityBase
getCardinality
in interface OWLCardinalityBase
public RDFSClass getQualifier()
OWLCardinalityBase
getQualifier
in interface OWLCardinalityBase
getValuesFrom()
.public RDFSClass getValuesFrom()
OWLCardinalityBase
getValuesFrom
in interface OWLCardinalityBase
public String getFillerText()
OWLRestriction
getFillerText
in interface OWLRestriction
public void getNestedNamedClasses(Set set)
RDFSClass
getNestedNamedClasses
in interface RDFSClass
set
- an (initially empty) Set that will contain the nested named classespublic boolean isQualified()
OWLCardinalityBase
isQualified
in interface OWLCardinalityBase
public void setCardinality(int value)
OWLCardinalityBase
setCardinality
in interface OWLCardinalityBase
value
- the new cardinality valuepublic void setFillerText(String text) throws Exception
OWLRestriction
setFillerText
in interface OWLRestriction
text
- the new filler value
Exception
- to indicate a parse exceptionpublic void setValuesFrom(RDFSClass value)
setValuesFrom
in interface OWLCardinalityBase
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |