Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[higgins-dev] Metadata creation

In the new IdAS interfaces, we added createMetadataItem to IDigitalSubject. IIRC, we did this so a consumer has a way of creating metadata for digital subjects.
 
Don't we need the same method on all other interfaces holding metadata (IContext, IContextProvider, IAttribute, IRelationship)?
 
If so, we may as well define another interface like:
 
public interface IHasMetadata {
    public IMetadata getMetadata();
    public void setMetadata(IMetadata metadata);
    IMetadataItem createMetadataItem(URI type, Object value);
}
 
and just make the above interfaces extend that.
 
Jim

Back to the top