public class ManchesterOWLSyntaxFrameRenderer extends ManchesterOWLSyntaxObjectRenderer implements OWLEntityVisitor
| Constructor and Description |
|---|
ManchesterOWLSyntaxFrameRenderer(Collection<OWLOntology> ontologies,
Writer writer,
ShortFormProvider entityShortFormProvider)
Instantiates a new manchester owl syntax frame renderer.
|
ManchesterOWLSyntaxFrameRenderer(OWLOntology ontology,
Writer writer,
ShortFormProvider entityShortFormProvider)
Instantiates a new manchester owl syntax frame renderer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFilteredAxiomType(AxiomType<?> axiomType)
Adds the filtered axiom type.
|
void |
addRendererListener(RendererListener listener)
Adds the renderer listener.
|
void |
clearFilteredAxiomTypes()
Clear filtered axiom types.
|
boolean |
isDisplayed(OWLAxiom axiom)
Checks if is displayed.
|
boolean |
isFiltered(AxiomType<?> axiomType)
Checks if is filtered.
|
void |
removeRendererListener(RendererListener listener)
Removes the renderer listener.
|
void |
setAxiomFilter(OWLAxiomFilter axiomFilter)
Sets the axiom filter.
|
void |
setOntologyIRIShortFormProvider(OntologyIRIShortFormProvider shortFormProvider) |
void |
setRenderExtensions(boolean renderExtensions)
Sets the render extensions.
|
void |
setRenderingDirector(RenderingDirector renderingDirector)
Sets the rendering director.
|
Collection<OWLAxiom> |
write(OWLAnnotationProperty property) |
Collection<OWLAxiom> |
write(OWLClass cls) |
Collection<OWLAxiom> |
write(OWLDataProperty property) |
Collection<OWLAxiom> |
write(OWLDatatype datatype) |
Collection<OWLAxiom> |
write(OWLIndividual individual) |
Collection<OWLAxiom> |
write(OWLObjectPropertyExpression property) |
Collection<OWLAxiom> |
write(SWRLRule rule) |
Collection<OWLAnnotationAssertionAxiom> |
writeAnnotations(OWLAnnotationSubject subject)
Write annotations.
|
void |
writeComment(String comment,
boolean placeOnNewline)
Write comment.
|
void |
writeComment(String commentDelim,
String comment,
boolean placeOnNewline) |
Collection<OWLAxiom> |
writeFrame(OWLEntity entity)
Write frame.
|
void |
writeFullURI(String uri)
Write full uri.
|
void |
writeOntology()
Write ontology.
|
void |
writeOntologyHeader()
Write ontology header.
|
void |
writePrefixMap()
Write prefix map.
|
void |
writeSection(ManchesterOWLSyntax keyword)
Write section.
|
void |
writeSection(ManchesterOWLSyntax keyword,
Iterator<?> content,
String delimiter,
boolean newline)
Write section.
|
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvisitvisit, visit, visitvisitvisitdoDefault, getDefaultReturnValue, handleDefaultpublic ManchesterOWLSyntaxFrameRenderer(OWLOntology ontology, Writer writer, ShortFormProvider entityShortFormProvider)
ontology - the ontologywriter - the writerentityShortFormProvider - the entity short form providerpublic ManchesterOWLSyntaxFrameRenderer(Collection<OWLOntology> ontologies, Writer writer, ShortFormProvider entityShortFormProvider)
ontologies - the ontologieswriter - the writerentityShortFormProvider - the entity short form providerpublic void setRenderingDirector(RenderingDirector renderingDirector)
renderingDirector - the new rendering directorpublic void setOntologyIRIShortFormProvider(OntologyIRIShortFormProvider shortFormProvider)
shortFormProvider - short form provider to be usedpublic void addRendererListener(RendererListener listener)
listener - the listenerpublic void removeRendererListener(RendererListener listener)
listener - the listenerpublic void setAxiomFilter(OWLAxiomFilter axiomFilter)
axiomFilter - the new axiom filterpublic void clearFilteredAxiomTypes()
public void addFilteredAxiomType(AxiomType<?> axiomType)
axiomType - the axiom typepublic void setRenderExtensions(boolean renderExtensions)
renderExtensions - the new render extensionspublic void writeOntology()
throws OWLRendererException
OWLRendererException - the oWL renderer exceptionpublic void writeOntologyHeader()
public void writePrefixMap()
public void writeFullURI(String uri)
uri - the uripublic boolean isFiltered(AxiomType<?> axiomType)
axiomType - the axiom typepublic boolean isDisplayed(@Nullable OWLAxiom axiom)
axiom - the axiompublic Collection<OWLAxiom> writeFrame(OWLEntity entity)
entity - the entitypublic Collection<OWLAxiom> write(OWLClass cls)
cls - the clspublic Collection<OWLAxiom> write(OWLObjectPropertyExpression property)
property - the propertypublic Collection<OWLAxiom> write(OWLDataProperty property)
property - the propertypublic Collection<OWLAxiom> write(OWLIndividual individual)
individual - the individualpublic Collection<OWLAxiom> write(OWLDatatype datatype)
datatype - the datatypepublic Collection<OWLAxiom> write(SWRLRule rule)
rule - the rulepublic Collection<OWLAxiom> write(OWLAnnotationProperty property)
property - the propertypublic Collection<OWLAnnotationAssertionAxiom> writeAnnotations(OWLAnnotationSubject subject)
subject - the subjectpublic void writeSection(ManchesterOWLSyntax keyword)
keyword - the keywordpublic void writeSection(ManchesterOWLSyntax keyword, Iterator<?> content, String delimiter, boolean newline)
keyword - the keywordcontent - the contentdelimiter - the delimiternewline - the newlinepublic void writeComment(String comment, boolean placeOnNewline)
comment - the commentplaceOnNewline - the place on newlineCopyright © 2017 The University of Manchester. All rights reserved.