1 17 18 19 20 package org.apache.lenya.cms.publication; 21 22 import java.io.File ; 23 import java.util.Date ; 24 25 28 public interface Document { 29 30 String NAMESPACE = "http://apache.org/cocoon/lenya/document/1.0"; 31 String DEFAULT_PREFIX = "lenya"; 32 33 37 String getId(); 38 39 43 String getName(); 44 45 52 String getNodeId(); 53 54 58 Publication getPublication(); 59 60 65 String getCompleteInfoURL(); 66 67 72 String getCompleteURL(); 73 74 81 String getCompleteURLWithoutLanguage(); 82 83 89 String getDocumentURL(); 90 91 95 DublinCore getDublinCore(); 96 97 102 String getLanguage(); 103 104 114 String [] getLanguages() throws DocumentException; 115 116 124 String getLabel() throws DocumentException; 125 126 130 Date getLastModified(); 131 132 136 String getArea(); 137 138 142 File getFile(); 143 144 148 String getExtension(); 149 150 158 boolean exists() throws DocumentException; 159 160 169 boolean existsInAnyLanguage() throws DocumentException; 170 171 } 172 | Popular Tags |