public class SerializableOntology extends Ontology
Modifier and Type | Field and Description |
---|---|
private static String |
SERIALIZABLE |
private static String |
SERIALIZABLE_VALUE |
private static SerializableOntology |
theInstance |
Modifier | Constructor and Description |
---|---|
private |
SerializableOntology()
Construct a SerializableOntology object
|
Modifier and Type | Method and Description |
---|---|
protected AbsObject |
fromObject(Object obj,
Ontology globalOnto)
Converts a Java object into a proper abstract descriptor.
|
static Ontology |
getInstance()
Returns the singleton instance of the
SerializableOntology . |
protected Object |
toObject(AbsObject abs,
String lcType,
Ontology globalOnto)
Converts an abstract descriptor to a Java object of the proper class.
|
add, add, checkIsTerm, createConceptSlotFunction, externalize, externalizeSlotValue, fromObject, getActionNames, getClassForElement, getConceptNames, getIntrospector, getName, getOwnActionNames, getOwnConceptNames, getOwnPredicateNames, getPredicateNames, getSchema, getSchema, getSlotValue, internalize, internalizeSlotValue, setSlotValue, toObject, toString, useConceptSlotsAsFunctions
private static final SerializableOntology theInstance
private static final String SERIALIZABLE
private static final String SERIALIZABLE_VALUE
private SerializableOntology()
public static Ontology getInstance()
SerializableOntology
.SerializableOntology
protected Object toObject(AbsObject abs, String lcType, Ontology globalOnto) throws UnknownSchemaException, UngroundedException, OntologyException
Ontology
toObject
in class Ontology
abs
- the abstract descriptor.lcType
- the type of the abstract descriptor to be translated
aconverted into lower case. This is passed as parameters to avoid
making the conversion to lower case for each base ontology.globalOnto
- The ontology this ontology is part of (i.e. the
ontology that extends this ontology).UnknownSchemaException
- If no schema for the abs descriptor
to be translated is defined in this ontology.UngroundedException
- if the abstract descriptor contains a
variableOntologyException
- if some mismatch with the schema is found * ontology. In this case UnknownSchemaprotected AbsObject fromObject(Object obj, Ontology globalOnto) throws UnknownSchemaException, OntologyException
Ontology
fromObject
in class Ontology
obj
- the objectglobalOnto
- The ontology this ontology is part of (i.e. the
ontology that extends this ontology).UnknownSchemaException
- If no schema for the object to be
translated is defined in this ontology.OntologyException
- if some mismatch with the schema is found