Search in sources :

Example 1 with URLType

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

the class XMPRightsManagementSchema method setWebStatement.

/**
 * Set the WebStatement url
 *
 * @param url
 *            WebStatemen url value to set
 */
public void setWebStatement(String url) {
    URLType tt = (URLType) instanciateSimple(WEBSTATEMENT, url);
    setWebStatementProperty(tt);
}
Also used : URLType(org.apache.xmpbox.type.URLType)

Example 2 with URLType

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

the class AbstractXMPSchemaTest method testGetSetURLProperty.

protected void testGetSetURLProperty() throws Exception {
    String setName = setMethod(property);
    String getName = getMethod(property);
    URLType tt = metadata.getTypeMapping().createURL(null, schema.getPrefix(), property, (String) value);
    Method setMethod = schemaClass.getMethod(setName, URLType.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) URLType(org.apache.xmpbox.type.URLType) TextType(org.apache.xmpbox.type.TextType)

Example 3 with URLType

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

the class XMPBasicSchema method setBaseURL.

/**
 * Set the base URL for relative URLs in the document content
 *
 * @param url
 *            the Base url value to set
 */
public void setBaseURL(String url) {
    URLType tt = (URLType) instanciateSimple(BASEURL, url);
    setBaseURLProperty(tt);
}
Also used : URLType(org.apache.xmpbox.type.URLType)

Example 4 with URLType

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

the class XMPMediaManagementSchema method setLastURL.

/**
 * Set DocumentId value
 *
 * @param url
 *            DocumentId value to set
 */
public void setLastURL(String url) {
    URLType tt = (URLType) instanciateSimple(LAST_URL, url);
    setLastURLProperty(tt);
}
Also used : URLType(org.apache.xmpbox.type.URLType)

Example 5 with URLType

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

the class XMPRightsManagementSchema method setCertificate.

/**
 * Set the Certificate URL.
 *
 * @param url
 *            certficate url value to set
 */
public void setCertificate(String url) {
    URLType tt = (URLType) instanciateSimple(CERTIFICATE, url);
    setCertificateProperty(tt);
}
Also used : URLType(org.apache.xmpbox.type.URLType)

Aggregations

URLType (org.apache.xmpbox.type.URLType)5 Method (java.lang.reflect.Method)1 TextType (org.apache.xmpbox.type.TextType)1