Refactored jdom parser adapter

* replaced `(a...b).each` constructions to `b.times`
* replaced CamelCased Java methods to use Ruby style
* removed duplication for `empty_content?` to use `texts`