All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ehcache.xml.model.ObjectFactory Maven / Gradle / Ivy

There is a newer version: 3.10.8
Show newest version

package org.ehcache.xml.model;

import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;


/**
 * This object contains factory methods for each 
 * Java content interface and Java element interface 
 * generated in the org.ehcache.xml.model package. 
 * <p>An ObjectFactory allows you to programatically 
 * construct new instances of the Java representation 
 * for XML content. The Java representation of XML 
 * content can consist of schema derived interfaces 
 * and classes representing the binding of schema 
 * type definitions, element declarations and model 
 * groups.  Factory methods for each of these are 
 * provided in this class.
 * 
 */
@XmlRegistry
public class ObjectFactory {

    private final static QName _Config_QNAME = new QName("http://www.ehcache.org/v3", "config");
    private final static QName _ServiceCreationConfiguration_QNAME = new QName("http://www.ehcache.org/v3", "service-creation-configuration");
    private final static QName _ServiceConfiguration_QNAME = new QName("http://www.ehcache.org/v3", "service-configuration");
    private final static QName _Resource_QNAME = new QName("http://www.ehcache.org/v3", "resource");

    /**
     * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.ehcache.xml.model
     * 
     */
    public ObjectFactory() {
    }

    /**
     * Create an instance of {@link ExpiryType }
     * 
     */
    public ExpiryType createExpiryType() {
        return new ExpiryType();
    }

    /**
     * Create an instance of {@link CacheLoaderWriterType }
     * 
     */
    public CacheLoaderWriterType createCacheLoaderWriterType() {
        return new CacheLoaderWriterType();
    }

    /**
     * Create an instance of {@link CacheLoaderWriterType.WriteBehind }
     * 
     */
    public CacheLoaderWriterType.WriteBehind createCacheLoaderWriterTypeWriteBehind() {
        return new CacheLoaderWriterType.WriteBehind();
    }

    /**
     * Create an instance of {@link ListenersType }
     * 
     */
    public ListenersType createListenersType() {
        return new ListenersType();
    }

    /**
     * Create an instance of {@link SizeofType }
     * 
     */
    public SizeofType createSizeofType() {
        return new SizeofType();
    }

    /**
     * Create an instance of {@link ThreadPoolsType }
     * 
     */
    public ThreadPoolsType createThreadPoolsType() {
        return new ThreadPoolsType();
    }

    /**
     * Create an instance of {@link CopierType }
     * 
     */
    public CopierType createCopierType() {
        return new CopierType();
    }

    /**
     * Create an instance of {@link SerializerType }
     * 
     */
    public SerializerType createSerializerType() {
        return new SerializerType();
    }

    /**
     * Create an instance of {@link ConfigType }
     * 
     */
    public ConfigType createConfigType() {
        return new ConfigType();
    }

    /**
     * Create an instance of {@link ResourceTypeWithPropSubst }
     * 
     */
    public ResourceTypeWithPropSubst createResourceTypeWithPropSubst() {
        return new ResourceTypeWithPropSubst();
    }

    /**
     * Create an instance of {@link MemoryTypeWithPropSubst }
     * 
     */
    public MemoryTypeWithPropSubst createMemoryTypeWithPropSubst() {
        return new MemoryTypeWithPropSubst();
    }

    /**
     * Create an instance of {@link PersistableMemoryTypeWithPropSubst }
     * 
     */
    public PersistableMemoryTypeWithPropSubst createPersistableMemoryTypeWithPropSubst() {
        return new PersistableMemoryTypeWithPropSubst();
    }

    /**
     * Create an instance of {@link ServiceType }
     * 
     */
    public ServiceType createServiceType() {
        return new ServiceType();
    }

    /**
     * Create an instance of {@link PersistenceType }
     * 
     */
    public PersistenceType createPersistenceType() {
        return new PersistenceType();
    }

    /**
     * Create an instance of {@link ThreadPoolReferenceType }
     * 
     */
    public ThreadPoolReferenceType createThreadPoolReferenceType() {
        return new ThreadPoolReferenceType();
    }

    /**
     * Create an instance of {@link CacheType }
     * 
     */
    public CacheType createCacheType() {
        return new CacheType();
    }

    /**
     * Create an instance of {@link CacheTemplateType }
     * 
     */
    public CacheTemplateType createCacheTemplateType() {
        return new CacheTemplateType();
    }

    /**
     * Create an instance of {@link CacheEntryType }
     * 
     */
    public CacheEntryType createCacheEntryType() {
        return new CacheEntryType();
    }

    /**
     * Create an instance of {@link TimeTypeWithPropSubst }
     * 
     */
    public TimeTypeWithPropSubst createTimeTypeWithPropSubst() {
        return new TimeTypeWithPropSubst();
    }

    /**
     * Create an instance of {@link MemoryType }
     * 
     */
    public MemoryType createMemoryType() {
        return new MemoryType();
    }

    /**
     * Create an instance of {@link ResourcesType }
     * 
     */
    public ResourcesType createResourcesType() {
        return new ResourcesType();
    }

    /**
     * Create an instance of {@link DiskStoreSettingsType }
     * 
     */
    public DiskStoreSettingsType createDiskStoreSettingsType() {
        return new DiskStoreSettingsType();
    }

    /**
     * Create an instance of {@link ExpiryType.None }
     * 
     */
    public ExpiryType.None createExpiryTypeNone() {
        return new ExpiryType.None();
    }

    /**
     * Create an instance of {@link CacheLoaderWriterType.WriteBehind.Batching }
     * 
     */
    public CacheLoaderWriterType.WriteBehind.Batching createCacheLoaderWriterTypeWriteBehindBatching() {
        return new CacheLoaderWriterType.WriteBehind.Batching();
    }

    /**
     * Create an instance of {@link CacheLoaderWriterType.WriteBehind.NonBatching }
     * 
     */
    public CacheLoaderWriterType.WriteBehind.NonBatching createCacheLoaderWriterTypeWriteBehindNonBatching() {
        return new CacheLoaderWriterType.WriteBehind.NonBatching();
    }

    /**
     * Create an instance of {@link ListenersType.Listener }
     * 
     */
    public ListenersType.Listener createListenersTypeListener() {
        return new ListenersType.Listener();
    }

    /**
     * Create an instance of {@link SizeofType.MaxObjectGraphSize }
     * 
     */
    public SizeofType.MaxObjectGraphSize createSizeofTypeMaxObjectGraphSize() {
        return new SizeofType.MaxObjectGraphSize();
    }

    /**
     * Create an instance of {@link ThreadPoolsType.ThreadPool }
     * 
     */
    public ThreadPoolsType.ThreadPool createThreadPoolsTypeThreadPool() {
        return new ThreadPoolsType.ThreadPool();
    }

    /**
     * Create an instance of {@link CopierType.Copier }
     * 
     */
    public CopierType.Copier createCopierTypeCopier() {
        return new CopierType.Copier();
    }

    /**
     * Create an instance of {@link SerializerType.Serializer }
     * 
     */
    public SerializerType.Serializer createSerializerTypeSerializer() {
        return new SerializerType.Serializer();
    }

    /**
     * Create an instance of {@link JAXBElement }{@code <}{@link ConfigType }{@code >}
     * 
     * @param value
     *     Java instance representing xml element's value.
     * @return
     *     the new instance of {@link JAXBElement }{@code <}{@link ConfigType }{@code >}
     */
    @XmlElementDecl(namespace = "http://www.ehcache.org/v3", name = "config")
    public JAXBElement createConfig(ConfigType value) {
        return new JAXBElement(_Config_QNAME, ConfigType.class, null, value);
    }

    /**
     * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >}
     * 
     * @param value
     *     Java instance representing xml element's value.
     * @return
     *     the new instance of {@link JAXBElement }{@code <}{@link Object }{@code >}
     */
    @XmlElementDecl(namespace = "http://www.ehcache.org/v3", name = "service-creation-configuration")
    public JAXBElement createServiceCreationConfiguration(Object value) {
        return new JAXBElement(_ServiceCreationConfiguration_QNAME, Object.class, null, value);
    }

    /**
     * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >}
     * 
     * @param value
     *     Java instance representing xml element's value.
     * @return
     *     the new instance of {@link JAXBElement }{@code <}{@link Object }{@code >}
     */
    @XmlElementDecl(namespace = "http://www.ehcache.org/v3", name = "service-configuration")
    public JAXBElement createServiceConfiguration(Object value) {
        return new JAXBElement(_ServiceConfiguration_QNAME, Object.class, null, value);
    }

    /**
     * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >}
     * 
     * @param value
     *     Java instance representing xml element's value.
     * @return
     *     the new instance of {@link JAXBElement }{@code <}{@link Object }{@code >}
     */
    @XmlElementDecl(namespace = "http://www.ehcache.org/v3", name = "resource")
    public JAXBElement createResource(Object value) {
        return new JAXBElement(_Resource_QNAME, Object.class, null, value);
    }

    /**
     * Create an instance of {@link Heap }
     * 
     * @param value
     *     Java instance representing xml element's value.
     * @return
     *     the new instance of {@link Heap }
     */
    @XmlElementDecl(namespace = "http://www.ehcache.org/v3", name = "heap", substitutionHeadNamespace = "http://www.ehcache.org/v3", substitutionHeadName = "resource")
    public Heap createHeap(ResourceTypeWithPropSubst value) {
        return new Heap(value);
    }

    /**
     * Create an instance of {@link Offheap }
     * 
     * @param value
     *     Java instance representing xml element's value.
     * @return
     *     the new instance of {@link Offheap }
     */
    @XmlElementDecl(namespace = "http://www.ehcache.org/v3", name = "offheap", substitutionHeadNamespace = "http://www.ehcache.org/v3", substitutionHeadName = "resource")
    public Offheap createOffheap(MemoryTypeWithPropSubst value) {
        return new Offheap(value);
    }

    /**
     * Create an instance of {@link Disk }
     * 
     * @param value
     *     Java instance representing xml element's value.
     * @return
     *     the new instance of {@link Disk }
     */
    @XmlElementDecl(namespace = "http://www.ehcache.org/v3", name = "disk", substitutionHeadNamespace = "http://www.ehcache.org/v3", substitutionHeadName = "resource")
    public Disk createDisk(PersistableMemoryTypeWithPropSubst value) {
        return new Disk(value);
    }

}