uk.ac.cam.spectra
Class EmbargoMetadataEncoder
java.lang.Object
uk.ac.cam.spectra.EmbargoMetadataEncoder
public class EmbargoMetadataEncoder
- extends java.lang.Object
Configuration of embargo and method to combine a set of licensing preferences
with an embargo release mechanism and period (usually supplied by the user,
and in RDF) configuratio encode Spectra embargo metadata as XML.
- Author:
- Jim Downing
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EmbargoMetadataEncoder
public EmbargoMetadataEncoder()
asXML
public nu.xom.Element asXML(com.hp.hpl.jena.rdf.model.Model m,
java.lang.String uri)
- Convert any embargo metadata in the model (in the form of
"automatic"/"manual" release and embargo period in months) and use the
configured open and closed license details to create a full XML
description of the embargo.
- Parameters:
m - uri -
- Returns:
getClosedLicenseDescription
public java.lang.String getClosedLicenseDescription()
setClosedLicenseDescription
public void setClosedLicenseDescription(java.lang.String closedLicenseDescription)
getClosedLicenseMachineReadable
public java.lang.String getClosedLicenseMachineReadable()
setClosedLicenseMachineReadable
public void setClosedLicenseMachineReadable(java.lang.String closedLicenseMachineReadable)
getClosedLicenseURL
public java.lang.String getClosedLicenseURL()
setClosedLicenseURL
public void setClosedLicenseURL(java.lang.String closedLicenseURL)
getOpenLicenseDescription
public java.lang.String getOpenLicenseDescription()
setOpenLicenseDescription
public void setOpenLicenseDescription(java.lang.String openLicenseDescription)
getOpenLicenseMachineReadable
public java.lang.String getOpenLicenseMachineReadable()
setOpenLicenseMachineReadable
public void setOpenLicenseMachineReadable(java.lang.String openLicenseMachineReadable)
getOpenLicenseURL
public java.lang.String getOpenLicenseURL()
setOpenLicenseURL
public void setOpenLicenseURL(java.lang.String openLicenseURL)
Copyright © 2006-2007 The SPECTRa Project. All Rights Reserved.