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
|
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 |
SimpleDSpaceObjectLicenseFormatter
public SimpleDSpaceObjectLicenseFormatter()
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 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
Copyright © 2011 DuraSpace. All Rights Reserved.