[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [higgins-dev] Complex attr values as blank entities
|
Jim,
1. > Next I looked at somehow making this IBlankEntity the supertype for IComplexAttrValue.
Why we still need IComplexAttrValue? I think we should replace IComplexAttrValue with IBlankEntity.
2. > That doesn't work so well because of the getModel() method. IAttributeValue already has getModel() which returns an IAttributeValueModel.
It looks we need just to remove the method getModel() from IAttributeValueModel interface.
3. I suppose it would be better for IBlankEntity to extend IEntity because IEntity should not extend IAttributeValue. So, we can do the following:
a) IEntity extends IHasAttributes
b) IBlankEntity extends IEntity, IAttributeValue
In this case IBlankEntity.getEntityID() would return no value or some value which can not be used in the same way as a value of "entityID" attribute of Entty.
Thanks,
Sergey Lyakhov
----- Original Message -----
From: Jim Sermersheim
To: Higgins dev <higgins-dev@xxxxxxxxxxx
Sent: Tuesday, June 03, 2008 4:17 AM
Subject: [higgins-dev] Complex attr values as blank entities
I started playing around with creating an interface like this:
public interface IBlankEntity extends IHasAttributes {
public IEntityModel getModel() throws IdASException;
}
and made IEntity extend that. No real change there -- just injected another interface layer.
Next I looked at somehow making this IBlankEntity the supertype for IComplexAttrValue. That doesn't work so well because of the getModel() method. IAttributeValue already has getModel() which returns an IAttributeValueModel.
So, I need to re-gather the actual requirements for this. Right now we have:
public interface IComplexAttrValue extends IAttributeValue, IHasAttributes {}
and we have
public interface IEntity extends IHasAttributes {
public IContext getContext() throws IdASException;
public String getEntityID() throws IdASException;
}
So, in effect a complex attribute is the same as an entity today other than IEntity allows one to get its context and entity ID.
Is it just a terminology thing? I can continue on the path I was on and keep getModel on IEntity. This would mean IBlankEntity is exactly the same as IHasAttributes, but maybe people like the name better?
Let me know if you have an opinion.
Jim
------------------------------------------------------------------------------
_______________________________________________
higgins-dev mailing list
higgins-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/higgins-dev