|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Provides access to the value of a specific XML content node.
| Field Summary |
| Fields inherited from interface org.opencms.xml.types.I_CmsXmlSchemaType |
XSI_NAMESPACE, XSI_NAMESPACE_ATTRIBUTE_NO_SCHEMA_LOCATION |
| Method Summary | |
I_CmsXmlDocument |
getDocument()
Returns the XML content instance this value belongs to. |
Element |
getElement()
Returns the original XML element of this XML content value. |
int |
getIndex()
Returns the node index of this XML content value in the source XML document, starting with 0. |
Locale |
getLocale()
Returns the locale of this XML content value was generated for. |
String |
getPath()
Returns the path of this XML content value in the source document. |
String |
getPlainText(CmsObject cms)
Returns the value of this XML content node as a plain text String. |
String |
getStringValue(CmsObject cms)
Returns the value of this XML content node as a String. |
void |
setStringValue(CmsObject cms,
String value)
Sets the provided String as value of this XML content node. |
| Methods inherited from interface org.opencms.xml.types.I_CmsXmlSchemaType |
appendXmlSchema, createValue, generateXml, getContentDefinition, getDefault, getMaxOccurs, getMinOccurs, getName, getSchemaDefinition, getTypeName, isSimpleType, newInstance, setContentDefinition, setDefault, validateValue |
| Methods inherited from interface java.lang.Comparable |
compareTo |
| Method Detail |
public I_CmsXmlDocument getDocument()
public Element getElement()
public int getIndex()
This is usefull in case there are more then one elements with the same XML node name in the source XML document.
public Locale getLocale()
public String getPath()
public String getPlainText(CmsObject cms)
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).
cms - an initialized instance of a CmsObject
public String getStringValue(CmsObject cms)
cms - an initialized instance of a CmsObject
public void setStringValue(CmsObject cms,
String value)
This 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 set
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||