org.eclipse.higgins.idas.api.model
Interface IContextModelFactory


public interface IContextModelFactory

This interface could be implemented by IdAS context providers so that their IContextModel instances may be instantiated. TODO Add basic implementation to IdAS itself.


Method Summary
 IContextModel createContextModel(InputStream schema)
          Creates IContextModel representation of context's ontology model supplied as the parameter.
 IContextModel createContextModel(String schema)
          Creates IContextModel representation of context's ontology model supplied as the parameter.
 IContextModel createContextModel(URI schema)
          Creates IContextModel representation of context's ontology model supplied as the parameter.
 IContextModel createContextModel(URL schema)
          Creates IContextModel representation of context's ontology model supplied as the parameter.
 

Method Detail

createContextModel

public IContextModel createContextModel(URI schema)
                                 throws IdASModelException
Creates IContextModel representation of context's ontology model supplied as the parameter.

Parameters:
schema - the URI of context's ontology model's location.
Returns:
IContextModel representation of context's ontology model.
Throws:
IdASModelException - if model representation coudn't be created.

createContextModel

public IContextModel createContextModel(URL schema)
                                 throws IdASModelException
Creates IContextModel representation of context's ontology model supplied as the parameter.

Parameters:
schema - the URL of context's ontology model's location.
Returns:
IContextModel representation of context's ontology model.
Throws:
IdASModelException - if model representation coudn't be created.

createContextModel

public IContextModel createContextModel(String schema)
                                 throws IdASModelException
Creates IContextModel representation of context's ontology model supplied as the parameter.

Parameters:
schema - the String representation of context's ontology model's location.
Returns:
IContextModel representation of context's ontology model.
Throws:
IdASModelException - if model representation coudn't be created.

createContextModel

public IContextModel createContextModel(InputStream schema)
                                 throws IdASModelException
Creates IContextModel representation of context's ontology model supplied as the parameter.

Parameters:
schema - the InputStream containing of context's ontology model.
Returns:
IContextModel representation of context's ontology model.
Throws:
IdASModelException - if model representation coudn't be created.