On Dec 15, 2007, at 10:24, Andreas L Delmelle wrote:

<snip />

Options:
* increase the general visibility to public (not sure why this would be
desirable; unless there's any other compelling reasons to do so, I'd
rather not...)

Yeah, we’re hitting a limitation of Java here. Basically we’re missing a keyword allowing classes of a sub-package to access the method. Making it public with a proper comment is still the less ugly way to do in my
opinion.

I'll go for this one, then.

Come to think of it, maybe the cleanest way is:

* add the following to FONode:

public static void validateChildNode(FONode thisNode, Locator...) throws ValidationException {
  thisNode.validateChildNode(...);
}

* the instance method itself can remain protected, but Wrapper could get it to do something like:

FONode.validateChildNode(getParent(), locator, nsURI, localName);


Cheers

Andreas

Reply via email to