[jdom-interest] hashCode() and equals()
bob mcwhirter
bob at werken.com
Sat Jun 2 16:20:36 PDT 2001
> I think the namespace API might need to be revisited one more time.
> I'm not convinced we need to split up Namespace and prefix into
> separate classes. On the other hand, perhaps the Namespace class
> doesn't need to be exposed? Could we plausibly make it package
> private and just have a public API in Element which exposes the
> various namespaces and namespace mappings as strings? If so, all the
> issues about what to do with the equals() method would become moot.
> We could do whatever we needed internally without worrying about
> confusing developers.
I agree.
My use-case is...
What namespace-uri is mapped to a given prefix,
within the context of a given element.
f(element+prefix) == URI
If I can answer that question, I'm happy.
-bob
More information about the jdom-interest
mailing list