package ocpp.v15.cs; import java.util.ArrayList; import java.util.List; import javax.annotation.Generated; 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.datatype.XMLGregorianCalendar; /** * Defines single value of the meter-value-value * * <p>Java class for MeterValue complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <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> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "MeterValue", propOrder = { "timestamp", "value" }) @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2015-06-12T04:15:01+12:00", comments = "JAXB RI v2.2.4-2") public class MeterValue { @XmlElement(required = true) @XmlSchemaType(name = "dateTime") @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2015-06-12T04:15:01+12:00", comments = "JAXB RI v2.2.4-2") protected XMLGregorianCalendar timestamp; @XmlElement(required = true) @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2015-06-12T04:15:01+12:00", comments = "JAXB RI v2.2.4-2") protected List<MeterValue.Value> value; /** * Gets the value of the timestamp property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2015-06-12T04:15:01+12:00", comments = "JAXB RI v2.2.4-2") public XMLGregorianCalendar getTimestamp() { return timestamp; } /** * Sets the value of the timestamp property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2015-06-12T04:15:01+12:00", comments = "JAXB RI v2.2.4-2") public void setTimestamp(XMLGregorianCalendar value) { this.timestamp = value; } /** * Gets the value of the value 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 value property. * * <p> * For example, to add a new item, do as follows: * <pre> * getValue().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link MeterValue.Value } * * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2015-06-12T04:15:01+12:00", comments = "JAXB RI v2.2.4-2") public List<MeterValue.Value> getValue() { if (value == null) { value = new ArrayList<MeterValue.Value>(); } return this.value; } /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <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> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "value" }) @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2015-06-12T04:15:01+12:00", comments = "JAXB RI v2.2.4-2") public static class Value { @XmlValue @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2015-06-12T04:15:01+12:00", comments = "JAXB RI v2.2.4-2") protected String value; @XmlAttribute(name = "context") @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2015-06-12T04:15:01+12:00", comments = "JAXB RI v2.2.4-2") protected ReadingContext context; @XmlAttribute(name = "format") @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2015-06-12T04:15:01+12:00", comments = "JAXB RI v2.2.4-2") protected ValueFormat format; @XmlAttribute(name = "measurand") @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2015-06-12T04:15:01+12:00", comments = "JAXB RI v2.2.4-2") protected Measurand measurand; @XmlAttribute(name = "location") @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2015-06-12T04:15:01+12:00", comments = "JAXB RI v2.2.4-2") protected Location location; @XmlAttribute(name = "unit") @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2015-06-12T04:15:01+12:00", comments = "JAXB RI v2.2.4-2") protected UnitOfMeasure unit; /** * Gets the value of the value property. * * @return * possible object is * {@link String } * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2015-06-12T04:15:01+12:00", comments = "JAXB RI v2.2.4-2") public String getValue() { return value; } /** * Sets the value of the value property. * * @param value * allowed object is * {@link String } * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2015-06-12T04:15:01+12:00", comments = "JAXB RI v2.2.4-2") public void setValue(String value) { this.value = value; } /** * Gets the value of the context property. * * @return * possible object is * {@link ReadingContext } * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2015-06-12T04:15:01+12:00", comments = "JAXB RI v2.2.4-2") public ReadingContext getContext() { return context; } /** * Sets the value of the context property. * * @param value * allowed object is * {@link ReadingContext } * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2015-06-12T04:15:01+12:00", comments = "JAXB RI v2.2.4-2") public void setContext(ReadingContext value) { this.context = value; } /** * Gets the value of the format property. * * @return * possible object is * {@link ValueFormat } * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2015-06-12T04:15:01+12:00", comments = "JAXB RI v2.2.4-2") public ValueFormat getFormat() { return format; } /** * Sets the value of the format property. * * @param value * allowed object is * {@link ValueFormat } * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2015-06-12T04:15:01+12:00", comments = "JAXB RI v2.2.4-2") public void setFormat(ValueFormat value) { this.format = value; } /** * Gets the value of the measurand property. * * @return * possible object is * {@link Measurand } * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2015-06-12T04:15:01+12:00", comments = "JAXB RI v2.2.4-2") public Measurand getMeasurand() { return measurand; } /** * Sets the value of the measurand property. * * @param value * allowed object is * {@link Measurand } * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2015-06-12T04:15:01+12:00", comments = "JAXB RI v2.2.4-2") public void setMeasurand(Measurand value) { this.measurand = value; } /** * Gets the value of the location property. * * @return * possible object is * {@link Location } * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2015-06-12T04:15:01+12:00", comments = "JAXB RI v2.2.4-2") public Location getLocation() { return location; } /** * Sets the value of the location property. * * @param value * allowed object is * {@link Location } * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2015-06-12T04:15:01+12:00", comments = "JAXB RI v2.2.4-2") public void setLocation(Location value) { this.location = value; } /** * Gets the value of the unit property. * * @return * possible object is * {@link UnitOfMeasure } * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2015-06-12T04:15:01+12:00", comments = "JAXB RI v2.2.4-2") public UnitOfMeasure getUnit() { return unit; } /** * Sets the value of the unit property. * * @param value * allowed object is * {@link UnitOfMeasure } * */ @Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2015-06-12T04:15:01+12:00", comments = "JAXB RI v2.2.4-2") public void setUnit(UnitOfMeasure value) { this.unit = value; } } }