org.eclipse.higgins.idas.schema
Interface IContextSchema

All Superinterfaces:
ISchema

public interface IContextSchema
extends ISchema

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

To retrieve this representation of the context schema IContext.getContextSchema() could be used.

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

See Also:
IContext

Method Summary
 java.util.List<IAttributeSchema> getAttributes()
          Returns the list of attributes which are defined (allowed) in this context schema.
 ISchema getSchema(java.net.URI type)
          Generic method to query context schema for schema of the subject with the specific type.
 java.util.List<IDigitalSubjectSchema> getSubjects()
          Returns the list of digital subjects which are defined (allowed) in this context schema.
 
Methods inherited from interface org.eclipse.higgins.idas.schema.ISchema
getDisplayData, getType
 

Method Detail

getSchema

ISchema getSchema(java.net.URI type)
Generic method to query context schema for schema of the subject with the specific type. Returns the schema of the subject with the specific type passed as a parameter or null if subject with corresponding type is not defined in this context schema.

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

getAttributes

java.util.List<IAttributeSchema> getAttributes()
Returns the list of attributes which are defined (allowed) in this context schema.


getSubjects

java.util.List<IDigitalSubjectSchema> getSubjects()
Returns the list of digital subjects which are defined (allowed) in this context schema.

See Also:
IContext#getSubject(String), IContext#getSubjects(String)