Package org.opencms.ade.configuration
Class CmsSitemapAttributeEditorConfiguration
- java.lang.Object
-
- org.opencms.ade.configuration.CmsSitemapAttributeEditorConfiguration
-
public class CmsSitemapAttributeEditorConfiguration extends java.lang.Object
Contains a set of attribute definitions for the sitemap attribute editor.
-
-
Field Summary
Fields Modifier and Type Field Description static CmsSitemapAttributeEditorConfiguration
EMPTY
A configuration with no entries.
-
Constructor Summary
Constructors Constructor Description CmsSitemapAttributeEditorConfiguration(java.util.Map<java.lang.String,CmsXmlContentProperty> attributeDefinitions)
Creates a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,CmsXmlContentProperty>
getAttributeDefinitions()
Gets the attribute definitions.static CmsSitemapAttributeEditorConfiguration
read(CmsObject cms, CmsResource res)
Reads the attribute definitions from an XML content.
-
-
-
Field Detail
-
EMPTY
public static final CmsSitemapAttributeEditorConfiguration EMPTY
A configuration with no entries.
-
-
Constructor Detail
-
CmsSitemapAttributeEditorConfiguration
public CmsSitemapAttributeEditorConfiguration(java.util.Map<java.lang.String,CmsXmlContentProperty> attributeDefinitions)
Creates a new instance.- Parameters:
attributeDefinitions
- the sitemap attribute definitions
-
-
Method Detail
-
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
public java.util.Map<java.lang.String,CmsXmlContentProperty> getAttributeDefinitions()
Gets the attribute definitions.- Returns:
- the attribute definitions
-
-