Modifier and Type | Field and Description |
---|---|
static Annotation |
ATLASSIAN_HTML_SAFE_ANNOTATION |
static Annotation |
HTML_SAFE_ANNOTATION |
Modifier and Type | Method and Description |
---|---|
static boolean |
containsAnnotationOfType(Collection<Annotation> annotations,
Class<? extends Annotation> annotationType)
Detects whether a collection contains an annotation of a particular type
|
static boolean |
hasHtmlSafeToStringMethod(Object value)
Return true if the object has a toString method that has been annotated as HtmlSafe
|
static boolean |
isHtmlSafeValue(com.atlassian.velocity.htmlsafe.introspection.AnnotationBoxedElement value)
Determines wheter an annotated value is htmlsafe (i.e should not be encoded during rendering)
|
public static final Annotation HTML_SAFE_ANNOTATION
public static final Annotation ATLASSIAN_HTML_SAFE_ANNOTATION
public static boolean hasHtmlSafeToStringMethod(Object value)
value
- Object to querypublic static boolean isHtmlSafeValue(com.atlassian.velocity.htmlsafe.introspection.AnnotationBoxedElement value)
value
- Object to querypublic static boolean containsAnnotationOfType(Collection<Annotation> annotations, Class<? extends Annotation> annotationType)
annotations
- Collection to scanannotationType
- Annotation type to detectCopyright © 2003–2023 Atlassian. All rights reserved.