edu.stanford.smi.protegex.owl.model.classdisplay
Class AbstractOWLClassDisplay
java.lang.Object
edu.stanford.smi.protegex.owl.model.classdisplay.AbstractOWLClassDisplay
- All Implemented Interfaces:
- OWLClassDisplay
- Direct Known Subclasses:
- CompactOWLClassDisplay, ManchesterOWLClassDisplay
- public abstract class AbstractOWLClassDisplay
- extends Object
- implements OWLClassDisplay
A basic implementation of OWLClassRenderer which uses infix notation based on the
keys defined by the various methods in the implementing classes.
- Author:
- Holger Knublauch
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractOWLClassDisplay
public AbstractOWLClassDisplay()
getDisplayText
public String getDisplayText(RDFSClass cls)
- Description copied from interface:
OWLClassDisplay
- Gets the display text for a given class expression.
This will be used in the
getBrowserText()
call of the class.
- Specified by:
getDisplayText
in interface OWLClassDisplay
- Parameters:
cls
- the class to get the text for
- Returns:
- the display text (not null)
getSymbol
public String getSymbol(OWLAnonymousClass cls)
- Description copied from interface:
OWLClassDisplay
- Gets the keyword for a class of a given type. Depending on the provided argument
this should fork into the corresponding helper methods such as
getOWLHasValueSymbol()
if the argument is an OWLHasValue restriction.
- Specified by:
getSymbol
in interface OWLClassDisplay
- Parameters:
cls
- the class to get the key for
- Returns:
- the key (undefined for OWLEnumeratedClasses)
getDisplayTextOfOWLComplementClass
protected String getDisplayTextOfOWLComplementClass(OWLComplementClass cls)
getDisplayTextOfOWLEnumeratedClass
protected String getDisplayTextOfOWLEnumeratedClass(OWLEnumeratedClass cls)
getDisplayTextOfOWLRestriction
protected String getDisplayTextOfOWLRestriction(OWLRestriction restriction)
getOWLRestrictionFillerText
protected String getOWLRestrictionFillerText(OWLRestriction restriction)
getDisplayTextOfOWLNAryLogicalClass
protected String getDisplayTextOfOWLNAryLogicalClass(OWLNAryLogicalClass cls)
getNestedDisplayText
protected String getNestedDisplayText(RDFSClass cls)