Class SerializableOntology

  • All Implemented Interfaces:
    Serializable, Serializable

    public class SerializableOntology
    extends Ontology
    This ontology allows dealing with Java Serializable objects as if they were instances of ontological elements.
    NOT available in MIDP
    Author:
    Giovanni Caire - TILAB
    See Also:
    Serialized Form
    • Method Detail

      • getInstance

        public static Ontology getInstance()
        Returns the singleton instance of the SerializableOntology.
        Returns:
        the singleton instance of the SerializableOntology
      • setClassLoader

        public void setClassLoader​(ClassLoader cl)
      • toObject

        protected Object toObject​(AbsObject abs,
                                  String lcType,
                                  Ontology globalOnto)
                           throws UnknownSchemaException,
                                  UngroundedException,
                                  OntologyException
        Description copied from class: Ontology
        Converts an abstract descriptor to a Java object of the proper class.
        Overrides:
        toObject in class Ontology
        Parameters:
        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).
        Returns:
        the object
        Throws:
        UnknownSchemaException - If no schema for the abs descriptor to be translated is defined in this ontology.
        UngroundedException - if the abstract descriptor contains a variable
        OntologyException - if some mismatch with the schema is found * ontology. In this case UnknownSchema