org.dspace.content.license
Class SimpleDSpaceObjectLicenseFormatter

java.lang.Object
  extended by org.dspace.content.license.SimpleDSpaceObjectLicenseFormatter
All Implemented Interfaces:
LicenseArgumentFormatter

public class SimpleDSpaceObjectLicenseFormatter
extends Object
implements LicenseArgumentFormatter

This is a simple implementation of the LicenseArgumentFormatter for a DSpaceObject. The formatter options width/precision are not take in care.

Author:
bollini

Constructor Summary
SimpleDSpaceObjectLicenseFormatter()
           
 
Method Summary
 void formatTo(Formatter formatter, int flags, int width, Object object, String type)
          Format the object following the java.util.Formatter rules.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleDSpaceObjectLicenseFormatter

public SimpleDSpaceObjectLicenseFormatter()
Method Detail

formatTo

public void formatTo(Formatter formatter,
                     int flags,
                     int width,
                     Object object,
                     String type)
Description copied from interface: LicenseArgumentFormatter
Format the object following the java.util.Formatter rules. The object type is expected to be know to the implementer can is free to assume safe to cast as appropriate. If a null object is supplied is expected that the implementer will work as if a "sample data" was requested.

Specified by:
formatTo in interface LicenseArgumentFormatter
Parameters:
formatter - the current formatter that need to process the object
flags - the flags option for the formatter
width - the width option for the formatter
object - the object to be formatted
type - the type of the object (this is an alias not the class name! - i.e. item, collection, eperson, etc.)
See Also:
Formatter


Copyright © 2010 DuraSpace. All Rights Reserved.