![JAR search and dependency download from the Maven repository](/logo.png)
io.motown.ocpp.v15.soap.centralsystem.schema.StopTransactionRequest Maven / Gradle / Ivy
Show all versions of ocpp-v15-soap Show documentation
package io.motown.ocpp.v15.soap.centralsystem.schema;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
/**
* Defines the StopTransaction.req PDU
*
* Java class for StopTransactionRequest complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="StopTransactionRequest">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="transactionId" type="{http://www.w3.org/2001/XMLSchema}int"/>
* <element name="idTag" type="{urn://Ocpp/Cs/2012/06/}IdToken" minOccurs="0"/>
* <element name="timestamp" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
* <element name="meterStop" type="{http://www.w3.org/2001/XMLSchema}int"/>
* <element name="transactionData" type="{urn://Ocpp/Cs/2012/06/}TransactionData" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "StopTransactionRequest", propOrder = {
"transactionId",
"idTag",
"timestamp",
"meterStop",
"transactionData"
})
public class StopTransactionRequest {
protected int transactionId;
protected String idTag;
@XmlElement(required = true, type = String.class)
@XmlJavaTypeAdapter(Adapter1 .class)
@XmlSchemaType(name = "dateTime")
protected Date timestamp;
protected int meterStop;
protected List transactionData;
/**
* Gets the value of the transactionId property.
*
*/
public int getTransactionId() {
return transactionId;
}
/**
* Sets the value of the transactionId property.
*
*/
public void setTransactionId(int value) {
this.transactionId = value;
}
/**
* Gets the value of the idTag property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getIdTag() {
return idTag;
}
/**
* Sets the value of the idTag property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setIdTag(String value) {
this.idTag = value;
}
/**
* Gets the value of the timestamp property.
*
* @return
* possible object is
* {@link String }
*
*/
public Date getTimestamp() {
return timestamp;
}
/**
* Sets the value of the timestamp property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTimestamp(Date value) {
this.timestamp = value;
}
/**
* Gets the value of the meterStop property.
*
*/
public int getMeterStop() {
return meterStop;
}
/**
* Sets the value of the meterStop property.
*
*/
public void setMeterStop(int value) {
this.meterStop = value;
}
/**
* Gets the value of the transactionData 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 transactionData property.
*
*
* For example, to add a new item, do as follows:
*
* getTransactionData().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link TransactionData }
*
*
*/
public List getTransactionData() {
if (transactionData == null) {
transactionData = new ArrayList();
}
return this.transactionData;
}
}