//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-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.09.15 at 01:39:48 PM KST
//
package org.oliot.model.oliot;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Transient;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
import javax.xml.namespace.QName;
/**
*
* base type for all EPCIS
* events.
*
*
* <p>Java class for EPCISEventType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="EPCISEventType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="eventTime" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
* <element name="recordTime" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
* <element name="eventTimeZoneOffset" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="baseExtension" type="{axis.epcis.oliot.org}EPCISEventExtensionType" minOccurs="0"/>
* </sequence>
* <anyAttribute processContents='lax'/>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "EPCISEventType", propOrder = {
"eventTime",
"recordTime",
"eventTimeZoneOffset",
"baseExtension"
})
@XmlSeeAlso({
SensorEvent.class,
QuantityEvent.class,
AggregationEvent.class,
TransformationEvent.class,
TransactionEvent.class,
ObjectEvent.class
})
@Entity
@Inheritance (strategy=InheritanceType.JOINED)
public class EPCISEvent {
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
private int id;
@XmlElement(required = true)
@XmlSchemaType(name = "dateTime")
protected Date eventTime;
@XmlSchemaType(name = "dateTime")
protected Date recordTime;
@XmlElement(required = true)
protected String eventTimeZoneOffset;
@Transient // will be handled on EPCISEventExtensionType // but we dont have to habdel this
protected EPCISEventExtension baseExtension;
public EPCISEvent() {
super();
}
@Transient
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
/**
* Gets the value of the eventTime property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public Date getEventTime() {
return eventTime;
}
/**
* Sets the value of the eventTime property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setEventTime(Date value) {
this.eventTime = value;
}
/**
* Gets the value of the recordTime property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public Date getRecordTime() {
return recordTime;
}
/**
* Sets the value of the recordTime property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setRecordTime(Date value) {
this.recordTime = value;
}
/**
* Gets the value of the eventTimeZoneOffset property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getEventTimeZoneOffset() {
return eventTimeZoneOffset;
}
/**
* Sets the value of the eventTimeZoneOffset property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setEventTimeZoneOffset(String value) {
this.eventTimeZoneOffset = value;
}
/**
* Gets the value of the baseExtension property.
*
* @return
* possible object is
* {@link EPCISEventExtension_R }
*
*/
public EPCISEventExtension getBaseExtension() {
return baseExtension;
}
/**
* Sets the value of the baseExtension property.
*
* @param value
* allowed object is
* {@link EPCISEventExtension_R }
*
*/
public void setBaseExtension(EPCISEventExtension value) {
this.baseExtension = value;
}
/**
* Gets a map that contains attributes that aren't bound to any typed property on this class.
*
* <p>
* the map is keyed by the name of the attribute and
* the value is the string value of the attribute.
*
* the map returned by this method is live, and you can add new attribute
* by updating the map directly. Because of this design, there's no setter.
*
*
* @return
* always non-null
*/
public Map<QName, String> getOtherAttributes() {
return otherAttributes;
}
}