Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [higgins-dev] IdAS notes

I'm now going to check in the changes for #8.  I'm still not sure why this was critical for 0.8. The implementation for it is like this:
 public ISingleValuedAttribute getSingleValuedAttribute(URI attrID) throws IdASException, NotSingleValuedAttributeException {
  IAttribute attr = getAttribute(attrID);
  if (attr.isSingleValued()) {
   return (ISingleValuedAttribute)attr;
  }
  else {
   throw new NotSingleValuedAttributeException(attrID + "is not a single-valued attribute");
  }
 } 
This is in fact what I did in most CPs (I haven't updated the Jena CP).
 
Jim

>>> "Jim Sermersheim" <jimse@xxxxxxxxxx> 6/14/07 2:29 PM >>>
Sounds good.  I plan to put these fixes in the HEAD as well as the M0-8 branch.
 
I'm not sure what to do about downstream dependency projects.  Adding these will cause them some of them to break.  I can visit each project (that I know about) and at least make fixes to them such that they will build.  I guess if I do that, I can just update their HEAD (and M0-8 for any that have that branch), and let others deal with branching as they choose.
 
Jim

>>> "Sergey Lyakhov" <slyakhov@xxxxxxxxxxxxxx> 6/14/07 2:13 PM >>>
Jim,
 
> I'm glad you pointed these out because I would have guessed they weren't absolutely necessary.
 
I think if user gets some unexpected Exception he should have a possibility to clear changes he made after last commit and avoid saving of wrong changes.
 
> On  #8: I assume one would expect some exception to be thrown when the attribute specified by attrID is in fact *not* modeled as a single-valued attribute?
 
Yes, it should throw IdASException if this attribute is not an ISingleValuedAttribute instance. I think using this is better then to have ClassCastException or adding some additional code to check class of object.
 
Thanks,
Sergey Lyakhov
----- Original Message -----
Sent: Thursday, June 14, 2007 11:01 PM
Subject: Re: [higgins-dev] IdAS notes

I'm glad you pointed these out because I would have guessed they weren't absolutely necessary.
 
On  #8: I assume one would expect some exception to be thrown when the attribute specified by attrID is in fact *not* modeled as a single-valued attribute?
 
Jim

>>> "Sergey Lyakhov" <slyakhov@xxxxxxxxxxxxxx> 6/14/07 10:43 AM >>>
Jim,
 
I need the following to have working Jena-based implementation of IdAS:
 
Thanks,
Sergey Lyakhov
----- Original Message -----
Sent: Saturday, June 02, 2007 1:02 AM
Subject: Re: [higgins-dev] IdAS notes

Thanks Sergey.
 
I'm starting to lose track of what's done and not so I opened bugs for these.
 
#5: https://bugs.eclipse.org/bugs/show_bug.cgi?id=190590 <- not sure I understand why we need this
 
Jim

>>> "Sergey Lyakhov" <slyakhov@xxxxxxxxxxxxxx> 6/1/07 8:00 AM >>>
Jim,

There are some additional proposals:

6.  IMetadata interface has two methods - getID() - returns HOWL type, and
get Type() - returns xml type of data. We need the same methods for
ISimpleValue, because it also has two such types. In addition, (it is not
principal), I think it will be more correct to use the same name of methods
which return the HOWL type of objects (subject, attribute, values etc.). So,
I propose to use getType() name for methods which return HOWL type (of
subject, attribute, value, metadata) and getXMLType() to return xml type of
simple value and metadata.

7. There are some methods in IAttribute (addValue(URI), addSimpleValue(URI,
Object) and addComplexValue(URI)), which require URI type of new value. This
URI parameter is redundant, because Attribute can have only one type of
value (type of values is equal to the type of attribute).

8. Perhaps it will be useful to add ISingleValuedAttribute
getSingleValuedAttribute(URI attrID) method to IHasAttributes interface.

9. We need to add cancelUpdates() method to IContext interface. This method
should be used by user to cancel all changes made after last invocation of
applyUpdates(). I am sure it is very important method.

Thanks,
Sergey Lyakhov

----- Original Message -----
From: Sergey Lyakhov
To: higgins-dev@xxxxxxxxxxx
Sent: Thursday, May 24, 2007 8:49 PM
Subject: Re: [higgins-dev] IdAS notes


Jim,

In addition:

5. We need to add two methods int getMinCardinality() and int
getMaxCardinality() to IAttributeModel interface.

Thanks,
Sergey Lyakhov

----- Original Message -----
From: Sergey Lyakhov
To: higgins-dev@xxxxxxxxxxx
Sent: Tuesday, May 22, 2007 9:44 PM
Subject: [higgins-dev] IdAS notes


Jim,

I have some notes about IdAS:

1. I suppose IMetadataModel interface should extend IModel interface (to
inherit IDisplayData getDisplayData() method);

2. We need to add two methods getMetadataSet() and getMetadata(URI) to
IDigitalSubjectModel, IAttributeModel and IAttributeValueModel;

3. IAttributeValueModel interface declares some methods (isValidValue(Object
valueForm), isValid(String lexicalForm), toValueForm(String lexicalForm) and
toLexicalForm(Object value)) which are not reqiured by
IAttributeComplexValueModel. I proprose to move these methods from
IAttributeValueModel to IAttributeSimpleValueModel;

4. There are some classes which contain wrong HOWL URIs (at least wrong base
URI - AuthNNamePasswordMaterials, AuthNSelfIssuedMaterials etc.). Pershaps
we need some class which will contain HOWL URIs constants.

Thanks,
Sergey Lyakhov




_______________________________________________
higgins-dev mailing list
higgins-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/higgins-dev




_______________________________________________
higgins-dev mailing list
higgins-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/higgins-dev

_______________________________________________
higgins-dev mailing list
higgins-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/higgins-dev


_______________________________________________
higgins-dev mailing list
higgins-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/higgins-dev


_______________________________________________
higgins-dev mailing list
higgins-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/higgins-dev

Back to the top