All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hi3project.broccoli.bsdl.api.parsing.IDocumentLoader Maven / Gradle / Ivy

Go to download

Specification for BSDL, BSDM and basic BSDF. Interfaces and XML descriptors. XML Schema for BSDL.

The newest version!
/*******************************************************************************
 *
 * Copyright (C) 2015 Mytech Ingenieria Aplicada 
 * Copyright (C) 2015 Alejandro Paz 
 *
 * This file is part of Broccoli.
 *
 * Broccoli is free software: you can redistribute it and/or modify it under the
 * terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, either version 3 of the License, or (at your option) any
 * later version.
 *
 * Broccoli is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with Broccoli. If not, see .
 *
 ******************************************************************************/

package com.hi3project.broccoli.bsdl.api.parsing;

import com.hi3project.broccoli.bsdl.api.IAxiom;
import com.hi3project.broccoli.bsdl.api.ISemanticLocator;
import com.hi3project.broccoli.bsdl.api.registry.IBSDLRegistry;
import com.hi3project.broccoli.bsdl.impl.exceptions.ModelException;
import java.util.Collection;

/**
 * 

* Helper objects are needed to parse a set of documents that form some logical unit * (ie: a service, a language ontology...) *

* It will use IDocumentParsers to perform the job, and a IBSDLRegistry where the read axioms * are to be registered *

* It will accept ISemanticLocators as info to where the documents are located * * * */ public interface IDocumentLoader { public void registerDocumentParser(IDocumentParser parser); public void setRegistry(IBSDLRegistry registry); public IBSDLRegistry getRegistry(); public Collection readFrom(Collection locatorCollection) throws ModelException; public Collection readFrom(ISemanticLocator locator) throws ModelException; public Collection readFrom(String content) throws ModelException; public void registerAxiomsChecker(IAxiomsChecker axiomsChecker); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy