1 17 18 19 20 package org.apache.lenya.cms.publication; 21 22 26 public interface Collection extends Document { 27 28 String NAMESPACE = "http://apache.org/cocoon/lenya/collection/1.0"; 29 String DEFAULT_PREFIX = "col"; 30 31 String ELEMENT_COLLECTION = "collection"; 32 String ELEMENT_DOCUMENT = "document"; 33 String ATTRIBUTE_ID = "id"; 34 35 40 Document[] getDocuments() throws DocumentException; 41 42 47 void add(Document document) throws DocumentException; 48 49 56 void add(int position, Document document) throws DocumentException; 57 58 64 void remove(Document document) throws DocumentException; 65 66 70 void clear() throws DocumentException; 71 72 78 boolean contains(Document document) throws DocumentException; 79 80 86 int getFirstPosition(Document document) throws DocumentException; 87 88 93 int size() throws DocumentException; 94 95 99 void save() throws DocumentException; 100 } 101 | Popular Tags |