|
|||||||||||
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.DefaultOWLHasValue
A Cls representing a hasValue restriction.
Field Summary | |
static char |
OPERATOR
The unicode operator symbol for this kind of restriction |
Fields inherited from class edu.stanford.smi.protege.model.DefaultFrame |
|
Constructor Summary | |
DefaultOWLHasValue()
|
|
DefaultOWLHasValue(edu.stanford.smi.protege.model.KnowledgeBase kb,
edu.stanford.smi.protege.model.FrameID id)
|
Method Summary | |
void |
accept(OWLModelVisitor visitor)
This method is provided to be used with the OWLModelVisitor ,
which is part of the visitor design pattern. |
void |
checkFillerText(String text)
Checks the filler from a textual expression. |
static void |
checkFillerText(String text,
RDFProperty onProperty)
|
boolean |
equalsStructurally(RDFObject object)
Determines whether or not the specified class is structurally equal to this class. |
RDFProperty |
getFillerProperty()
Gets the Slot that is used to store the filler at this kind of restriction (e.g., owl:cardinality). |
String |
getFillerText()
Gets the filler of this restriction for display purposes. |
Object |
getHasValue()
Gets the owl:hasValue value of this restriction. |
String |
getIconName()
Gets the local name of an icon for this type of resource. |
void |
getNestedNamedClasses(Set set)
Gets all RDFSClses that are somewhere used in the expression below this. |
char |
getOperator()
Gets the Unicode operator character that is typically used to represent this type of restriction. |
void |
setFillerText(String text)
Sets the filler from a (valid) textual expression. |
void |
setHasValue(Object value)
Sets the owl:hasValue of this restriction. |
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 |
getOnProperty, 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 |
Field Detail |
public static final char OPERATOR
Constructor Detail |
public DefaultOWLHasValue(edu.stanford.smi.protege.model.KnowledgeBase kb, edu.stanford.smi.protege.model.FrameID id)
public DefaultOWLHasValue()
Method Detail |
public void accept(OWLModelVisitor visitor)
Visitable
OWLModelVisitor
,
which is part of the visitor design pattern. By implementing this method,
instances of the implementing class are stating that they can accept an
OWLModelVisitor
accept
in interface Visitable
visitor
- The visitor that will operate on this object.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 onProperty) throws OWLClassParseException
OWLClassParseException
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 RDFProperty getFillerProperty()
OWLRestriction
getFillerProperty
in interface OWLRestriction
public String getFillerText()
OWLRestriction
getFillerText
in interface OWLRestriction
public Object getHasValue()
OWLHasValue
getHasValue
in interface OWLHasValue
OWLHasValue.setHasValue(java.lang.Object)
public String getIconName()
RDFResource
getIconLocation()
.
getIconName
in interface RDFResource
RDFResource.getIconLocation()
public void getNestedNamedClasses(Set set)
RDFSClass
getNestedNamedClasses
in interface RDFSClass
set
- an (initially empty) Set that will contain the nested named classespublic char getOperator()
OWLRestriction
getOperator
in interface OWLRestriction
public void setFillerText(String text) throws Exception
OWLRestriction
setFillerText
in interface OWLRestriction
text
- the new filler value
Exception
- to indicate a parse exceptionpublic void setHasValue(Object value)
OWLHasValue
setHasValue
in interface OWLHasValue
value
- either an RDFResource, an RDFSLiteral or a primitive
value (String, Float, Integer, or Boolean)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |