org.hibernate.boot.jaxb.cfg.spi.JaxbCfgEventListenerGroupType Maven / Gradle / Ivy
Show all versions of hibernate-core Show documentation
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2019.02.25 at 10:44:23 PM CET
//
package org.hibernate.boot.jaxb.cfg.spi;
import java.util.ArrayList;
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;
/**
* Java class for EventListenerGroupType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="EventListenerGroupType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="listener" type="{http://www.hibernate.org/xsd/orm/cfg}EventListenerType" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="type" use="required" type="{http://www.hibernate.org/xsd/orm/cfg}EventTypeEnum" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "EventListenerGroupType", propOrder = {
"listener"
})
public class JaxbCfgEventListenerGroupType {
protected List listener;
@XmlAttribute(name = "type", required = true)
protected JaxbCfgEventTypeEnum type;
/**
* Gets the value of the listener 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 listener property.
*
*
* For example, to add a new item, do as follows:
*
* getListener().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JaxbCfgEventListenerType }
*
*
*/
public List getListener() {
if (listener == null) {
listener = new ArrayList();
}
return this.listener;
}
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link JaxbCfgEventTypeEnum }
*
*/
public JaxbCfgEventTypeEnum getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link JaxbCfgEventTypeEnum }
*
*/
public void setType(JaxbCfgEventTypeEnum value) {
this.type = value;
}
}