Class SimpleDSpaceObjectLicenseFormatter

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

    • SimpleDSpaceObjectLicenseFormatter

      public SimpleDSpaceObjectLicenseFormatter()
  • Method Details

    • 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: