Class CmsContainerConfigurationParser
java.lang.Object
org.opencms.ade.containerpage.inherited.CmsContainerConfigurationParser
A parser class which reads data from inherited container configuration files.
-
Constructor Summary
ConstructorDescriptionCreates a new configuration parser. -
Method Summary
Modifier and TypeMethodDescriptionGets the parsed results as a map.void
Parses the contents of a file.void
parse
(CmsResource resource) Parses the contents of a resource.protected void
Parses a group of named configurations from a given XML content location.protected void
Parses a single inheritance configuration from an XML content node.
-
Constructor Details
-
CmsContainerConfigurationParser
Creates a new configuration parser.- Parameters:
cms
- the current CMS context
-
-
Method Details
-
getParsedResults
Gets the parsed results as a map.- Returns:
- the parse results
-
parse
Parses the contents of a file.- Parameters:
file
- the file to parse- Throws:
CmsException
- if something goes wrong
-
parse
Parses the contents of a resource.- Parameters:
resource
- the resource which should be parsed- Throws:
CmsException
- if something goes wrong
-
parseConfigurationGroup
Parses a group of named configurations from a given XML content location.- Parameters:
location
- the location from which to read the configuration group
-
parseSingleConfiguration
Parses a single inheritance configuration from an XML content node.- Parameters:
location
- the node from which to read the single configuration
-