On 08/23/2012 05:28 AM, nicolas de loof wrote:
option 2 :
create a new interface to extend ModifiableItemGroup and add 
createProjectFromXML

Seems safest. ModifiableItemGroup2 perhaps. It probably need not even extend ModifiableItemGroup, since if someone is actually assigning something to a variable of type ModifiableItemGroup2 they are not likely to want the old HTTP-based method too.

While you are at it, consider making the interface specify some related things, 
e.g.:

<T extends TopLevelItem> T copy(T src, String name) throws IOException;
TopLevelItem createProject(TopLevelItemDescriptor type, String name, boolean 
notify) throws IOException;

though these are less likely to be useful from the CLI.

BTW a ModifiableViewGroup might also be useful at some point.

Reply via email to