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);
}
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);
}
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);
}
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);
}
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);
}