1 31 32 package org.opencms.xml; 33 34 import org.opencms.file.CmsFile; 35 import org.opencms.file.CmsObject; 36 import org.opencms.staticexport.CmsLinkProcessor; 37 import org.opencms.staticexport.CmsLinkTable; 38 import org.opencms.xml.content.CmsXmlContentErrorHandler; 39 import org.opencms.xml.types.I_CmsXmlContentValue; 40 41 import java.util.List ; 42 import java.util.Locale ; 43 44 53 public interface I_CmsXmlDocument { 54 55 63 void addLocale(CmsObject cms, Locale locale) throws CmsXmlException; 64 65 73 void copyLocale(Locale source, Locale destination) throws CmsXmlException; 74 75 80 CmsXmlContentDefinition getContentDefinition(); 81 82 87 String getConversion(); 88 89 94 String getEncoding(); 95 96 103 CmsFile getFile(); 104 105 114 int getIndexCount(String name, Locale locale); 115 116 124 CmsLinkProcessor getLinkProcessor(CmsObject cms, CmsLinkTable linkTable); 125 126 132 List getLocales(); 133 134 142 List getLocales(String element); 143 144 154 List getNames(Locale locale); 155 156 168 String getStringValue(CmsObject cms, String name, Locale locale) throws CmsXmlException; 169 170 183 String getStringValue(CmsObject cms, String name, Locale locale, int index) throws CmsXmlException; 184 185 198 I_CmsXmlContentValue getValue(String name, Locale locale); 199 200 210 I_CmsXmlContentValue getValue(String name, Locale locale, int index); 211 212 222 List getValues(Locale locale); 223 224 233 List getValues(String name, Locale locale); 234 235 242 boolean hasLocale(Locale locale); 243 244 257 boolean hasValue(String name, Locale locale); 258 259 270 boolean hasValue(String name, Locale locale, int index); 271 272 278 void initDocument(); 279 280 295 boolean isEnabled(String name, Locale locale); 296 297 309 boolean isEnabled(String name, Locale locale, int index); 310 311 319 void moveLocale(Locale source, Locale destination) throws CmsXmlException; 320 321 328 void removeLocale(Locale locale) throws CmsXmlException; 329 330 337 CmsXmlContentErrorHandler validate(CmsObject cms); 338 } | Popular Tags |