Class JavaCollectionOntology

    • Method Detail

      • getInstance

        public static Ontology getInstance()
        Returns the singleton instance of the JavaCollectionOntology.
        Returns:
        the singleton instance of the JavaCollectionOntology
      • 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