org.ehcache.config.xml.model
Class ResourceType

java.lang.Object
  extended by org.ehcache.config.xml.model.ResourceType
Direct Known Subclasses:
PersistableResourceType

public class ResourceType
extends java.lang.Object

Java class for resource-type complex type.

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

 <complexType name="resource-type">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <attribute name="unit" type="{http://www.ehcache.org/v3}resource-unit" default="entries" />
       <attribute name="size" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  java.math.BigInteger size
           
protected  ResourceUnit unit
           
 
Constructor Summary
ResourceType()
           
 
Method Summary
 java.math.BigInteger getSize()
          Gets the value of the size property.
 ResourceUnit getUnit()
          Gets the value of the unit property.
 void setSize(java.math.BigInteger value)
          Sets the value of the size property.
 void setUnit(ResourceUnit value)
          Sets the value of the unit property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

unit

protected ResourceUnit unit

size

protected java.math.BigInteger size
Constructor Detail

ResourceType

public ResourceType()
Method Detail

getUnit

public ResourceUnit getUnit()
Gets the value of the unit property.

Returns:
possible object is ResourceUnit

setUnit

public void setUnit(ResourceUnit value)
Sets the value of the unit property.

Parameters:
value - allowed object is ResourceUnit

getSize

public java.math.BigInteger getSize()
Gets the value of the size property.

Returns:
possible object is BigInteger

setSize

public void setSize(java.math.BigInteger value)
Sets the value of the size property.

Parameters:
value - allowed object is BigInteger