[jdom-interest] Ideas for API changes

Jason Hunter jhunter at collab.net
Sun Apr 29 17:42:45 PDT 2001


Tom Bradford wrote:
> 
> Why not add marker interfaces to Node addition... Example:
> 
> public interface ElementChild {}
> public interface DocumentChild {}
> 
> public class Text extends Node implements ElementChild ... {
> 
> public class Element extends Node implements ElementChild, DocumentChild
> ... {
>    public void addChild(ElementChild child);
> }

Because that makes the public API about 50% more complex for almost no
gain.

-jh-



More information about the jdom-interest mailing list