Package org.opencms.ade.configuration
Class CmsSitemapAttributeEditorConfiguration
java.lang.Object
org.opencms.ade.configuration.CmsSitemapAttributeEditorConfiguration
Contains a set of attribute definitions for the sitemap attribute editor.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final CmsSitemapAttributeEditorConfiguration
A configuration with no entries. -
Constructor Summary
ConstructorDescriptionCmsSitemapAttributeEditorConfiguration
(Map<String, CmsXmlContentProperty> attributeDefinitions) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionGets the attribute definitions.read
(CmsObject cms, CmsResource res) Reads the attribute definitions from an XML content.
-
Field Details
-
EMPTY
A configuration with no entries.
-
-
Constructor Details
-
CmsSitemapAttributeEditorConfiguration
public CmsSitemapAttributeEditorConfiguration(Map<String, CmsXmlContentProperty> attributeDefinitions) Creates a new instance.- Parameters:
attributeDefinitions
- the sitemap attribute definitions
-
-
Method Details
-
read
public static CmsSitemapAttributeEditorConfiguration read(CmsObject cms, CmsResource res) throws CmsException Reads the attribute definitions from an XML content.- Parameters:
cms
- the CmsObject to useres
- the resource from which to read the attribute definitions- Returns:
- the sitemap attribute editor configuration which was read from the file
- Throws:
CmsException
- if something goes wrong
-
getAttributeDefinitions
Gets the attribute definitions.- Returns:
- the attribute definitions
-