1 28 29 30 package com.opencms.workplace; 31 32 import org.opencms.file.CmsFile; 33 import org.opencms.file.CmsObject; 34 import org.opencms.main.CmsException; 35 36 import com.opencms.template.A_CmsXmlContent; 37 38 46 47 public class CmsXmlWpLabelDefFile extends A_CmsXmlContent { 48 49 52 53 public CmsXmlWpLabelDefFile() throws CmsException { 54 super(); 55 } 56 57 64 65 public CmsXmlWpLabelDefFile(CmsObject cms, CmsFile file) throws CmsException { 66 super(); 67 init(cms, file); 68 } 69 70 77 78 public CmsXmlWpLabelDefFile(CmsObject cms, String filename) throws CmsException { 79 super(); 80 init(cms, filename); 81 } 82 83 87 88 public String getContentDescription() { 89 return "OpenCms workplace labels"; 90 } 91 92 98 99 public String getLabel(String value) throws CmsException { 100 setData(CmsWorkplaceDefault.C_LABEL_VALUE, value); 101 return getProcessedDataValue(CmsWorkplaceDefault.C_TAG_LABEL); 102 } 103 104 108 109 public String getXmlDocumentTagName() { 110 return "WP_LABELS"; 111 } 112 } 113 | Popular Tags |