|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.tngtech.jgiven.annotation.DefaultTagDescriptionGenerator
public class DefaultTagDescriptionGenerator
A default implementation of TagDescriptionGenerator.
It just calls tagConfiguration.getDescription().
| Constructor Summary | |
|---|---|
DefaultTagDescriptionGenerator()
|
|
| Method Summary | |
|---|---|
java.lang.String |
generateDescription(TagConfiguration tagConfiguration,
java.lang.annotation.Annotation annotation,
java.lang.Object value)
Implement this method to generate the description for the given annotation and its value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultTagDescriptionGenerator()
| Method Detail |
|---|
public java.lang.String generateDescription(TagConfiguration tagConfiguration,
java.lang.annotation.Annotation annotation,
java.lang.Object value)
TagDescriptionGenerator
Note that when the value of the annotation is an array and IsTag.explodeArray()
is true, then this method is called for each value of the array and not once for the whole array.
Otherwise it is called only once.
generateDescription in interface TagDescriptionGeneratortagConfiguration - the configuration of the tag. The values typically correspond to the annotation.
However, it is also possible to configure annotations to be tags using JGivenConfiguration,
in which case there is no IsTag annotation.annotation - the actual annotation that was used as a tagvalue - the value of the annotation. If the annotation has no value the default value is passed (IsTag.value()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||