Package org.opencms.xml.content
Class CmsXmlContentValueLocation
java.lang.Object
org.opencms.xml.content.CmsXmlContentValueLocation
- All Implemented Interfaces:
I_CmsXmlContentLocation
,I_CmsXmlContentValueLocation
Represents the concrete location of an XML content value.
- Since:
- 8.0.0
-
Constructor Summary
ConstructorDescriptionConstructs a new XML content value location. -
Method Summary
Modifier and TypeMethodDescriptionReturns the structure id of the content value (only valid for VfsFile values!).Returns the string value of the content value.Returns the XML document.Returns the locale.getSubValue
(String subPath) Returns the location for an xpath relative to the current location.getSubValues
(String subPath) Returns the locations for an xpath relative to the current location.getValue()
Returns the content value at the given location.
-
Constructor Details
-
CmsXmlContentValueLocation
Constructs a new XML content value location.- Parameters:
value
- the XML content value
-
-
Method Details
-
asId
Description copied from interface:I_CmsXmlContentValueLocation
Returns the structure id of the content value (only valid for VfsFile values!).- Specified by:
asId
in interfaceI_CmsXmlContentValueLocation
- Parameters:
cms
- the CMS context- Returns:
- the structure id of the content value
- See Also:
-
asString
Description copied from interface:I_CmsXmlContentValueLocation
Returns the string value of the content value.- Specified by:
asString
in interfaceI_CmsXmlContentValueLocation
- Parameters:
cms
- the CMS context- Returns:
- the string value of the content value
- See Also:
-
getDocument
Description copied from interface:I_CmsXmlContentLocation
Returns the XML document.- Specified by:
getDocument
in interfaceI_CmsXmlContentLocation
- Returns:
- the XML document
- See Also:
-
getLocale
Description copied from interface:I_CmsXmlContentLocation
Returns the locale.- Specified by:
getLocale
in interfaceI_CmsXmlContentLocation
- Returns:
- the locale
- See Also:
-
getSubValue
Description copied from interface:I_CmsXmlContentLocation
Returns the location for an xpath relative to the current location.- Specified by:
getSubValue
in interfaceI_CmsXmlContentLocation
- Parameters:
subPath
- the relative path- Returns:
- the location which the relative path points to
- See Also:
-
getSubValues
Description copied from interface:I_CmsXmlContentLocation
Returns the locations for an xpath relative to the current location.- Specified by:
getSubValues
in interfaceI_CmsXmlContentLocation
- Parameters:
subPath
- the relative path- Returns:
- the locations which the relative path points to
- See Also:
-
getValue
Returns the content value at the given location.- Specified by:
getValue
in interfaceI_CmsXmlContentValueLocation
- Returns:
- the content value at the given location
-