public class ManchesterSyntaxExplanationRenderer extends Object implements com.clarkparsia.owlapi.explanation.io.ExplanationRenderer
| Modifier and Type | Field and Description |
|---|---|
protected org.semanticweb.owlapi.model.OWLAxiom |
currentAxiom |
protected ManchesterSyntaxObjectRenderer |
renderer |
protected BlockWriter |
writer |
| Constructor and Description |
|---|
ManchesterSyntaxExplanationRenderer() |
| Modifier and Type | Method and Description |
|---|---|
void |
endRendering() |
protected org.semanticweb.owlapi.model.OWLAxiom |
getCurrentAxiom()
Returns the current axioms being whose explanation is being rendered or
null if no axiom has been provided. |
boolean |
isSmartIndent()
Returns the current smart indent value.
|
boolean |
isWrapLines()
Returns the current line wrapping value.
|
void |
render(org.semanticweb.owlapi.model.OWLAxiom axiom,
Set<Set<org.semanticweb.owlapi.model.OWLAxiom>> explanations) |
void |
render(Set<Set<org.semanticweb.owlapi.model.OWLAxiom>> explanations)
Render an explanation without the axiom header.
|
protected void |
renderSingleExplanation(Set<org.semanticweb.owlapi.model.OWLAxiom> explanation) |
protected void |
setCurrentAxiom(org.semanticweb.owlapi.model.OWLAxiom currentAxiom) |
void |
setSmartIndent(boolean smartIndent)
Sets the smart indent option which will align the elements of
intersections and unions in columns when line wrapping is turned on.
|
void |
setWrapLines(boolean wrapLines)
Sets the line wrapping option which will print the elements of
intersections and unions into multiple lines.
|
void |
startRendering(Writer w) |
protected ManchesterSyntaxObjectRenderer renderer
protected BlockWriter writer
protected org.semanticweb.owlapi.model.OWLAxiom currentAxiom
public void endRendering()
endRendering in interface com.clarkparsia.owlapi.explanation.io.ExplanationRendererprotected org.semanticweb.owlapi.model.OWLAxiom getCurrentAxiom()
null if no axiom has been provided.null if no axiom has been providedpublic boolean isSmartIndent()
public boolean isWrapLines()
public void render(Set<Set<org.semanticweb.owlapi.model.OWLAxiom>> explanations) throws org.semanticweb.owlapi.model.OWLException, IOException, UnsupportedOperationException
explanations - Set of explanations we are renderingorg.semanticweb.owlapi.model.OWLExceptionIOExceptionUnsupportedOperationExceptionpublic void render(org.semanticweb.owlapi.model.OWLAxiom axiom,
Set<Set<org.semanticweb.owlapi.model.OWLAxiom>> explanations)
throws org.semanticweb.owlapi.model.OWLException,
IOException
render in interface com.clarkparsia.owlapi.explanation.io.ExplanationRendererorg.semanticweb.owlapi.model.OWLExceptionIOExceptionprotected void renderSingleExplanation(Set<org.semanticweb.owlapi.model.OWLAxiom> explanation) throws org.semanticweb.owlapi.model.OWLException, IOException
org.semanticweb.owlapi.model.OWLExceptionIOExceptionprotected void setCurrentAxiom(org.semanticweb.owlapi.model.OWLAxiom currentAxiom)
public void setSmartIndent(boolean smartIndent)
smartIndent - the smart indent valuesetWrapLines(boolean)public void setWrapLines(boolean wrapLines)
wrapLines - the line wrapping valuepublic void startRendering(Writer w)
startRendering in interface com.clarkparsia.owlapi.explanation.io.ExplanationRendererCopyright © 2019. All rights reserved.