public abstract class A_CmsXmlValueCdataBase extends A_CmsXmlContentValue
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
m_stringValue
The String value of the element node.
|
m_defaultValue, m_document, m_element, m_locale, m_maxOccurs, m_minOccurs, m_nameXSI_NAMESPACE, XSI_NAMESPACE_ATTRIBUTE_NO_SCHEMA_LOCATION| Modifier | Constructor and Description |
|---|---|
protected |
A_CmsXmlValueCdataBase()
Default constructor for a xml content type
that initializes some internal values.
|
protected |
A_CmsXmlValueCdataBase(I_CmsXmlDocument document,
org.dom4j.Element element,
java.util.Locale locale,
I_CmsXmlSchemaType type)
Initializes the required members for this XML content value.
|
protected |
A_CmsXmlValueCdataBase(java.lang.String name,
java.lang.String minOccurs,
java.lang.String maxOccurs)
Initializes the schema type descriptor values for this type descriptor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPlainText(CmsObject cms)
Returns the value of this XML content node as a plain text String.
|
java.lang.String |
getStringValue(CmsObject cms)
Returns the value of this XML content node as a String.
|
void |
setStringValue(CmsObject cms,
java.lang.String value)
Sets the provided String as value of this XML content node.
|
appendXmlSchema, compareTo, equals, generateXml, getChoiceMaxOccurs, getContentDefinition, getDefault, getDefault, getDocument, getElement, getId, getIndex, getKey, getLocale, getMaxIndex, getMaxOccurs, getMinOccurs, getName, getPath, getRelationType, getXmlIndex, hasError, hashCode, isChoiceOption, isChoiceType, isSearchable, isSimpleType, moveDown, moveUp, moveValue, readSchemaDefinition, setContentDefinition, setDefault, setKeyPrefix, toString, validateValueclone, finalize, getClass, notify, notifyAll, wait, wait, waitcreateValue, getSchemaDefinition, getTypeName, newInstanceprotected java.lang.String m_stringValue
protected A_CmsXmlValueCdataBase()
protected A_CmsXmlValueCdataBase(I_CmsXmlDocument document, org.dom4j.Element element, java.util.Locale locale, I_CmsXmlSchemaType type)
document - the XML content instance this value belongs toelement - the XML element that contains this valuelocale - the locale this value is created fortype - the type instance to create the value forprotected A_CmsXmlValueCdataBase(java.lang.String name, java.lang.String minOccurs, java.lang.String maxOccurs)
name - the name of the XML node containing the value according to the XML schemaminOccurs - minimum number of occurrences of this type according to the XML schemamaxOccurs - maximum number of occurrences of this type according to the XML schemapublic java.lang.String getPlainText(CmsObject cms)
I_CmsXmlContentValue
Plain text in this context means a pure textual representation
of the content (i.e. without html tags).
The plain text may be null, too, if there is no sound or useful
textual representation (i.e. color values).
getPlainText in interface I_CmsXmlContentValuegetPlainText in class A_CmsXmlContentValuecms - an initialized instance of a CmsObjectI_CmsXmlContentValue.getPlainText(org.opencms.file.CmsObject)public java.lang.String getStringValue(CmsObject cms) throws CmsRuntimeException
I_CmsXmlContentValuecms - an initialized instance of a CmsObjectCmsRuntimeExceptionI_CmsXmlContentValue.getStringValue(CmsObject)public void setStringValue(CmsObject cms, java.lang.String value) throws CmsIllegalArgumentException
I_CmsXmlContentValueThis method does provide processing of the content based on the users current OpenCms context. This can be used e.g. for link extraction and replacement in the content.
cms - an initialized instance of a CmsObjectvalue - the value to setCmsIllegalArgumentExceptionI_CmsXmlContentValue.setStringValue(org.opencms.file.CmsObject, java.lang.String)