package org.ehcache.xml.model;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
Java class for copier-type complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="copier-type">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="copier" maxOccurs="unbounded" minOccurs="0">
<complexType>
<simpleContent>
<extension base="<http://www.ehcache.org/v3>fqcn-type">
<attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
</extension>
</simpleContent>
</complexType>
</element>
</sequence>
</restriction>
</complexContent>
</complexType>
/**
* <p>Java class for copier-type complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="copier-type">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="copier" maxOccurs="unbounded" minOccurs="0">
* <complexType>
* <simpleContent>
* <extension base="<http://www.ehcache.org/v3>fqcn-type">
* <attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* </extension>
* </simpleContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "copier-type", propOrder = {
"copier"
})
public class CopierType {
protected List<CopierType.Copier> copier;
Gets the value of the copier 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 copier property.
For example, to add a new item, do as follows:
getCopier().add(newItem);
Objects of the following type(s) are allowed in the list Copier
/**
* Gets the value of the copier property.
*
* <p>
* 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 <CODE>set</CODE> method for the copier property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getCopier().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link CopierType.Copier }
*
*
*/
public List<CopierType.Copier> getCopier() {
if (copier == null) {
copier = new ArrayList<CopierType.Copier>();
}
return this.copier;
}
public CopierType withCopier(CopierType.Copier... values) {
if (values!= null) {
for (CopierType.Copier value: values) {
getCopier().add(value);
}
}
return this;
}
public CopierType withCopier(Collection<CopierType.Copier> values) {
if (values!= null) {
getCopier().addAll(values);
}
return this;
}
Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType>
<simpleContent>
<extension base="<http://www.ehcache.org/v3>fqcn-type">
<attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
</extension>
</simpleContent>
</complexType>
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <simpleContent>
* <extension base="<http://www.ehcache.org/v3>fqcn-type">
* <attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* </extension>
* </simpleContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"value"
})
public static class Copier {
@XmlValue
protected String value;
@XmlAttribute(name = "type", required = true)
protected String type;
Gets the value of the value property.
Returns: possible object is String
/**
* Gets the value of the value property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getValue() {
return value;
}
Sets the value of the value property.
Params: - value – allowed object is
String
/**
* Sets the value of the value property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setValue(String value) {
this.value = value;
}
Gets the value of the type property.
Returns: possible object is String
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getType() {
return type;
}
Sets the value of the type property.
Params: - value – allowed object is
String
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setType(String value) {
this.type = value;
}
public CopierType.Copier withValue(String value) {
setValue(value);
return this;
}
public CopierType.Copier withType(String value) {
setType(value);
return this;
}
}
}