Package org.opencms.xml.content
Class CmsXmlContentRootLocation
java.lang.Object
org.opencms.xml.content.CmsXmlContentRootLocation
- All Implemented Interfaces:
I_CmsXmlContentLocation
Represents the root of an XML content for a given locale.
- Since:
- 8.0.0
-
Constructor Summary
ConstructorDescriptionCmsXmlContentRootLocation
(I_CmsXmlDocument doc, Locale locale) Creates a new root location for a given locale. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.
-
Constructor Details
-
CmsXmlContentRootLocation
Creates a new root location for a given locale.- Parameters:
doc
- the XML documentlocale
- the locale
-
-
Method Details
-
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:
-