Package org.dspace.content.license
Class SimpleDSpaceObjectLicenseFormatter
java.lang.Object
org.dspace.content.license.SimpleDSpaceObjectLicenseFormatter
- All Implemented Interfaces:
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 -
Method Summary
-
Constructor Details
-
SimpleDSpaceObjectLicenseFormatter
public SimpleDSpaceObjectLicenseFormatter()
-
-
Method Details
-
formatTo
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:
-