ehcache

net.sf.ehcache.config.generator.model.elements
Class CacheConfigurationElement

java.lang.Object
  extended by net.sf.ehcache.config.generator.model.AbstractNodeElement
      extended by net.sf.ehcache.config.generator.model.SimpleNodeElement
          extended by net.sf.ehcache.config.generator.model.elements.CacheConfigurationElement
All Implemented Interfaces:
NodeElement

public class CacheConfigurationElement
extends SimpleNodeElement

Element representing the CacheConfiguration

Author:
Abhishek Sanoujam

Field Summary
 
Fields inherited from class net.sf.ehcache.config.generator.model.AbstractNodeElement
attributes, children, innerContent, optional, parent
 
Constructor Summary
CacheConfigurationElement(NodeElement parent, Configuration configuration, CacheConfiguration cacheConfiguration)
          Constructor accepting the parent and the CacheConfiguration
 
Method Summary
static void addCommonAttributesWithDefaultCache(NodeElement element, Configuration configuration, CacheConfiguration cacheConfiguration)
          Adds all attributes which are common with the "defaultCache" element in ehcache.xsd
static void addCommonChildElementsWithDefaultCache(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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CacheConfigurationElement

public CacheConfigurationElement(NodeElement parent,
                                 Configuration configuration,
                                 CacheConfiguration cacheConfiguration)
Constructor accepting the parent and the CacheConfiguration

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 -

ehcache

Copyright 2001-2014, Terracotta, Inc.