use of org.apache.xmpbox.type.URIType in project pdfbox by apache.
the class PhotoshopSchema method setAncestorID.
public void setAncestorID(String text) {
URIType tt = (URIType) instanciateSimple(ANCESTORID, text);
setAncestorIDProperty(tt);
}
use of org.apache.xmpbox.type.URIType in project pdfbox by apache.
the class XMPMediaManagementSchema method setDocumentID.
/**
* Set DocumentId value
*
* @param url
* DocumentId value to set
*/
public void setDocumentID(String url) {
URIType tt = (URIType) instanciateSimple(DOCUMENTID, url);
setDocumentIDProperty(tt);
}
use of org.apache.xmpbox.type.URIType in project pdfbox by apache.
the class XMPMediaManagementSchema method setInstanceID.
/**
* Set InstanceId value
*
* @param value
* InstanceId value to set
*/
public void setInstanceID(String value) {
URIType tt = (URIType) instanciateSimple(INSTANCEID, value);
setInstanceIDProperty(tt);
}
use of org.apache.xmpbox.type.URIType in project pdfbox by apache.
the class AbstractXMPSchemaTest method testGetSetURIProperty.
protected void testGetSetURIProperty() throws Exception {
String setName = setMethod(property);
String getName = getMethod(property);
URIType tt = metadata.getTypeMapping().createURI(null, schema.getPrefix(), property, (String) value);
Method setMethod = schemaClass.getMethod(setName, URIType.class);
Method getMethod = schemaClass.getMethod(getName);
setMethod.invoke(schema, tt);
String found = ((TextType) getMethod.invoke(schema)).getStringValue();
Assert.assertEquals(value, found);
}
use of org.apache.xmpbox.type.URIType in project pdfbox by apache.
the class XMPMediaManagementSchema method setManageTo.
/**
* Set ManageTo Value
*
* @param value
* ManageTo Value to set
*/
public void setManageTo(String value) {
URIType tt = (URIType) instanciateSimple(MANAGETO, value);
setManageToProperty(tt);
}