com.greenpepper.annotation.SurplusAnnotation Maven / Gradle / Ivy
The newest version!
package com.greenpepper.annotation;
import static com.greenpepper.GreenPepper.$;
import com.greenpepper.Text;
/**
* SurplusAnnotation class.
*
* @author oaouattara
* @version $Id: $Id
*/
public class SurplusAnnotation implements Annotation
{
/** {@inheritDoc} */
public void writeDown(Text text)
{
text.setStyle( Styles.BACKGROUND_COLOR, Colors.RED );
text.setStatus( Status.FAILLURE );
text.setContent( message() + text.getContent() );
}
private String message()
{
return "" + $("surplus") + " ";
}
}