Improve ACR
[lgpl/argeo-commons.git] / org.argeo.api.acr / src / org / argeo / api / acr / Content.java
index 4aac92de75b2317f78b83bea56329535c630ff81..3cdf8d7dbec044f6a3a0c7a40fbe092b407a2b86 100644 (file)
@@ -95,6 +95,10 @@ public interface Content extends Iterable<Content>, Map<QName, Object> {
         */
        List<QName> getContentClasses();
 
+       default void addContentClasses(QName... contentClass) {
+               throw new UnsupportedOperationException("Adding content classes to " + getPath() + " is not supported");
+       }
+
        /** AND */
        default boolean isContentClass(QName... contentClass) {
                List<QName> contentClasses = getContentClasses();
@@ -115,6 +119,14 @@ public interface Content extends Iterable<Content>, Map<QName, Object> {
                return false;
        }
 
+       /*
+        * SIBLINGS
+        */
+
+       default int getSiblingIndex() {
+               return 1;
+       }
+
        /*
         * DEFAULT METHODS
         */