| Modifier and Type | Field and Description |
|---|---|
static Annotation |
HTML_SAFE_ANNOTATION |
static Set<Annotation> |
HTML_SAFE_ANNOTATION_COLLECTION |
| 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 |
endsWithHtmlIgnoreCase(String name)
Detects whether or not a symbol ends with "HTML", regardless of case.
|
static boolean |
hasHtmlSafeToStringMethod(Object value)
Return true if the object has a toString method that has been annotated as HtmlSafe
|
static boolean |
isHtmlSafeValue(AnnotationBoxedElement<?> value)
Determines whether an annotated value is htmlsafe (i.e should not be encoded during rendering)
|
public static final Annotation HTML_SAFE_ANNOTATION
public static final Set<Annotation> HTML_SAFE_ANNOTATION_COLLECTION
public static boolean hasHtmlSafeToStringMethod(Object value)
value - Object to querypublic static boolean isHtmlSafeValue(AnnotationBoxedElement<?> value)
value - Object to querypublic static boolean containsAnnotationOfType(Collection<Annotation> annotations, Class<? extends Annotation> annotationType)
annotations - Collection to scanannotationType - Annotation type to detectpublic static boolean endsWithHtmlIgnoreCase(String name)
name - the name to be examinedCopyright © 2018 Atlassian. All rights reserved.