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

All Superinterfaces:
IModel

public interface IDigitalSubjectModel
extends IModel

Represents a model of digital subject as it defined in the context's ontology model.

The type returned by IModel.getType() could be used in IContext.addSubject(URI, String) to create an IDigitalSubject of the represented type.

See Also:
IDigitalSubject

Method Summary
 IAttributeModel getAttributeModel(URI attrID)
          Returns IAttributeModel for the specified attribute ID
 Iterator getAttributeModels()
          Returns IAttributeModels for the attributes which are defined (allowed) in this subject model.
 IMetadataModel getMetadataModel(URI metadataID)
          Returns IMetadataModel for the specified metadata ID
 Iterator getMetadataModels()
          Returns IMetadataModels for the metadata elements which are defined (allowed) in this subject model.
 
Methods inherited from interface org.eclipse.higgins.idas.api.model.IModel
getDisplayData, getType
 

Method Detail

getAttributeModels

public Iterator getAttributeModels()
Returns IAttributeModels for the attributes which are defined (allowed) in this subject model.

Returns:
Iterator of IAttributeModel
See Also:
IDigitalSubject.getAttributes()

getAttributeModel

public IAttributeModel getAttributeModel(URI attrID)
Returns IAttributeModel for the specified attribute ID

Parameters:
attrID - the type of attribute.
Returns:
attribute's model of requested type or null if the specified attrID is not defined or not valid for this subject model.

getMetadataModels

public Iterator getMetadataModels()
Returns IMetadataModels for the metadata elements which are defined (allowed) in this subject model.

Returns:
Iterator of IMetadataModel

getMetadataModel

public IMetadataModel getMetadataModel(URI metadataID)
Returns IMetadataModel for the specified metadata ID

Parameters:
metadataID - the type of metadata.
Returns:
metadata's model of requested type or null if the specified metadataID is not defined or not valid for this subject model.