org.ehcache.xml.model
Class TimeType

java.lang.Object
  extended by org.ehcache.xml.model.TimeType

public class TimeType
extends java.lang.Object

Java class for time-type complex type.

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

 <complexType name="time-type">
   <simpleContent>
     <extension base="<http://www.w3.org/2001/XMLSchema>positiveInteger">
       <attribute name="unit" type="{http://www.ehcache.org/v3}time-unit" default="seconds" />
     </extension>
   </simpleContent>
 </complexType>
 


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

Field Detail

value

protected java.math.BigInteger value

unit

protected TimeUnit unit
Constructor Detail

TimeType

public TimeType()
Method Detail

getValue

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

Returns:
possible object is BigInteger

setValue

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

Parameters:
value - allowed object is BigInteger

getUnit

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

Returns:
possible object is TimeUnit

setUnit

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

Parameters:
value - allowed object is TimeUnit