Interface R2WMetaData
-
public interface R2WMetaDataThe R2D XML wrapper API
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddKeyword(String name, String value)Add a keyword to the meta datavoidaddKeyword(String name, String value, String page)Add a keyword to the meta data with the pageLonggetJobId()Get the JobIdvoidsetAuthor(String author)Set the author of the documentvoidsetDefaultFormat(String extension)The default format to apply to the publicationvoidsetDescription(String desc)The description of the filevoidsetExpiration(DateTimeZone expirationDate)The expiration date to expire the document onvoidsetFileName(String fileName)The filename of the publicationvoidsetJobId(Long jobId)Set the JobId in the meta datavoidsetPublicationProfile(String profileName)Set the publication profile namevoidsetSubject(String subject)Set the subject of the document (this will default to description if not set)voidsetTitle(String title)Set the title of the documentvoidwriteXML(OutputStream os)Write the R2D XML to the output stream.
-
-
-
Method Detail
-
setJobId
void setJobId(Long jobId)
Set the JobId in the meta data- Parameters:
jobId- the JobId
-
getJobId
Long getJobId()
Get the JobId- Returns:
- the Job Id
-
setDescription
void setDescription(String desc)
The description of the file- Parameters:
desc- the description
-
addKeyword
void addKeyword(String name, String value)
Add a keyword to the meta data- Parameters:
name- the keyword namevalue- the keyword value
-
addKeyword
void addKeyword(String name, String value, String page)
Add a keyword to the meta data with the page- Parameters:
name- the keyword namevalue- the keyword valuepage- the page of the keyword
-
setTitle
void setTitle(String title)
Set the title of the document- Parameters:
title- the title
-
setSubject
void setSubject(String subject)
Set the subject of the document (this will default to description if not set)- Parameters:
subject- the subject
-
setAuthor
void setAuthor(String author)
Set the author of the document- Parameters:
author- the author
-
setDefaultFormat
void setDefaultFormat(String extension)
The default format to apply to the publication- Parameters:
extension- the extension of the default format
-
setExpiration
void setExpiration(DateTimeZone expirationDate)
The expiration date to expire the document on- Parameters:
expirationDate- the date
-
setFileName
void setFileName(String fileName)
The filename of the publication- Parameters:
fileName- the filename
-
setPublicationProfile
void setPublicationProfile(String profileName)
Set the publication profile name- Parameters:
profileName- the name of the publication profile
-
writeXML
void writeXML(OutputStream os) throws IOException
Write the R2D XML to the output stream. Note the OutputStream is not closed by this method.- Parameters:
os- the stream to write to- Throws:
IOException- if the write fails
-
-