Package org.apache.xmpbox.type

Examples of org.apache.xmpbox.type.DateType


        return tt == null ? null : tt.getStringValue();
    }

    public void setDateCreated(String text)
    {
        DateType tt = (DateType) instanciateSimple(DATE_CREATED, text);
        setDateCreatedProperty(tt);
    }
View Full Code Here


     * @param date
     *            the value to set
     */
    public void setCreateDate(Calendar date)
    {
        DateType tt = (DateType) instanciateSimple(CREATEDATE, date);
        setCreateDateProperty(tt);
    }
View Full Code Here

     * @param date
     *            the Metadata Date value to set
     */
    public void setMetadataDate(Calendar date)
    {
        DateType tt = (DateType) instanciateSimple(METADATADATE, date);
        setMetadataDateProperty(tt);
    }
View Full Code Here

     * @param date
     *            the Modify Date value to set
     */
    public void setModifyDate(Calendar date)
    {
        DateType tt = (DateType) instanciateSimple(MODIFYDATE, date);
        setModifyDateProperty(tt);
    }
View Full Code Here

        setModifyDateProperty(tt);
    }

    public void setModifierDate(Calendar date)
    {
        DateType tt = (DateType) instanciateSimple(MODIFIER_DATE, date);
        setModifierDateProperty(tt);
    }
View Full Code Here

     *
     * @return the CreateDate value
     */
    public Calendar getCreateDate()
    {
        DateType createDate = (DateType) getProperty(CREATEDATE);
        if (createDate != null)
        {
            return createDate.getValue();
        }
        return null;
    }
View Full Code Here

     *
     * @return the MetadataDate value
     */
    public Calendar getMetadataDate()
    {
        DateType dt = ((DateType) getProperty(METADATADATE));
        return dt == null ? null : dt.getValue();
    }
View Full Code Here

     *
     * @return the ModifyDate value
     */
    public Calendar getModifyDate()
    {
        DateType modifyDate = (DateType) getProperty(MODIFYDATE);
        if (modifyDate != null)
        {
            return modifyDate.getValue();
        }
        return null;

    }
View Full Code Here

    }

    public Calendar getModifierDate()
    {
        DateType modifierDate = (DateType) getProperty(MODIFIER_DATE);
        if (modifierDate != null)
        {
            return modifierDate.getValue();
        }
        return null;

    }
View Full Code Here

    protected void testGetSetDateProperty() throws Exception
    {
        String setName = setMethod(property);
        String getName = getMethod(property);

        DateType dt = new DateType(metadata, null, schema.getPrefix(), property, value);
        Method setMethod = schemaClass.getMethod(setName, DateType.class);
        Method getMethod = schemaClass.getMethod(getName);

        setMethod.invoke(schema, dt);
        Calendar found = ((DateType) getMethod.invoke(schema)).getValue();
View Full Code Here

TOP

Related Classes of org.apache.xmpbox.type.DateType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.