uk.ac.cam.spectra
Class EmbargoMetadataEncoder

java.lang.Object
  extended by 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

Constructor Summary
EmbargoMetadataEncoder()
           
 
Method Summary
 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.
 java.lang.String getClosedLicenseDescription()
           
 java.lang.String getClosedLicenseMachineReadable()
           
 java.lang.String getClosedLicenseURL()
           
 java.lang.String getOpenLicenseDescription()
           
 java.lang.String getOpenLicenseMachineReadable()
           
 java.lang.String getOpenLicenseURL()
           
 void setClosedLicenseDescription(java.lang.String closedLicenseDescription)
           
 void setClosedLicenseMachineReadable(java.lang.String closedLicenseMachineReadable)
           
 void setClosedLicenseURL(java.lang.String closedLicenseURL)
           
 void setOpenLicenseDescription(java.lang.String openLicenseDescription)
           
 void setOpenLicenseMachineReadable(java.lang.String openLicenseMachineReadable)
           
 void setOpenLicenseURL(java.lang.String openLicenseURL)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmbargoMetadataEncoder

public EmbargoMetadataEncoder()
Method Detail

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.