public class ReportDuration extends Object implements Serializable, org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode, org.jvnet.jaxb2_commons.lang.ToString
Any report can be generated over a date range. API support few in-built date ranges. StartDate and EndDate elements are ignored if user select built-in durations. It also provides flexibility to provide user's custom dates. In such scenario StartDate and EndDate elements are mandatory.
Java class for ReportDuration complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="ReportDuration">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="duration" type="{http://service.aeris.com/reports/v1/basetype}Duration" minOccurs="0"/>
<element name="startDate" type="{http://service.aeris.com/reports/v1/basetype}startDate" minOccurs="0"/>
<element name="endDate" type="{http://service.aeris.com/reports/v1/basetype}endDate" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected Duration |
duration |
protected Calendar |
endDate |
protected Calendar |
startDate |
| Constructor and Description |
|---|
ReportDuration() |
| Modifier and Type | Method and Description |
|---|---|
StringBuilder |
append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
StringBuilder buffer,
org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy) |
StringBuilder |
appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
StringBuilder buffer,
org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy) |
boolean |
equals(Object object) |
boolean |
equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator,
org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator,
Object object,
org.jvnet.jaxb2_commons.lang.EqualsStrategy strategy) |
Duration |
getDuration()
Gets the value of the duration property.
|
Calendar |
getEndDate()
Gets the value of the endDate property.
|
Calendar |
getStartDate()
Gets the value of the startDate property.
|
int |
hashCode() |
int |
hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy) |
void |
setDuration(Duration value)
Sets the value of the duration property.
|
void |
setEndDate(Calendar value)
Sets the value of the endDate property.
|
void |
setStartDate(Calendar value)
Sets the value of the startDate property.
|
String |
toString() |
protected Duration duration
protected Calendar startDate
protected Calendar endDate
public Duration getDuration()
Durationpublic void setDuration(Duration value)
value - allowed object is
Durationpublic Calendar getStartDate()
Stringpublic void setStartDate(Calendar value)
value - allowed object is
Stringpublic Calendar getEndDate()
Stringpublic void setEndDate(Calendar value)
value - allowed object is
Stringpublic boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator,
org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator,
Object object,
org.jvnet.jaxb2_commons.lang.EqualsStrategy strategy)
equals in interface org.jvnet.jaxb2_commons.lang.Equalspublic StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
append in interface org.jvnet.jaxb2_commons.lang.ToStringpublic StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
appendFields in interface org.jvnet.jaxb2_commons.lang.ToStringpublic int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
hashCode in interface org.jvnet.jaxb2_commons.lang.HashCodeCopyright © 2023. All rights reserved.