Package org.dspace.content.license
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 Summary
Constructors Constructor Description SimpleDSpaceObjectLicenseFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidformatTo(Formatter formatter, int flags, int width, Object object, String type)Format the object following thejava.util.Formatterrules.
-
-
-
Method Detail
-
formatTo
public void formatTo(Formatter formatter, int flags, int width, Object object, String type)
Description copied from interface:LicenseArgumentFormatterFormat the object following thejava.util.Formatterrules. The object type is expected to be know to the implementer can is free to assume safe to cast as appropriate. If anullobject is supplied is expected that the implementer will work as if a "sample data" was requested.- Specified by:
formatToin interfaceLicenseArgumentFormatter- Parameters:
formatter- the current formatter that need to process the objectflags- the flags option for the formatterwidth- the width option for the formatterobject- the object to be formattedtype- the type of the object (this is an alias not the class name! - i.e. item, collection, eperson, etc.)- See Also:
Formatter
-
-