use of org.apache.xmpbox.type.IntegerType in project pdfbox by apache.
the class AbstractXMPSchemaTest method testGetSetIntegerProperty.
protected void testGetSetIntegerProperty() throws Exception {
String setName = setMethod(property);
String getName = getMethod(property);
IntegerType it = new IntegerType(metadata, null, schema.getPrefix(), property, value);
Method setMethod = schemaClass.getMethod(setName, IntegerType.class);
Method getMethod = schemaClass.getMethod(getName);
setMethod.invoke(schema, it);
Integer found = ((IntegerType) getMethod.invoke(schema)).getValue();
Assert.assertEquals(value, found);
}
use of org.apache.xmpbox.type.IntegerType in project pdfbox by apache.
the class PDFAIdentificationSchema method setPartValueWithInt.
/**
* Set the PDFA Version identifier (with an int)
*
* @param value
* The version Id value to set
*/
public void setPartValueWithInt(int value) {
IntegerType part = (IntegerType) instanciateSimple(PART, value);
addProperty(part);
}
use of org.apache.xmpbox.type.IntegerType in project pdfbox by apache.
the class PhotoshopSchema method setUrgency.
public void setUrgency(String s) {
IntegerType tt = (IntegerType) instanciateSimple(URGENCY, s);
setUrgencyProperty(tt);
}
use of org.apache.xmpbox.type.IntegerType in project pdfbox by apache.
the class XMPBasicSchema method setRating.
/**
* Set a number that indicates a document's status relative to other documents, used to organize documents in a file
* browser (values are user-defined within an application-defined range)
*
* @param rate
* the rate value to set
*/
public void setRating(Integer rate) {
IntegerType tt = (IntegerType) instanciateSimple(RATING, rate);
setRatingProperty(tt);
}
Aggregations