Search in sources :

Example 6 with BooleanType

use of org.apache.xmpbox.type.BooleanType in project pdfbox by apache.

the class XMPRightsManagementSchema method setMarked.

/**
 * Set Marked value
 *
 * @param marked
 *            value to add
 */
public void setMarked(Boolean marked) {
    BooleanType tt = (BooleanType) instanciateSimple(MARKED, marked ? BooleanType.TRUE : BooleanType.FALSE);
    setMarkedProperty(tt);
}
Also used : BooleanType(org.apache.xmpbox.type.BooleanType)

Aggregations

BooleanType (org.apache.xmpbox.type.BooleanType)6 Test (org.junit.Test)3 Calendar (java.util.Calendar)2 Attribute (org.apache.xmpbox.type.Attribute)2 Method (java.lang.reflect.Method)1 ValidationError (org.apache.pdfbox.preflight.ValidationResult.ValidationError)1 DublinCoreSchema (org.apache.xmpbox.schema.DublinCoreSchema)1 XMPRightsManagementSchema (org.apache.xmpbox.schema.XMPRightsManagementSchema)1 ArrayProperty (org.apache.xmpbox.type.ArrayProperty)1 DateType (org.apache.xmpbox.type.DateType)1 IntegerType (org.apache.xmpbox.type.IntegerType)1 TextType (org.apache.xmpbox.type.TextType)1