On Friday 07 September 2007 08:50:01 Andrea Aime wrote:
> Jody Garnett ha scritto:
> > Andrea Aime wrote:
> >> I understand. Yet I feel we lack a middle ground allowing to represent
> >> associations in an efficient way, the same way deegree did.
> >
> > (In my benefit/complexity table this whole multiplicity thing is a good
> > tipping point)
> >
> > I still don't see why it could not just be an implementation options; if
> > an implementation wants
> > to keep several values as an array and dish them out one at a time for
> > the getValues() method
> > that is cool. The fact that they would be able to answer a Collection
> > getAttribute( name ) question
> > very quickly and efficiently would be fine as well.
>
> Nope, this would be memory efficient, but not time efficient.
> Memory allocation in java is fast, but not free... think the whole
> optimization process related to substituting Coordinate[] to double[].
>
> Anyways, one thing, does ComplexAttribute.get(Name name) need to return
> a List<Property>? Or we can have a fast path returning List<Object> (the
> property values) here?
That might make sense for the simple case where you somehow know what you're 
requesting are simple attributes, so you could get the atomic values in one 
operation. When the name reffers to a complex property, though, its not so 
easy if you then need to do something useful with the returned values, as you 
wont be able to xpath them nor knowing if a given value corresponds to an 
attribute or another

> I guess the question boils down to wheter Name is a full xpath
> representation (with wildcards and whatnot) or is just able to represent
> the path to a nested attribute? The javadoc does not tell (or at least,
> I don't see it).
No, Name is just the name of a property. As an xpath location path is an 
expression, if you need to evaluate that you could do it through a 
PropertyName.evaluate(..) expression.
On the community-schema modules, property name filter expressions are able to 
evaluate an xpath expression as per the limitations stated in the filter 
spec, even taking care of namespaces, by receiving a "context" in the form of 
a javax.NamespaceSupport object with the prefix:namespace mappings

Gabriel
>
> Cheers
> Andrea
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> Geoapi-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/geoapi-devel



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to