org.ehcache.xml.multi.model.Configurations Maven / Gradle / Ivy
Show all versions of ehcache Show documentation
package org.ehcache.xml.multi.model;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.w3c.dom.Element;
/**
* 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">
* <sequence maxOccurs="unbounded" minOccurs="0">
* <element name="configuration">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <choice maxOccurs="unbounded" minOccurs="0">
* <element ref="{http://www.ehcache.org/v3}config"/>
* <sequence>
* <element name="variant">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{http://www.ehcache.org/v3}config"/>
* </sequence>
* <attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </choice>
* <attribute name="identity" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"configuration"
})
@XmlRootElement(name = "configurations")
public class Configurations {
protected List configuration;
/**
* Gets the value of the configuration 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 configuration property.
*
*
* For example, to add a new item, do as follows:
*
* getConfiguration().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Configurations.Configuration }
*
*
*/
public List getConfiguration() {
if (configuration == null) {
configuration = new ArrayList();
}
return this.configuration;
}
public Configurations withConfiguration(Configurations.Configuration... values) {
if (values!= null) {
for (Configurations.Configuration value: values) {
getConfiguration().add(value);
}
}
return this;
}
public Configurations withConfiguration(Collection values) {
if (values!= null) {
getConfiguration().addAll(values);
}
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">
* <choice maxOccurs="unbounded" minOccurs="0">
* <element ref="{http://www.ehcache.org/v3}config"/>
* <sequence>
* <element name="variant">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{http://www.ehcache.org/v3}config"/>
* </sequence>
* <attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </choice>
* <attribute name="identity" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"configOrVariant"
})
public static class Configuration {
@XmlElementRef(name = "variant", namespace = "http://www.ehcache.org/v3/multi", type = JAXBElement.class, required = false)
@XmlAnyElement
protected List