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
ConstructorsConstructorDescriptionConstructs 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_CmsXmlContentValueLocationReturns the structure id of the content value (only valid for VfsFile values!).- Specified by:
asIdin interfaceI_CmsXmlContentValueLocation- Parameters:
cms- the CMS context- Returns:
- the structure id of the content value
- See Also:
-
asString
Description copied from interface:I_CmsXmlContentValueLocationReturns the string value of the content value.- Specified by:
asStringin interfaceI_CmsXmlContentValueLocation- Parameters:
cms- the CMS context- Returns:
- the string value of the content value
- See Also:
-
getDocument
Description copied from interface:I_CmsXmlContentLocationReturns the XML document.- Specified by:
getDocumentin interfaceI_CmsXmlContentLocation- Returns:
- the XML document
- See Also:
-
getLocale
Description copied from interface:I_CmsXmlContentLocationReturns the locale.- Specified by:
getLocalein interfaceI_CmsXmlContentLocation- Returns:
- the locale
- See Also:
-
getSubValue
Description copied from interface:I_CmsXmlContentLocationReturns the location for an xpath relative to the current location.- Specified by:
getSubValuein interfaceI_CmsXmlContentLocation- Parameters:
subPath- the relative path- Returns:
- the location which the relative path points to
- See Also:
-
getSubValues
Description copied from interface:I_CmsXmlContentLocationReturns the locations for an xpath relative to the current location.- Specified by:
getSubValuesin 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:
getValuein interfaceI_CmsXmlContentValueLocation- Returns:
- the content value at the given location
-