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

All Superinterfaces:
IModel

public interface IContextModel
extends IModel

Represents a model of the context object as it defined in the context's ontology model. Since context's ontology model is defined in OWL DL format this interface is designed to simlify query and interpretation of the context's ontology model.

The URI returned by IContextSchema.getType() could be used to retrieve an URL of the OWL ontology where this context's model is defined.

See Also:
IContext

Field Summary
static String C_ATT_URI
           
static String C_COMP_ATT_URI
           
static String C_DD_URI
           
static String C_DS_URI
           
static String C_SIMP_ATT_URI
           
static String DD_BASE_URI
           
static String IDAS_BASE_URI
           
static String P_ATT_URI
           
static String P_DD_DESC_URI
           
static String P_DD_IMAGE_URI
           
static String P_DD_LABEL_URI
           
static String P_DD_ORDER_URI
           
static String P_DD_URI
           
 
Method Summary
 IModel getModel(URI type)
          Generic method to query context model for model of the subject with the specific type.
 IDigitalSubjectModel getSubjectModel(URI type)
          Returns the IDigitalSubjectModel for the specified subject type
 Iterator getSubjectModels()
          Returns IDigitalSubjectModels for the digital subjects which are defined (allowed) in this context model.
 
Methods inherited from interface org.eclipse.higgins.idas.api.model.IModel
getDisplayData, getType
 

Field Detail

IDAS_BASE_URI

public static final String IDAS_BASE_URI
See Also:
Constant Field Values

C_DS_URI

public static final String C_DS_URI
See Also:
Constant Field Values

C_ATT_URI

public static final String C_ATT_URI
See Also:
Constant Field Values

C_SIMP_ATT_URI

public static final String C_SIMP_ATT_URI
See Also:
Constant Field Values

C_COMP_ATT_URI

public static final String C_COMP_ATT_URI
See Also:
Constant Field Values

P_ATT_URI

public static final String P_ATT_URI
See Also:
Constant Field Values

DD_BASE_URI

public static final String DD_BASE_URI
See Also:
Constant Field Values

C_DD_URI

public static final String C_DD_URI
See Also:
Constant Field Values

P_DD_URI

public static final String P_DD_URI
See Also:
Constant Field Values

P_DD_LABEL_URI

public static final String P_DD_LABEL_URI
See Also:
Constant Field Values

P_DD_DESC_URI

public static final String P_DD_DESC_URI
See Also:
Constant Field Values

P_DD_ORDER_URI

public static final String P_DD_ORDER_URI
See Also:
Constant Field Values

P_DD_IMAGE_URI

public static final String P_DD_IMAGE_URI
See Also:
Constant Field Values
Method Detail

getModel

public IModel getModel(URI type)
Generic method to query context model for model of the subject with the specific type. Returns the model of the subject with the specific type passed as a parameter or null if subject with corresponding type is not defined in this context model.

Parameters:
type - the type of the subject for wich to retrieve the model.
Returns:
the model of the subject or null.

getSubjectModels

public Iterator getSubjectModels()
Returns IDigitalSubjectModels for the digital subjects which are defined (allowed) in this context model.

Returns:
Iterator of IDigitalSubjectModel
See Also:
IContext#getSubject(String), IContext#getSubjects(IFilter)

getSubjectModel

public IDigitalSubjectModel getSubjectModel(URI type)
Returns the IDigitalSubjectModel for the specified subject type

Parameters:
type -
Returns:
IDigitalSubjectModel for the specified subject type