com.greenpepper.annotation.NotEnteredAnnotation Maven / Gradle / Ivy
package com.greenpepper.annotation;
import static com.greenpepper.GreenPepper.$;
import com.greenpepper.Text;
/**
* NotEnteredAnnotation class.
*
* @author oaouattara
* @version $Id: $Id
*/
public class NotEnteredAnnotation implements Annotation
{
/** {@inheritDoc} */
public void writeDown(Text text)
{
text.setStyle( Styles.BACKGROUND_COLOR, Colors.RED );
text.setContent( message() );
}
private String message()
{
StringBuilder message = new StringBuilder();
message.append( "" ).append( $( "not_entered" ) ).append( "" );
return message.toString();
}
}