srdc/ontmalizer — pull request #2 by pmcb55 (2014-08-06 09:54:15+00:00)
Title: Jdk 6 and spaces in enum values

Hi there - I love your library, and I'm trying to use it in a project here at the moment. However, due to restrictions from other libraries we're using, I need to compile against JDK 6. This is fine though, as in fact your library doesn't actually use any 1.7-specific features, and so compiles fine under 1.6.

Therefore I've updated your POM to only require 1.6, since that makes your library applicable and usable by far more people out there who might be 'stuck' on 1.6 (like me!).

Also, I needed to make a one-line code change to remove spaces from the generated URI of enumeration values. We are converting a big XSD to OWL but that XSD has enumerations with spaces in their values, and spaces are not valid characters in URIs.

You might want to consider whether the '.replace()' calls in your code should really be '.replaceAll()' calls, as I assume there could be multiple spaces, or '[' characters, or whatever in the value. In my case, I don't need this update as our XSD only has single spaces - so I'll leave it to you to decide whether '.replaceAll()' is more applicable here.