//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.06.12 at 01:48:04 PM CEST
//
package de.tum.in.i22.uc.pdp.xsd.event;
import java.util.ArrayList;
import java.util.List;
import ae.javax.xml.bind.annotation.XmlAccessType;
import ae.javax.xml.bind.annotation.XmlAccessorType;
import ae.javax.xml.bind.annotation.XmlAttribute;
import ae.javax.xml.bind.annotation.XmlType;
/**
*
* Events have a name and parameters.
* A try event represents an attempted usage event by a user.
*
*
* <p>Java class for EventType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="EventType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="parameter" type="{http://www22.in.tum.de/event}EventParameterType" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="action" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="isTry" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* <attribute name="timestamp" use="required" type="{http://www.w3.org/2001/XMLSchema}long" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "EventType", propOrder = {
"parameter"
})
public class EventType {
protected List<EventParameterType> parameter;
@XmlAttribute(name = "action", required = true)
protected String action;
@XmlAttribute(name = "isTry", required = true)
protected boolean isTry;
@XmlAttribute(name = "timestamp", required = true)
protected long timestamp;
/**
* Gets the value of the parameter 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 parameter property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getParameter().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link EventParameterType }
*
*
*/
public List<EventParameterType> getParameter() {
if (parameter == null) {
parameter = new ArrayList<EventParameterType>();
}
return this.parameter;
}
public boolean isSetParameter() {
return ((this.parameter!= null)&&(!this.parameter.isEmpty()));
}
public void unsetParameter() {
this.parameter = null;
}
/**
* Gets the value of the action property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAction() {
return action;
}
/**
* Sets the value of the action property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAction(String value) {
this.action = value;
}
public boolean isSetAction() {
return (this.action!= null);
}
/**
* Gets the value of the isTry property.
*
*/
public boolean isIsTry() {
return isTry;
}
/**
* Sets the value of the isTry property.
*
*/
public void setIsTry(boolean value) {
this.isTry = value;
}
public boolean isSetIsTry() {
return true;
}
/**
* Gets the value of the timestamp property.
*
*/
public long getTimestamp() {
return timestamp;
}
/**
* Sets the value of the timestamp property.
*
*/
public void setTimestamp(long value) {
this.timestamp = value;
}
public boolean isSetTimestamp() {
return true;
}
}