org.jproggy.snippetory.engine.spi
Class ToggleFormat

java.lang.Object
  extended by org.jproggy.snippetory.engine.spi.ToggleFormat
All Implemented Interfaces:
Format

public class ToggleFormat
extends Object
implements Format


Nested Class Summary
static class ToggleFormat.Factory
           
 
Field Summary
 
Fields inherited from interface org.jproggy.snippetory.spi.Format
REGISTRY
 
Constructor Summary
ToggleFormat(String definition)
           
 
Method Summary
 String format(Object value)
          may only be called for supported values.
 boolean supports(Object value)
          Many formats only apply to a special type or even specific values.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToggleFormat

public ToggleFormat(String definition)
Method Detail

format

public String format(Object value)
Description copied from interface: Format
may only be called for supported values.

Specified by:
format in interface Format

supports

public boolean supports(Object value)
Description copied from interface: Format
Many formats only apply to a special type or even specific values. The format method will only be called for supported values

Specified by:
supports in interface Format