package org.openlca.ecospold.internal.impact;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
import org.openlca.ecospold.ITimePeriod;
/**
* Contains all possible date-formats applicable to describe start and end date of the time period for which the dataset is valid.
*
* <p>Java class for TTimePeriod complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="TTimePeriod">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <choice>
* <element name="startYear" type="{http://www.w3.org/2001/XMLSchema}gYear"/>
* <element name="startYearMonth" type="{http://www.w3.org/2001/XMLSchema}gYearMonth"/>
* <element name="startDate" type="{http://www.w3.org/2001/XMLSchema}date"/>
* </choice>
* <choice>
* <element name="endYear" type="{http://www.w3.org/2001/XMLSchema}gYear"/>
* <element name="endYearMonth" type="{http://www.w3.org/2001/XMLSchema}gYearMonth"/>
* <element name="endDate" type="{http://www.w3.org/2001/XMLSchema}date"/>
* </choice>
* </sequence>
* <attribute name="dataValidForEntirePeriod" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* <attribute name="text" type="{http://www.EcoInvent.org/EcoSpold01Impact}TString32000" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TTimePeriod", propOrder = {
"startYear",
"startYearMonth",
"startDate",
"endYear",
"endYearMonth",
"endDate"
})
class ImpactTimePeriod
implements Serializable, ITimePeriod
{
private final static long serialVersionUID = 1L;
@XmlSchemaType(name = "gYear")
protected XMLGregorianCalendar startYear;
@XmlSchemaType(name = "gYearMonth")
protected XMLGregorianCalendar startYearMonth;
@XmlSchemaType(name = "date")
protected XMLGregorianCalendar startDate;
@XmlSchemaType(name = "gYear")
protected XMLGregorianCalendar endYear;
@XmlSchemaType(name = "gYearMonth")
protected XMLGregorianCalendar endYearMonth;
@XmlSchemaType(name = "date")
protected XMLGregorianCalendar endDate;
@XmlAttribute(name = "dataValidForEntirePeriod", required = true)
protected boolean dataValidForEntirePeriod;
@XmlAttribute(name = "text")
protected String text;
/**
* Gets the value of the startYear property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
@Override
public XMLGregorianCalendar getStartYear() {
return startYear;
}
/**
* Sets the value of the startYear property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
@Override
public void setStartYear(XMLGregorianCalendar value) {
this.startYear = value;
}
/**
* Gets the value of the startYearMonth property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
@Override
public XMLGregorianCalendar getStartYearMonth() {
return startYearMonth;
}
/**
* Sets the value of the startYearMonth property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
@Override
public void setStartYearMonth(XMLGregorianCalendar value) {
this.startYearMonth = value;
}
/**
* Gets the value of the startDate property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
@Override
public XMLGregorianCalendar getStartDate() {
return startDate;
}
/**
* Sets the value of the startDate property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
@Override
public void setStartDate(XMLGregorianCalendar value) {
this.startDate = value;
}
/**
* Gets the value of the endYear property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
@Override
public XMLGregorianCalendar getEndYear() {
return endYear;
}
/**
* Sets the value of the endYear property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
@Override
public void setEndYear(XMLGregorianCalendar value) {
this.endYear = value;
}
/**
* Gets the value of the endYearMonth property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
@Override
public XMLGregorianCalendar getEndYearMonth() {
return endYearMonth;
}
/**
* Sets the value of the endYearMonth property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
@Override
public void setEndYearMonth(XMLGregorianCalendar value) {
this.endYearMonth = value;
}
/**
* Gets the value of the endDate property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
@Override
public XMLGregorianCalendar getEndDate() {
return endDate;
}
/**
* Sets the value of the endDate property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
@Override
public void setEndDate(XMLGregorianCalendar value) {
this.endDate = value;
}
/**
* Gets the value of the dataValidForEntirePeriod property.
*
*/
@Override
public boolean isDataValidForEntirePeriod() {
return dataValidForEntirePeriod;
}
/**
* Sets the value of the dataValidForEntirePeriod property.
*
*/
@Override
public void setDataValidForEntirePeriod(boolean value) {
this.dataValidForEntirePeriod = value;
}
/**
* Gets the value of the text property.
*
* @return
* possible object is
* {@link String }
*
*/
@Override
public String getText() {
return text;
}
/**
* Sets the value of the text property.
*
* @param value
* allowed object is
* {@link String }
*
*/
@Override
public void setText(String value) {
this.text = value;
}
}