|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.velocity.htmlsafe.HtmlSafeAnnotationUtils
public final class HtmlSafeAnnotationUtils
Utilities for working with the HtmlSafe annotation
| Field Summary | |
|---|---|
static java.lang.annotation.Annotation |
ATLASSIAN_HTML_SAFE_ANNOTATION
|
static java.lang.annotation.Annotation |
HTML_SAFE_ANNOTATION
|
| Method Summary | |
|---|---|
static boolean |
containsAnnotationOfType(java.util.Collection<java.lang.annotation.Annotation> annotations,
java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Detects whether a collection contains an annotation of a particular type |
static boolean |
hasHtmlSafeToStringMethod(java.lang.Object value)
Return true if the object has a toString method that has been annotated as HtmlSafe |
static boolean |
isHtmlSafeValue(AnnotationBoxedElement value)
Determines wheter an annotated value is htmlsafe (i.e should not be encoded during rendering) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.annotation.Annotation HTML_SAFE_ANNOTATION
public static final java.lang.annotation.Annotation ATLASSIAN_HTML_SAFE_ANNOTATION
| Method Detail |
|---|
public static boolean hasHtmlSafeToStringMethod(java.lang.Object value)
value - Object to query
public static boolean isHtmlSafeValue(AnnotationBoxedElement value)
value - Object to query
public static boolean containsAnnotationOfType(java.util.Collection<java.lang.annotation.Annotation> annotations,
java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
annotations - Collection to scanannotationType - Annotation type to detect
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||