package org.ehcache.xml.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
Java class for expiry-type complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="expiry-type">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<choice>
<element name="class" type="{http://www.ehcache.org/v3}fqcn-type"/>
<element name="tti" type="{http://www.ehcache.org/v3}time-type"/>
<element name="ttl" type="{http://www.ehcache.org/v3}time-type"/>
<element name="none">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
</restriction>
</complexContent>
</complexType>
</element>
</choice>
</restriction>
</complexContent>
</complexType>
/**
* <p>Java class for expiry-type complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="expiry-type">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <choice>
* <element name="class" type="{http://www.ehcache.org/v3}fqcn-type"/>
* <element name="tti" type="{http://www.ehcache.org/v3}time-type"/>
* <element name="ttl" type="{http://www.ehcache.org/v3}time-type"/>
* <element name="none">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </choice>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "expiry-type", propOrder = {
"clazz",
"tti",
"ttl",
"none"
})
public class ExpiryType {
@XmlElement(name = "class")
protected String clazz;
protected TimeType tti;
protected TimeType ttl;
protected ExpiryType.None none;
Gets the value of the clazz property.
Returns: possible object is String
/**
* Gets the value of the clazz property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getClazz() {
return clazz;
}
Sets the value of the clazz property.
Params: - value – allowed object is
String
/**
* Sets the value of the clazz property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setClazz(String value) {
this.clazz = value;
}
Gets the value of the tti property.
Returns: possible object is TimeType
/**
* Gets the value of the tti property.
*
* @return
* possible object is
* {@link TimeType }
*
*/
public TimeType getTti() {
return tti;
}
Sets the value of the tti property.
Params: - value – allowed object is
TimeType
/**
* Sets the value of the tti property.
*
* @param value
* allowed object is
* {@link TimeType }
*
*/
public void setTti(TimeType value) {
this.tti = value;
}
Gets the value of the ttl property.
Returns: possible object is TimeType
/**
* Gets the value of the ttl property.
*
* @return
* possible object is
* {@link TimeType }
*
*/
public TimeType getTtl() {
return ttl;
}
Sets the value of the ttl property.
Params: - value – allowed object is
TimeType
/**
* Sets the value of the ttl property.
*
* @param value
* allowed object is
* {@link TimeType }
*
*/
public void setTtl(TimeType value) {
this.ttl = value;
}
Gets the value of the none property.
Returns: possible object is None
/**
* Gets the value of the none property.
*
* @return
* possible object is
* {@link ExpiryType.None }
*
*/
public ExpiryType.None getNone() {
return none;
}
Sets the value of the none property.
Params: - value – allowed object is
None
/**
* Sets the value of the none property.
*
* @param value
* allowed object is
* {@link ExpiryType.None }
*
*/
public void setNone(ExpiryType.None value) {
this.none = value;
}
public ExpiryType withClazz(String value) {
setClazz(value);
return this;
}
public ExpiryType withTti(TimeType value) {
setTti(value);
return this;
}
public ExpiryType withTtl(TimeType value) {
setTtl(value);
return this;
}
public ExpiryType withNone(ExpiryType.None value) {
setNone(value);
return this;
}
Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
</restriction>
</complexContent>
</complexType>
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
public static class None {
}
}