Closed GoogleCodeExporter closed 9 years ago
I think it could also be something along the lines:
https://github.com/JohannesLichtenberger/sirix/blob/master/bundles/sirix-core/sr
c/main/java/org/sirix/axis/visitor/VisitorDescendantAxis.java
and the package:
https://github.com/JohannesLichtenberger/sirix/tree/master/bundles/sirix-core/sr
c/main/java/org/sirix/api/visitor
which is modeled after the File walker Java7 API and might be really useful
(however I don't know why the github sourcecode formatting, namely the tab-size
is so ugly).
Probably the whole package (plus sub-packages)
https://github.com/JohannesLichtenberger/sirix/tree/master/bundles/sirix-core/sr
c/main/java/org/sirix/axis
is also interesting. The filters implement Predicate since some time ago and
I've used some code from AbstractIterator of Guava to implement "AbstractAxis".
Besides other things I'm currently thinking about how to integrate custom
user-specified objects (currently it's used to store/query XML documents (and
soon JSON) based on different versioning strategies). However, I think it's
very simple to add custom types, probably implementing a simple Write- and
Read-transaction which modifies/reads custom node-types. The user has to
provide it's own serialization/deserialization if the in-memory store isn't
selected. I'll likely implement insertion/update/delete/move-methods for a
generic type parameter (I think the workaround with JAXB annotations is rather
ugly).
Original comment by Lichtenb...@gmail.com
on 20 Mar 2013 at 11:26
Since TreeTraverser is in for 15.0, I'm gonna mark this as fixed. I think any
specific enhancements or additions should be requested in separate issues.
Original comment by cgdecker@google.com
on 3 Jul 2013 at 5:55
I just wanted to say I finally migrated my graph library to use TreeTraverser
with Louis's suggestion of using TreeTraverser<Walk<T>> for maintaining paths
during the traversal. It works without any unexpected problems, and was a bit
cleaner than what I had been doing previously; so thanks. The only dissonance
remaining is that is that I'm using something named TreeTraverser for general
graph traversals, but I can live with that.
Original comment by ray.a.co...@gmail.com
on 5 Mar 2014 at 3:28
This issue has been migrated to GitHub.
It can be found at https://github.com/google/guava/issues/<id>
Original comment by cgdecker@google.com
on 1 Nov 2014 at 4:16
Original comment by cgdecker@google.com
on 3 Nov 2014 at 9:10
Original issue reported on code.google.com by
jvdne...@gmail.com
on 25 May 2009 at 2:34