Class CacheConfigurationElement
- java.lang.Object
-
- net.sf.ehcache.config.generator.model.AbstractNodeElement
-
- net.sf.ehcache.config.generator.model.SimpleNodeElement
-
- net.sf.ehcache.config.generator.model.elements.CacheConfigurationElement
-
- All Implemented Interfaces:
NodeElement
public class CacheConfigurationElement extends SimpleNodeElement
Element representing theCacheConfiguration- Author:
- Abhishek Sanoujam
-
-
Field Summary
-
Fields inherited from class net.sf.ehcache.config.generator.model.AbstractNodeElement
attributes, children, innerContent, optional, parent
-
-
Constructor Summary
Constructors Constructor Description CacheConfigurationElement(NodeElement parent, Configuration configuration, CacheConfiguration cacheConfiguration)Constructor accepting the parent and theCacheConfiguration
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddCommonAttributesWithDefaultCache(NodeElement element, Configuration configuration, CacheConfiguration cacheConfiguration)Adds all attributes which are common with the "defaultCache" element in ehcache.xsdstatic voidaddCommonChildElementsWithDefaultCache(NodeElement element, CacheConfiguration cacheConfiguration)Adds all common child elements with the "defaultCache" element in ehcache.xsd-
Methods inherited from class net.sf.ehcache.config.generator.model.SimpleNodeElement
getName
-
Methods inherited from class net.sf.ehcache.config.generator.model.AbstractNodeElement
accept, addAllFactoryConfigsAsChildElements, addAttribute, addChildElement, equals, getAllFactoryElements, getAttributes, getChildElements, getFQName, getFQName, getInnerContent, getParent, hasChildren, hashCode, isOptional, setInnerContent, setOptional, toString
-
-
-
-
Constructor Detail
-
CacheConfigurationElement
public CacheConfigurationElement(NodeElement parent, Configuration configuration, CacheConfiguration cacheConfiguration)
Constructor accepting the parent and theCacheConfiguration- Parameters:
parent-cacheConfiguration-
-
-
Method Detail
-
addCommonAttributesWithDefaultCache
public static void addCommonAttributesWithDefaultCache(NodeElement element, Configuration configuration, CacheConfiguration cacheConfiguration)
Adds all attributes which are common with the "defaultCache" element in ehcache.xsd- Parameters:
element-cacheConfiguration-
-
addCommonChildElementsWithDefaultCache
public static void addCommonChildElementsWithDefaultCache(NodeElement element, CacheConfiguration cacheConfiguration)
Adds all common child elements with the "defaultCache" element in ehcache.xsd- Parameters:
element-cacheConfiguration-
-
-