// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-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.06.12 at 01:48:04 PM CEST // package de.tum.in.i22.uc.pdp.xsd.time; import ae.javax.xml.bind.annotation.XmlAccessType; import ae.javax.xml.bind.annotation.XmlAccessorType; import ae.javax.xml.bind.annotation.XmlAttribute; import ae.javax.xml.bind.annotation.XmlType; /** * * A time amount is a sum of elapsed time, which need not be of any specific intervals. * * * <p>Java class for TimeAmountType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="TimeAmountType"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attGroup ref="{http://www22.in.tum.de/time}TimeAmountAttributeGroup"/> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TimeAmountType") public class TimeAmountType { @XmlAttribute(name = "amount", required = true) protected long amount; @XmlAttribute(name = "unit") protected TimeUnitType unit; /** * Gets the value of the amount property. * */ public long getAmount() { return amount; } /** * Sets the value of the amount property. * */ public void setAmount(long value) { this.amount = value; } public boolean isSetAmount() { return true; } /** * Gets the value of the unit property. * * @return * possible object is * {@link TimeUnitType } * */ public TimeUnitType getUnit() { if (unit == null) { return TimeUnitType.TIMESTEPS; } else { return unit; } } /** * Sets the value of the unit property. * * @param value * allowed object is * {@link TimeUnitType } * */ public void setUnit(TimeUnitType value) { this.unit = value; } public boolean isSetUnit() { return (this.unit!= null); } }