|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opencms.xml.types.A_CmsXmlContentValue
org.opencms.xml.types.A_CmsXmlValueTextBase
public abstract class A_CmsXmlValueTextBase
Base class for XML content value implementations that require only a simple XML plain text node.
| Field Summary | |
|---|---|
protected String |
m_stringValue
The String value of the element node. |
| Fields inherited from class org.opencms.xml.types.A_CmsXmlContentValue |
|---|
m_defaultValue, m_document, m_element, m_locale, m_maxOccurs, m_minOccurs, m_name |
| Fields inherited from interface org.opencms.xml.types.I_CmsXmlSchemaType |
|---|
XSI_NAMESPACE, XSI_NAMESPACE_ATTRIBUTE_NO_SCHEMA_LOCATION |
| Constructor Summary | |
|---|---|
protected |
A_CmsXmlValueTextBase()
Default constructor for a xml content type that initializes some internal values. |
protected |
A_CmsXmlValueTextBase(I_CmsXmlDocument document,
Element element,
Locale locale,
I_CmsXmlSchemaType type)
Initializes the required members for this XML content value. |
protected |
A_CmsXmlValueTextBase(String name,
String minOccurs,
String maxOccurs)
Initializes the schema type descriptor values for this type descriptor. |
| Method Summary | |
|---|---|
String |
getStringValue(CmsObject cms)
Returns the value of this parameter. |
void |
setStringValue(CmsObject cms,
String value)
Sets the value of this parameter. |
| Methods inherited from class org.opencms.xml.types.A_CmsXmlContentValue |
|---|
appendXmlSchema, compareTo, equals, generateXml, getContentDefinition, getDefault, getDefault, getDocument, getElement, getId, getIndex, getKey, getLocale, getMaxOccurs, getMinOccurs, getName, getPath, getPlainText, hasError, hashCode, isSimpleType, readSchemaDefinition, setContentDefinition, setDefault, setKeyPrefix, toString, validateValue |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.opencms.xml.types.I_CmsXmlSchemaType |
|---|
createValue, getSchemaDefinition, getTypeName, newInstance |
| Field Detail |
|---|
protected String m_stringValue
| Constructor Detail |
|---|
protected A_CmsXmlValueTextBase()
protected A_CmsXmlValueTextBase(I_CmsXmlDocument document,
Element element,
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 for
protected A_CmsXmlValueTextBase(String name,
String minOccurs,
String maxOccurs)
name - the name of the XML node containing the value according to the XML schemaminOccurs - minimum number of occurences of this type according to the XML schemamaxOccurs - maximum number of occurences of this type according to the XML schema| Method Detail |
|---|
public String getStringValue(CmsObject cms)
throws CmsRuntimeException
I_CmsWidgetParameter
cms - an initialized instance of an OpenCms user context
CmsRuntimeExceptionI_CmsXmlContentValue.getStringValue(CmsObject)
public void setStringValue(CmsObject cms,
String value)
throws CmsIllegalArgumentException
I_CmsWidgetParameterThis 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 an OpenCms user contextvalue - the value to set
CmsIllegalArgumentExceptionI_CmsXmlContentValue.setStringValue(org.opencms.file.CmsObject, java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||