Package org.opencms.xml.content
Class CmsSynchronizationSpec
- java.lang.Object
-
- org.opencms.xml.content.CmsSynchronizationSpec
-
public class CmsSynchronizationSpec extends java.lang.Object
A class representing the value synchronization configuration from a schema (or set of schemas).
-
-
Constructor Summary
Constructors Constructor Description CmsSynchronizationSpec(java.util.LinkedHashMap<java.lang.String,I_CmsXmlContentHandler.SynchronizationMode> synchMap)
Creates a new instance based on a map of synchronization modes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,I_CmsXmlContentHandler.SynchronizationMode>
asMap()
Gets an immutable map view of the synchronizations mode by xpath.java.util.Set<java.lang.String>
getSynchronizationPaths()
Gets the set of paths for which synchronization is turned on in this configuration.
-
-
-
Constructor Detail
-
CmsSynchronizationSpec
public CmsSynchronizationSpec(java.util.LinkedHashMap<java.lang.String,I_CmsXmlContentHandler.SynchronizationMode> synchMap)
Creates a new instance based on a map of synchronization modes.Note the map given as argument is used as-is and not copied, so modifying it later may lead to problems.
- Parameters:
synchMap
- the map of synchronization modes
-
-
Method Detail
-
asMap
public java.util.Map<java.lang.String,I_CmsXmlContentHandler.SynchronizationMode> asMap()
Gets an immutable map view of the synchronizations mode by xpath.- Returns:
- a map from xpaths to synchronization modes
-
getSynchronizationPaths
public java.util.Set<java.lang.String> getSynchronizationPaths()
Gets the set of paths for which synchronization is turned on in this configuration.- Returns:
- the set of synchronization paths
-
-