edu.stanford.smi.protegex.owl.ui.clsproperties
Class PropertyTreeNode
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
edu.stanford.smi.protegex.owl.ui.clsproperties.PropertyTreeNode
- All Implemented Interfaces:
- Cloneable, Comparable, edu.stanford.smi.protege.util.Disposable, MutableTreeNode, Serializable, TreeNode
- public class PropertyTreeNode
- extends DefaultMutableTreeNode
- implements Comparable, edu.stanford.smi.protege.util.Disposable
- See Also:
- Serialized Form
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString |
cls
private OWLNamedClass cls
inherited
private boolean inherited
tree
private PropertyRestrictionsTree tree
valueListener
private PropertyValueListener valueListener
PropertyTreeNode
public PropertyTreeNode(PropertyRestrictionsTree tree,
OWLNamedClass cls,
RDFProperty property,
boolean inherited)
addChildNodes
private void addChildNodes()
compareTo
public int compareTo(Object o)
- Specified by:
compareTo
in interface Comparable
dispose
public void dispose()
- Specified by:
dispose
in interface edu.stanford.smi.protege.util.Disposable
getRestrictions
private List getRestrictions()
- A helper method to refill the child nodes. This returns a List with relevant OWLRestrictions
that are defined in the class or its superclasses, including operands from
OWLIntersectionClasses. The List is ordered by their distance from the top class, using
a breadth-first algorithm, so that the closest restriction appears at 0.
- Returns:
- a List of OWLRestriction instances
getIcon
public Icon getIcon()
getRDFProperty
public RDFProperty getRDFProperty()
getRestrictedClass
public OWLNamedClass getRestrictedClass()
getRestrictionTreeNode
public RestrictionTreeNode getRestrictionTreeNode(int index)
getRestrictionTreeNode
public OldRestrictionTreeNode getRestrictionTreeNode(OWLRestriction restriction)
getRestrictionTreeNode
public OldRestrictionTreeNode getRestrictionTreeNode(String restrictionText)
isInherited
public boolean isInherited()
hasRestrictionOfType
public boolean hasRestrictionOfType(edu.stanford.smi.protege.model.Cls metaCls)
perhapsAddRestriction
private void perhapsAddRestriction(OWLRestriction restriction,
List rs,
Set overloadedClses)
removeOverloadedAllRestrictions
private void removeOverloadedAllRestrictions(List rs)
removeOverloadedAllRestrictions
private boolean removeOverloadedAllRestrictions(List rs,
int index)