com.indexdata.serviceproxy.plugins.recordexports
Class RisFormatter

java.lang.Object
  extended by com.indexdata.serviceproxy.plugins.recordexports.RisFormatter
All Implemented Interfaces:
RecordFormatter

public class RisFormatter
extends Object
implements RecordFormatter


Constructor Summary
RisFormatter(ExportParameters p)
           
 
Method Summary
 String format(List<Pz2Record> sourceRecords)
           
 String format(Pz2Record sourceRecord)
          Formats a Pazpar2 record and returns it
 String getContentType()
          Returns the default content type of the given output format
 String getFileExtension()
          Returns the default file extension of the given output format
 String getFileNamePart()
          Returns string that might be used as part of file name
 String getFormatName()
          Returns a string describing the format
 String getMessageText()
           
 boolean isAttachment()
           
 boolean isIndex()
           
 boolean isInline()
           
 boolean oneAttachmentPerRecord()
           
 boolean oneCombinedAttachment()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RisFormatter

public RisFormatter(ExportParameters p)
Method Detail

format

public String format(Pz2Record sourceRecord)
              throws StandardServiceException
Description copied from interface: RecordFormatter
Formats a Pazpar2 record and returns it

Specified by:
format in interface RecordFormatter
Returns:
Throws:
StandardServiceException

format

public String format(List<Pz2Record> sourceRecords)
              throws StandardServiceException
Specified by:
format in interface RecordFormatter
Throws:
StandardServiceException

getMessageText

public String getMessageText()
Specified by:
getMessageText in interface RecordFormatter

getContentType

public String getContentType()
Description copied from interface: RecordFormatter
Returns the default content type of the given output format

Specified by:
getContentType in interface RecordFormatter
Returns:

getFileNamePart

public String getFileNamePart()
Description copied from interface: RecordFormatter
Returns string that might be used as part of file name

Specified by:
getFileNamePart in interface RecordFormatter
Returns:

getFileExtension

public String getFileExtension()
Description copied from interface: RecordFormatter
Returns the default file extension of the given output format

Specified by:
getFileExtension in interface RecordFormatter
Returns:

getFormatName

public String getFormatName()
Description copied from interface: RecordFormatter
Returns a string describing the format

Specified by:
getFormatName in interface RecordFormatter
Returns:

isInline

public boolean isInline()
Specified by:
isInline in interface RecordFormatter

isIndex

public boolean isIndex()
Specified by:
isIndex in interface RecordFormatter

isAttachment

public boolean isAttachment()
Specified by:
isAttachment in interface RecordFormatter

oneCombinedAttachment

public boolean oneCombinedAttachment()
Specified by:
oneCombinedAttachment in interface RecordFormatter

oneAttachmentPerRecord

public boolean oneAttachmentPerRecord()
Specified by:
oneAttachmentPerRecord in interface RecordFormatter

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2013 Index Data. All Rights Reserved.