org.dspace.content.license
Class FormattableArgument

java.lang.Object
  extended by org.dspace.content.license.FormattableArgument
All Implemented Interfaces:
Formattable

public class FormattableArgument
extends Object
implements Formattable

Wrapper class to make formattable any argument used in the license template. The formatter behavior is delegated to a specific class on "type" basis using the PluginManager

Author:
bollini
See Also:
Formattable, LicenseArgumentFormatter

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

Constructor Detail

FormattableArgument

public FormattableArgument(String type,
                           Object object)
Method Detail

formatTo

public void formatTo(Formatter formatter,
                     int flags,
                     int width,
                     int precision)
Specified by:
formatTo in interface Formattable


Copyright © 2010 DuraSpace. All Rights Reserved.