X-Git-Url: http://git.nikiroo.be/?p=jvcard.git;a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Fjvcard%2FBaseClass.java;h=1dd76442324ca845d2f603e5dd04c532bd7bdd32;hp=df0fcf00de78f998ad87d03842dc4947f86a966a;hb=5ad0e17e7fea1c602cb2638a006424af9c7e33e8;hpb=e4444b0bc462544629d9e7e7ab62b96a4d9cab10 diff --git a/src/be/nikiroo/jvcard/BaseClass.java b/src/be/nikiroo/jvcard/BaseClass.java index df0fcf0..1dd7644 100644 --- a/src/be/nikiroo/jvcard/BaseClass.java +++ b/src/be/nikiroo/jvcard/BaseClass.java @@ -1,5 +1,6 @@ package be.nikiroo.jvcard; +import java.security.InvalidParameterException; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; @@ -16,12 +17,17 @@ import be.nikiroo.jvcard.resources.StringUtils; * sends all commands down to the initial list, but will mark itself and its * children as dirty or not when needed. * - * All child elements can identify their parent. + *

+ * All child elements can identify their parent, and must not be added to 2 + * different objects without without first being removed from the previous one. + *

* + *

* The dirty state is bubbling up (when dirty = true) or down (when dirty = * false) -- so, making changes to a child element will also mark its parent as * "dirty", and marking an element as pristine will also affect all its child * elements. + *

* * @author niki * @@ -119,8 +125,8 @@ public abstract class BaseClass> implements List { * If not equals, the differences will be represented by the given * {@link List}s if they are not NULL. *