Interface R2WMetaData
- 
 public interface R2WMetaDataThe R2D XML wrapper API
- 
- 
Method SummaryAll 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- 
setJobIdvoid setJobId(Long jobId) Set the JobId in the meta data- Parameters:
- jobId- the JobId
 
 - 
getJobIdLong getJobId() Get the JobId- Returns:
- the Job Id
 
 - 
setDescriptionvoid setDescription(String desc) The description of the file- Parameters:
- desc- the description
 
 - 
addKeywordvoid addKeyword(String name, String value) Add a keyword to the meta data- Parameters:
- name- the keyword name
- value- the keyword value
 
 - 
addKeywordvoid addKeyword(String name, String value, String page) Add a keyword to the meta data with the page- Parameters:
- name- the keyword name
- value- the keyword value
- page- the page of the keyword
 
 - 
setTitlevoid setTitle(String title) Set the title of the document- Parameters:
- title- the title
 
 - 
setSubjectvoid setSubject(String subject) Set the subject of the document (this will default to description if not set)- Parameters:
- subject- the subject
 
 - 
setAuthorvoid setAuthor(String author) Set the author of the document- Parameters:
- author- the author
 
 - 
setDefaultFormatvoid setDefaultFormat(String extension) The default format to apply to the publication- Parameters:
- extension- the extension of the default format
 
 - 
setExpirationvoid setExpiration(DateTimeZone expirationDate) The expiration date to expire the document on- Parameters:
- expirationDate- the date
 
 - 
setFileNamevoid setFileName(String fileName) The filename of the publication- Parameters:
- fileName- the filename
 
 - 
setPublicationProfilevoid setPublicationProfile(String profileName) Set the publication profile name- Parameters:
- profileName- the name of the publication profile
 
 - 
writeXMLvoid 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
 
 
- 
 
-