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

ocpp.v15.cs.StopTransactionRequest Maven / Gradle / Ivy


package ocpp.v15.cs;

import java.util.ArrayList;
import java.util.List;
import javax.xml.datatype.XMLGregorianCalendar;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlSchemaType;
import jakarta.xml.bind.annotation.XmlType;


/**
 * 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) @XmlSchemaType(name = "dateTime") protected XMLGregorianCalendar 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 XMLGregorianCalendar } * */ public XMLGregorianCalendar getTimestamp() { return timestamp; } /** * Sets the value of the timestamp property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setTimestamp(XMLGregorianCalendar 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 Jakarta XML Binding 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; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy