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 serializer-type complex type.

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

<complexType name="serializer-type">
  <complexContent>
    <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
      <sequence>
        <element name="serializer" 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 serializer-type complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="serializer-type"&gt; * &lt;complexContent&gt; * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; * &lt;sequence&gt; * &lt;element name="serializer" maxOccurs="unbounded" minOccurs="0"&gt; * &lt;complexType&gt; * &lt;simpleContent&gt; * &lt;extension base="&lt;http://www.ehcache.org/v3&gt;fqcn-type"&gt; * &lt;attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /&gt; * &lt;/extension&gt; * &lt;/simpleContent&gt; * &lt;/complexType&gt; * &lt;/element&gt; * &lt;/sequence&gt; * &lt;/restriction&gt; * &lt;/complexContent&gt; * &lt;/complexType&gt; * </pre> * * */
@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "serializer-type", propOrder = { "serializer" }) public class SerializerType { protected List<SerializerType.Serializer> serializer;
Gets the value of the serializer 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 serializer property.

For example, to add a new item, do as follows:

   getSerializer().add(newItem);

Objects of the following type(s) are allowed in the list Serializer

/** * Gets the value of the serializer 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 serializer property. * * <p> * For example, to add a new item, do as follows: * <pre> * getSerializer().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link SerializerType.Serializer } * * */
public List<SerializerType.Serializer> getSerializer() { if (serializer == null) { serializer = new ArrayList<SerializerType.Serializer>(); } return this.serializer; } public SerializerType withSerializer(SerializerType.Serializer... values) { if (values!= null) { for (SerializerType.Serializer value: values) { getSerializer().add(value); } } return this; } public SerializerType withSerializer(Collection<SerializerType.Serializer> values) { if (values!= null) { getSerializer().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> * &lt;complexType&gt; * &lt;simpleContent&gt; * &lt;extension base="&lt;http://www.ehcache.org/v3&gt;fqcn-type"&gt; * &lt;attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /&gt; * &lt;/extension&gt; * &lt;/simpleContent&gt; * &lt;/complexType&gt; * </pre> * * */
@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "value" }) public static class Serializer { @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 SerializerType.Serializer withValue(String value) { setValue(value); return this; } public SerializerType.Serializer withType(String value) { setType(value); return this; } } }