
com.greenpepper.annotation.IgnoredAnnotation Maven / Gradle / Ivy
package com.greenpepper.annotation;
import com.greenpepper.Text;
import com.greenpepper.TypeConversion;
/**
* IgnoredAnnotation class.
*
* @author oaouattara
* @version $Id: $Id
*/
public class IgnoredAnnotation implements Annotation
{
private final Object actual;
/**
* Constructor for IgnoredAnnotation.
*
* @param actual a {@link java.lang.Object} object.
*/
public IgnoredAnnotation(Object actual)
{
this.actual = actual;
}
/** {@inheritDoc} */
public void writeDown(Text text)
{
text.setStyle( Styles.BACKGROUND_COLOR, Colors.GRAY );
text.setStatus( Status.IGNORED );
text.setContent( TypeConversion.toString( actual ) );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy