package element_with_adapter;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
/**
* <p>Java class for calendar complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="calendar">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="url" type="{http://www.w3.org/2001/XMLSchema}anyURI"/>
* <element name="appointments" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="appointment" type="{http://www.w3.org/2001/XMLSchema}dateTime" maxOccurs="unbounded"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "calendar", propOrder = {
"url",
"itemsAppointed"
})
public class Calendar {
@XmlElement(required = true)
@XmlSchemaType(name = "anyURI")
protected String url;
@XmlElementWrapper(name = "appointments")
@XmlElement(name = "appointment", type = String.class)
@XmlJavaTypeAdapter(Adapter1 .class)
protected Collection<Date> itemsAppointed = new ArrayList<Date>();
/**
* Gets the value of the url property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUrl() {
return url;
}
/**
* Sets the value of the url property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUrl(String value) {
this.url = value;
}
public Collection<Date> getItemsAppointed() {
return itemsAppointed;
}
public void setItemsAppointed(Collection<Date> itemsAppointed) {
this.itemsAppointed = itemsAppointed;
}
}