Package org.semanticweb.owlapi.model
Class OWLDocumentFormatImpl
java.lang.Object
org.semanticweb.owlapi.model.OWLDocumentFormatImpl
- All Implemented Interfaces:
Serializable
,OWLDocumentFormat
- Direct Known Subclasses:
AbstractRDFNonPrefixDocumentFormat
,DLSyntaxDocumentFormat
,DLSyntaxHTMLDocumentFormat
,KRSS2DocumentFormat
,KRSSDocumentFormat
,LabelFunctionalDocumentFormat
,LatexAxiomsListDocumentFormat
,LatexDocumentFormat
,OBODocumentFormat
,PrefixDocumentFormatImpl
Represents the concrete representation format of an ontology. The equality of
an ontology format is defined by the equals and hashCode method (not its
identity).
- Since:
- 2.0.0
- Author:
- Matthew Horridge, The University Of Manchester, Bio-Health Informatics Group
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
If this format describes an ontology that was loaded from some ontology document (rather than created programmatically) there may be some meta data about the loading process.<T> T
getParameter
(Serializable key, T defaultValue) int
hashCode()
boolean
Determines if untyped entities should automatically be typed (declared) during rendering.boolean
Determines whether this format contains textual output, as opposed to binary output.void
setAddMissingTypes
(boolean addMissingTypes) Determines if untyped entities should automatically be typed during rendering.void
setOntologyLoaderMetaData
(OWLOntologyLoaderMetaData loaderMetaData) Sets the meta data for the ontology loader.void
setParameter
(Serializable key, Serializable value) toString()
Methods inherited from interface org.semanticweb.owlapi.model.OWLDocumentFormat
asPrefixOWLDocumentFormat, getKey, isPrefixOWLDocumentFormat, supportsRelativeIRIs
-
Constructor Details
-
OWLDocumentFormatImpl
public OWLDocumentFormatImpl()
-
-
Method Details
-
isAddMissingTypes
public boolean isAddMissingTypes()Description copied from interface:OWLDocumentFormat
Determines if untyped entities should automatically be typed (declared) during rendering. (This is a hint to an RDF renderer - the reference implementation will respect this).- Specified by:
isAddMissingTypes
in interfaceOWLDocumentFormat
- Returns:
true
if untyped entities should automatically be typed during rendering, otherwisefalse
.
-
setAddMissingTypes
public void setAddMissingTypes(boolean addMissingTypes) Description copied from interface:OWLDocumentFormat
Determines if untyped entities should automatically be typed during rendering. By default this is true.- Specified by:
setAddMissingTypes
in interfaceOWLDocumentFormat
- Parameters:
addMissingTypes
-true
if untyped entities should automatically be typed during rendering, otherwisefalse
.
-
setParameter
- Specified by:
setParameter
in interfaceOWLDocumentFormat
- Parameters:
key
- key for the new entryvalue
- value for the new entry
-
getParameter
- Specified by:
getParameter
in interfaceOWLDocumentFormat
- Type Parameters:
T
- type- Parameters:
key
- key for the new entrydefaultValue
- value for the new entry- Returns:
- the value
-
getOntologyLoaderMetaData
Description copied from interface:OWLDocumentFormat
If this format describes an ontology that was loaded from some ontology document (rather than created programmatically) there may be some meta data about the loading process. Subclasses ofOWLDocumentFormat
will provide accessors etc. to details pertaining to the meta data about loading.- Specified by:
getOntologyLoaderMetaData
in interfaceOWLDocumentFormat
- Returns:
- An object containing the meta data about loading. .
-
setOntologyLoaderMetaData
Description copied from interface:OWLDocumentFormat
Sets the meta data for the ontology loader.- Specified by:
setOntologyLoaderMetaData
in interfaceOWLDocumentFormat
- Parameters:
loaderMetaData
- The metadata.
-
isTextual
public boolean isTextual()Description copied from interface:OWLDocumentFormat
Determines whether this format contains textual output, as opposed to binary output.- Specified by:
isTextual
in interfaceOWLDocumentFormat
- Returns:
- True if this format represents a textual format, as opposed to a binary format. Defaults to true if not overridden.
-
equals
-
hashCode
public int hashCode() -
toString
-