Search in sources :

Example 1 with URIType

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);
}
Also used : URIType(org.apache.xmpbox.type.URIType)

Example 2 with URIType

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);
}
Also used : URIType(org.apache.xmpbox.type.URIType)

Example 3 with URIType

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);
}
Also used : URIType(org.apache.xmpbox.type.URIType)

Example 4 with URIType

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);
}
Also used : Method(java.lang.reflect.Method) URIType(org.apache.xmpbox.type.URIType) TextType(org.apache.xmpbox.type.TextType)

Example 5 with URIType

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);
}
Also used : URIType(org.apache.xmpbox.type.URIType)

Aggregations

URIType (org.apache.xmpbox.type.URIType)6 Method (java.lang.reflect.Method)1 TextType (org.apache.xmpbox.type.TextType)1