1 31 32 package org.opencms.xml.types; 33 34 import org.opencms.xml.I_CmsXmlDocument; 35 36 import java.util.Locale ; 37 38 import org.dom4j.Element; 39 40 49 public class CmsXmlStringValue extends A_CmsXmlValueCdataBase { 50 51 52 public static final String TYPE_NAME = "OpenCmsString"; 53 54 57 public CmsXmlStringValue() { 58 59 } 61 62 70 public CmsXmlStringValue(I_CmsXmlDocument document, Element element, Locale locale, I_CmsXmlSchemaType type) { 71 72 super(document, element, locale, type); 73 } 74 75 82 public CmsXmlStringValue(String name, String minOccurs, String maxOccurs) { 83 84 super(name, minOccurs, maxOccurs); 85 } 86 87 90 public I_CmsXmlContentValue createValue(I_CmsXmlDocument document, Element element, Locale locale) { 91 92 return new CmsXmlStringValue(document, element, locale, this); 93 } 94 95 98 public String getSchemaDefinition() { 99 100 return "<xsd:simpleType name=\"" + TYPE_NAME + "\"><xsd:restriction base=\"xsd:string\" /></xsd:simpleType>"; 101 } 102 103 106 public String getTypeName() { 107 108 return TYPE_NAME; 109 } 110 111 114 public I_CmsXmlSchemaType newInstance(String name, String minOccurs, String maxOccurs) { 115 116 return new CmsXmlStringValue(name, minOccurs, maxOccurs); 117 } 118 } | Popular Tags |