You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sis.apache.org by Martin Desruisseaux <ma...@geomatys.fr> on 2012/11/20 09:59:25 UTC
Quick report on recent commits
Hello all
I have been slowed down recently by non-SIS work (I will probably still
slow until the end of the week). Nevertheless there is a summary of
recent additions:
TreeTable interfaces
-----------------
After some though, I think that we don't need Tree interfaces. All usage
examples that come to my mind are actually TreeTable. So in order to
keep the API simpler, I propose to provide only TreeTable interface (it
can be viewed as a table where the first column contains the tree). If
someone really needs a plain Tree, this can be handled as a TreeTable
having only one column.
https://builds.apache.org/job/sis-jdk7/site/apidocs/org/apache/sis/util/collection/TreeTable.Node.html
TreeTableFormat
--------------
A java.text.Format implementation is provided for parsing and formatting
string representations of TreeTable. This is intended to be used quite
extensively in many places: string representation of ISO 19115 metadata,
of ISO 19111 parameters, of features, etc. Basically, the "toString()"
implementations of many SIS objects are planed to use TreeTableFormat.
https://builds.apache.org/job/sis-jdk7/site/apidocs/org/apache/sis/util/collection/TreeTableFormat.html
On a very minor topic, is there any preferences for the default
placement of the vertical lines in in the tree? This is configurable,
but the default would be used by Many toString() implementations. Some
possibilities are:
Node #1........................... Value #1
????Node #2............... Value #2
? ????Node #4... Value #4
????Node #3............... Value #3
Node #1........................... Value #1
???Node #2............... Value #2
? ???Node #4... Value #4
???Node #3............... Value #3
Node #1........................... Value #1
??Node #2............... Value #2
? ??Node #4... Value #4
??Node #3............... Value #3
Martin
Re: Quick report on recent commits
Posted by "Mattmann, Chris A (388J)" <ch...@jpl.nasa.gov>.
Hey Martin,
I'm a fan of the two col format in your example below!
Cheers
Chris
On Nov 20, 2012, at 1:04 AM, Martin Desruisseaux wrote:
> Le 20/11/12 17:59, Martin Desruisseaux a écrit :
>> Node #1........................... Value #1
>> ????Node #2............... Value #2
>> ? ????Node #4... Value #4
>> ????Node #3............... Value #3
>
> Just realized that unicode characters don't seem to pass on the mailing list. To see what the first tree looks like, see https://builds.apache.org/job/sis-jdk7/site/apidocs/org/apache/sis/util/collection/TreeTableFormat.html class javadoc. The other trees in my email were the same tree with the vertical line shifted by 1 or 2 spaces toward the right.
>
> Martin
>
Re: Quick report on recent commits
Posted by "Mattmann, Chris A (388J)" <ch...@jpl.nasa.gov>.
Thanks for the FYI, Martin. Yeah, odd...but now that you clarified, makes sense.
Cheers,
Chris
On Nov 20, 2012, at 1:04 AM, Martin Desruisseaux wrote:
> Le 20/11/12 17:59, Martin Desruisseaux a écrit :
>> Node #1........................... Value #1
>> ????Node #2............... Value #2
>> ? ????Node #4... Value #4
>> ????Node #3............... Value #3
>
> Just realized that unicode characters don't seem to pass on the mailing list. To see what the first tree looks like, see https://builds.apache.org/job/sis-jdk7/site/apidocs/org/apache/sis/util/collection/TreeTableFormat.html class javadoc. The other trees in my email were the same tree with the vertical line shifted by 1 or 2 spaces toward the right.
>
> Martin
>
Re: Quick report on recent commits
Posted by Martin Desruisseaux <ma...@geomatys.fr>.
Le 20/11/12 17:59, Martin Desruisseaux a écrit :
> Node #1........................... Value #1
> ????Node #2............... Value #2
> ? ????Node #4... Value #4
> ????Node #3............... Value #3
Just realized that unicode characters don't seem to pass on the mailing
list. To see what the first tree looks like, see
https://builds.apache.org/job/sis-jdk7/site/apidocs/org/apache/sis/util/collection/TreeTableFormat.html
class javadoc. The other trees in my email were the same tree with the
vertical line shifted by 1 or 2 spaces toward the right.
Martin