|
Protégé-OWL 3.4.8 | ||||||||
| 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
public class DefaultOWLHasValue
A Cls representing a hasValue restriction.
| Field Summary | |
|---|---|
static char |
OPERATOR
The unicode operator symbol for this kind of restriction |
| 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 |
|---|
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, 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, rename, setAbstract, setDirectBrowserSlot, setDirectTypeOfSubclasses, setTemplateFacetValue, setTemplateFacetValues, setTemplateSlotAllowedClses, setTemplateSlotAllowedParents, setTemplateSlotAllowedValues, setTemplateSlotAllowsMultipleValues, setTemplateSlotDefaultValues, setTemplateSlotDocumentation, setTemplateSlotDocumentation, setTemplateSlotMaximumCardinality, setTemplateSlotMaximumValue, setTemplateSlotMinimumCardinality, setTemplateSlotMinimumValue, setTemplateSlotValue, setTemplateSlotValues, setTemplateSlotValueType |
| 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, assertFrameName, 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, removeFrameListener, removeOwnSlotValue, setDirectOwnSlotValue, setDirectOwnSlotValues, setDocumentation, setEditable, setIncluded, setOwnFacetValue, setOwnFacetValues, setOwnSlotValue, setOwnSlotValues, setSystem, setVisible |
| 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.protegex.owl.model.OWLClass |
|---|
getDisjointClasses |
| Methods inherited from interface edu.stanford.smi.protege.model.Instance |
|---|
moveDirectType |
| Methods inherited from interface edu.stanford.smi.protege.model.Frame |
|---|
assertFrameName, getFrameID, isValid, moveDirectOwnSlotValue |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface edu.stanford.smi.protege.model.Cls |
|---|
getBrowserSlot, getDirectBrowserSlot, getInheritedBrowserSlot, rename |
| Methods inherited from interface edu.stanford.smi.protege.model.Instance |
|---|
moveDirectType |
| Methods inherited from interface edu.stanford.smi.protege.model.Frame |
|---|
assertFrameName, getFrameID, isValid, moveDirectOwnSlotValue |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface edu.stanford.smi.protege.model.Instance |
|---|
moveDirectType |
| Methods inherited from interface edu.stanford.smi.protege.model.Frame |
|---|
assertFrameName, getFrameID, isValid, moveDirectOwnSlotValue |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| 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)
VisitableOWLModelVisitor,
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 Visitablevisitor - The visitor that will operate on this object.
public void checkFillerText(String text)
throws Exception
OWLRestriction
checkFillerText in interface OWLRestrictiontext - the potential filler value
Exception - to indicate a parse exception
public static void checkFillerText(String text,
RDFProperty onProperty)
throws OWLClassParseException
OWLClassParseExceptionpublic boolean equalsStructurally(RDFObject object)
RDFObject
equalsStructurally in interface RDFObjectobject - 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 OWLRestrictionpublic String getFillerText()
OWLRestriction
getFillerText in interface OWLRestrictionpublic Object getHasValue()
OWLHasValue
getHasValue in interface OWLHasValueOWLHasValue.setHasValue(java.lang.Object)public String getIconName()
RDFResourcegetIconLocation().
getIconName in interface RDFResourceRDFResource.getIconLocation()public void getNestedNamedClasses(Set set)
RDFSClass
getNestedNamedClasses in interface RDFSClassset - 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 OWLRestrictiontext - the new filler value
Exception - to indicate a parse exceptionpublic void setHasValue(Object value)
OWLHasValue
setHasValue in interface OWLHasValuevalue - either an RDFResource, an RDFSLiteral or a primitive
value (String, Float, Integer, or Boolean)
|
Protégé-OWL 3.4.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||