net.sf.ehcache.config.generator.model.elements
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 the CacheConfiguration
- Author:
- Abhishek Sanoujam
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 |
CacheConfigurationElement
public CacheConfigurationElement(NodeElement parent,
Configuration configuration,
CacheConfiguration cacheConfiguration)
- Constructor accepting the parent and the
CacheConfiguration
- Parameters:
parent
- cacheConfiguration
-
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
-
Copyright 2001-2016, Terracotta, Inc.