|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.manchester.cs.owl.owlapi.mansyntaxrenderer.ManchesterOWLSyntaxPrefixNameShortFormProvider
public class ManchesterOWLSyntaxPrefixNameShortFormProvider
Author: Matthew Horridge
The University of Manchester
Information Management Group
Date: 28-Jun-2009
A special short form provider that delegates to a prefix manager to obtain short forms. The only difference
between this short form provider and a prefix manager is that names with the default prefix do not have a colon
with this short form provider.
Constructor Summary | |
---|---|
ManchesterOWLSyntaxPrefixNameShortFormProvider(DefaultPrefixManager prefixManager)
Constructs a short form provider that uses the specified prefix mappings |
|
ManchesterOWLSyntaxPrefixNameShortFormProvider(OWLOntologyFormat format)
Constructs a short form provider that reuses any prefix name mappings from the specified ontology format |
|
ManchesterOWLSyntaxPrefixNameShortFormProvider(OWLOntologyManager man,
OWLOntology ont)
Constructs a short form provider that reuses any prefix name mappings obtainable from the format of the specified ontology (the manager will be asked for the ontology format of the specified ontology) |
Method Summary | |
---|---|
void |
dispose()
Disposes of the short form proivider. |
PrefixManager |
getPrefixManager()
|
java.lang.String |
getShortForm(IRI iri)
Gets the short form for an IRI |
java.lang.String |
getShortForm(OWLEntity entity)
Gets the short form for the specified entity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ManchesterOWLSyntaxPrefixNameShortFormProvider(OWLOntologyManager man, OWLOntology ont)
man
- The manageront
- The ontologypublic ManchesterOWLSyntaxPrefixNameShortFormProvider(OWLOntologyFormat format)
format
- The format from which prefix name mappings will be reusedpublic ManchesterOWLSyntaxPrefixNameShortFormProvider(DefaultPrefixManager prefixManager)
prefixManager
- A prefix manager which will be used to obtain prefix mappingsMethod Detail |
---|
public PrefixManager getPrefixManager()
public java.lang.String getShortForm(OWLEntity entity)
getShortForm
in interface ShortFormProvider
entity
- The entity.
public java.lang.String getShortForm(IRI iri)
iri
- The IRI
public void dispose()
dispose
in interface ShortFormProvider
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |