Code example for DatatypeFactory

Methods: newXMLGregorianCalendar

0
     * </p> 
     * 
     * @param created a reference to the {@code GregorianCalendar} that represents the creation time to be set. 
     */ 
    public void setCreatedCalendar(GregorianCalendar created) {
        this.setCreated(this.factory.newXMLGregorianCalendar(created));
    } 
 
    /** 
     * <p> 
     * Obtains the expiration time as a {@code XMLGregorianCalendar}. 
     * </p> 
     * 
     * @return a reference to the {@code XMLGregorianCalendar} that represents the expiration time. 
     */ 
    public XMLGregorianCalendar getExpires() {
        return this.expires;
    } 
 
    /**