org.ehcache.xml.model
Class BaseCacheType

java.lang.Object
  extended by org.ehcache.xml.model.BaseCacheType
Direct Known Subclasses:
CacheTemplateType, CacheType

public abstract class BaseCacheType
extends java.lang.Object

Java class for base-cache-type complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="base-cache-type">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="key-type" type="{http://www.ehcache.org/v3}cache-entry-type" minOccurs="0"/>
         <element name="value-type" type="{http://www.ehcache.org/v3}cache-entry-type" minOccurs="0"/>
         <element name="expiry" type="{http://www.ehcache.org/v3}expiry-type" minOccurs="0"/>
         <element name="eviction-veto" type="{http://www.ehcache.org/v3}fqcn-type" minOccurs="0"/>
         <element name="loader-writer" type="{http://www.ehcache.org/v3}cache-loader-writer-type" minOccurs="0"/>
         <element name="listeners" type="{http://www.ehcache.org/v3}listeners-type" minOccurs="0"/>
         <choice minOccurs="0">
           <element name="heap" type="{http://www.ehcache.org/v3}resource-type"/>
           <element name="resources" type="{http://www.ehcache.org/v3}resources-type"/>
         </choice>
         <element name="heap-store-settings" type="{http://www.ehcache.org/v3}sizeof-type" minOccurs="0"/>
         <element name="disk-store-settings" type="{http://www.ehcache.org/v3}disk-store-settings-type" minOccurs="0"/>
         <any namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  java.util.List<java.lang.Object> any
           
protected  DiskStoreSettingsType diskStoreSettings
           
protected  java.lang.String evictionVeto
           
protected  ExpiryType expiry
           
protected  ResourceType heap
           
protected  SizeofType heapStoreSettings
           
protected  CacheEntryType keyType
           
protected  ListenersType listeners
           
protected  CacheLoaderWriterType loaderWriter
           
protected  ResourcesType resources
           
protected  CacheEntryType valueType
           
 
Constructor Summary
BaseCacheType()
           
 
Method Summary
 java.util.List<java.lang.Object> getAny()
          Gets the value of the any property.
 DiskStoreSettingsType getDiskStoreSettings()
          Gets the value of the diskStoreSettings property.
 java.lang.String getEvictionVeto()
          Gets the value of the evictionVeto property.
 ExpiryType getExpiry()
          Gets the value of the expiry property.
 ResourceType getHeap()
          Gets the value of the heap property.
 SizeofType getHeapStoreSettings()
          Gets the value of the heapStoreSettings property.
 CacheEntryType getKeyType()
          Gets the value of the keyType property.
 ListenersType getListeners()
          Gets the value of the listeners property.
 CacheLoaderWriterType getLoaderWriter()
          Gets the value of the loaderWriter property.
 ResourcesType getResources()
          Gets the value of the resources property.
 CacheEntryType getValueType()
          Gets the value of the valueType property.
 void setDiskStoreSettings(DiskStoreSettingsType value)
          Sets the value of the diskStoreSettings property.
 void setEvictionVeto(java.lang.String value)
          Sets the value of the evictionVeto property.
 void setExpiry(ExpiryType value)
          Sets the value of the expiry property.
 void setHeap(ResourceType value)
          Sets the value of the heap property.
 void setHeapStoreSettings(SizeofType value)
          Sets the value of the heapStoreSettings property.
 void setKeyType(CacheEntryType value)
          Sets the value of the keyType property.
 void setListeners(ListenersType value)
          Sets the value of the listeners property.
 void setLoaderWriter(CacheLoaderWriterType value)
          Sets the value of the loaderWriter property.
 void setResources(ResourcesType value)
          Sets the value of the resources property.
 void setValueType(CacheEntryType value)
          Sets the value of the valueType property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keyType

protected CacheEntryType keyType

valueType

protected CacheEntryType valueType

expiry

protected ExpiryType expiry

evictionVeto

protected java.lang.String evictionVeto

loaderWriter

protected CacheLoaderWriterType loaderWriter

listeners

protected ListenersType listeners

heap

protected ResourceType heap

resources

protected ResourcesType resources

heapStoreSettings

protected SizeofType heapStoreSettings

diskStoreSettings

protected DiskStoreSettingsType diskStoreSettings

any

protected java.util.List<java.lang.Object> any
Constructor Detail

BaseCacheType

public BaseCacheType()
Method Detail

getKeyType

public CacheEntryType getKeyType()
Gets the value of the keyType property.

Returns:
possible object is CacheEntryType

setKeyType

public void setKeyType(CacheEntryType value)
Sets the value of the keyType property.

Parameters:
value - allowed object is CacheEntryType

getValueType

public CacheEntryType getValueType()
Gets the value of the valueType property.

Returns:
possible object is CacheEntryType

setValueType

public void setValueType(CacheEntryType value)
Sets the value of the valueType property.

Parameters:
value - allowed object is CacheEntryType

getExpiry

public ExpiryType getExpiry()
Gets the value of the expiry property.

Returns:
possible object is ExpiryType

setExpiry

public void setExpiry(ExpiryType value)
Sets the value of the expiry property.

Parameters:
value - allowed object is ExpiryType

getEvictionVeto

public java.lang.String getEvictionVeto()
Gets the value of the evictionVeto property.

Returns:
possible object is String

setEvictionVeto

public void setEvictionVeto(java.lang.String value)
Sets the value of the evictionVeto property.

Parameters:
value - allowed object is String

getLoaderWriter

public CacheLoaderWriterType getLoaderWriter()
Gets the value of the loaderWriter property.

Returns:
possible object is CacheLoaderWriterType

setLoaderWriter

public void setLoaderWriter(CacheLoaderWriterType value)
Sets the value of the loaderWriter property.

Parameters:
value - allowed object is CacheLoaderWriterType

getListeners

public ListenersType getListeners()
Gets the value of the listeners property.

Returns:
possible object is ListenersType

setListeners

public void setListeners(ListenersType value)
Sets the value of the listeners property.

Parameters:
value - allowed object is ListenersType

getHeap

public ResourceType getHeap()
Gets the value of the heap property.

Returns:
possible object is ResourceType

setHeap

public void setHeap(ResourceType value)
Sets the value of the heap property.

Parameters:
value - allowed object is ResourceType

getResources

public ResourcesType getResources()
Gets the value of the resources property.

Returns:
possible object is ResourcesType

setResources

public void setResources(ResourcesType value)
Sets the value of the resources property.

Parameters:
value - allowed object is ResourcesType

getHeapStoreSettings

public SizeofType getHeapStoreSettings()
Gets the value of the heapStoreSettings property.

Returns:
possible object is SizeofType

setHeapStoreSettings

public void setHeapStoreSettings(SizeofType value)
Sets the value of the heapStoreSettings property.

Parameters:
value - allowed object is SizeofType

getDiskStoreSettings

public DiskStoreSettingsType getDiskStoreSettings()
Gets the value of the diskStoreSettings property.

Returns:
possible object is DiskStoreSettingsType

setDiskStoreSettings

public void setDiskStoreSettings(DiskStoreSettingsType value)
Sets the value of the diskStoreSettings property.

Parameters:
value - allowed object is DiskStoreSettingsType

getAny

public java.util.List<java.lang.Object> getAny()
Gets the value of the any property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the any property.

For example, to add a new item, do as follows:

    getAny().add(newItem);
 

Objects of the following type(s) are allowed in the list Object