use of org.apache.xmpbox.type.DateType in project pdfbox by apache.
the class PhotoshopSchema method setDateCreated.
public void setDateCreated(String text) {
DateType tt = (DateType) instanciateSimple(DATE_CREATED, text);
setDateCreatedProperty(tt);
}
use of org.apache.xmpbox.type.DateType in project pdfbox by apache.
the class XMPBasicSchema method setCreateDate.
/**
* Set the date and time the resource was originally created
*
* @param date
* the value to set
*/
public void setCreateDate(Calendar date) {
DateType tt = (DateType) instanciateSimple(CREATEDATE, date);
setCreateDateProperty(tt);
}
use of org.apache.xmpbox.type.DateType in project pdfbox by apache.
the class XMPSchema method getUnqualifiedSequenceDateValueList.
/**
* Get all the date values in a sequence property.
*
* @param seqName
* The name of the sequence property, it must include the namespace prefix, e.g. "pdf:Keywords".
*
* @return A read-only list of java.util.Calendar objects or null if the property does not exist.
*/
public List<Calendar> getUnqualifiedSequenceDateValueList(String seqName) {
List<Calendar> retval = null;
ArrayProperty seq = (ArrayProperty) getAbstractProperty(seqName);
if (seq != null) {
retval = new ArrayList<>();
for (AbstractField child : seq.getContainer().getAllProperties()) {
if (child instanceof DateType) {
retval.add(((DateType) child).getValue());
}
}
}
return retval;
}
Aggregations