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

io.motown.ocpp.v15.soap.centralsystem.schema.MeterValue Maven / Gradle / Ivy

Go to download

Open Charge Point Protocol (OCPP). Provides a web service endpoint based on OCPP 1.5.

The newest version!

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.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;


/**
 * Defines single value of the meter-value-value
 * 
 * 

Java class for MeterValue complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="MeterValue">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="timestamp" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
 *         <element name="value" maxOccurs="unbounded">
 *           <complexType>
 *             <simpleContent>
 *               <extension base="<http://www.w3.org/2001/XMLSchema>string">
 *                 <attribute name="context" type="{urn://Ocpp/Cs/2012/06/}ReadingContext" />
 *                 <attribute name="format" type="{urn://Ocpp/Cs/2012/06/}ValueFormat" />
 *                 <attribute name="measurand" type="{urn://Ocpp/Cs/2012/06/}Measurand" />
 *                 <attribute name="location" type="{urn://Ocpp/Cs/2012/06/}Location" />
 *                 <attribute name="unit" type="{urn://Ocpp/Cs/2012/06/}UnitOfMeasure" />
 *               </extension>
 *             </simpleContent>
 *           </complexType>
 *         </element>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "MeterValue", propOrder = { "timestamp", "value" }) public class MeterValue { @XmlElement(required = true, type = String.class) @XmlJavaTypeAdapter(Adapter1 .class) @XmlSchemaType(name = "dateTime") protected Date timestamp; @XmlElement(required = true) protected List 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 value 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 value property. * *

* For example, to add a new item, do as follows: *

     *    getValue().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link MeterValue.Value } * * */ public List getValue() { if (value == null) { value = new ArrayList(); } return this.value; } /** *

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

     * <complexType>
     *   <simpleContent>
     *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
     *       <attribute name="context" type="{urn://Ocpp/Cs/2012/06/}ReadingContext" />
     *       <attribute name="format" type="{urn://Ocpp/Cs/2012/06/}ValueFormat" />
     *       <attribute name="measurand" type="{urn://Ocpp/Cs/2012/06/}Measurand" />
     *       <attribute name="location" type="{urn://Ocpp/Cs/2012/06/}Location" />
     *       <attribute name="unit" type="{urn://Ocpp/Cs/2012/06/}UnitOfMeasure" />
     *     </extension>
     *   </simpleContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "value" }) public static class Value { @XmlValue protected String value; @XmlAttribute(name = "context") protected ReadingContext context; @XmlAttribute(name = "format") protected ValueFormat format; @XmlAttribute(name = "measurand") protected Measurand measurand; @XmlAttribute(name = "location") protected Location location; @XmlAttribute(name = "unit") protected UnitOfMeasure unit; /** * Gets the value of the value property. * * @return * possible object is * {@link String } * */ public String getValue() { return value; } /** * Sets the value of the value property. * * @param value * allowed object is * {@link String } * */ public void setValue(String value) { this.value = value; } /** * Gets the value of the context property. * * @return * possible object is * {@link ReadingContext } * */ public ReadingContext getContext() { return context; } /** * Sets the value of the context property. * * @param value * allowed object is * {@link ReadingContext } * */ public void setContext(ReadingContext value) { this.context = value; } /** * Gets the value of the format property. * * @return * possible object is * {@link ValueFormat } * */ public ValueFormat getFormat() { return format; } /** * Sets the value of the format property. * * @param value * allowed object is * {@link ValueFormat } * */ public void setFormat(ValueFormat value) { this.format = value; } /** * Gets the value of the measurand property. * * @return * possible object is * {@link Measurand } * */ public Measurand getMeasurand() { return measurand; } /** * Sets the value of the measurand property. * * @param value * allowed object is * {@link Measurand } * */ public void setMeasurand(Measurand value) { this.measurand = value; } /** * Gets the value of the location property. * * @return * possible object is * {@link Location } * */ public Location getLocation() { return location; } /** * Sets the value of the location property. * * @param value * allowed object is * {@link Location } * */ public void setLocation(Location value) { this.location = value; } /** * Gets the value of the unit property. * * @return * possible object is * {@link UnitOfMeasure } * */ public UnitOfMeasure getUnit() { return unit; } /** * Sets the value of the unit property. * * @param value * allowed object is * {@link UnitOfMeasure } * */ public void setUnit(UnitOfMeasure value) { this.unit = value; } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy