com.greenpepper.annotation.MissingAnnotation Maven / Gradle / Ivy
package com.greenpepper.annotation;
import static com.greenpepper.GreenPepper.$;
import com.greenpepper.Text;
/**
* MissingAnnotation class.
*
* @author oaouattara
* @version $Id: $Id
*/
public class MissingAnnotation 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()
{
StringBuilder message = new StringBuilder();
message.append( "" ).append( $( "missing" ) ).append( " " );
return message.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy