com.atlassian.confluence.velocity.introspection
Class ToStringDelegatingAnnotationBoxedElement

java.lang.Object
  extended by com.atlassian.confluence.velocity.introspection.ToStringDelegatingAnnotationBoxedElement
All Implemented Interfaces:
AnnotationBoxedElement, BoxedValue, BoxingStrategy, AnnotatedElement

public final class ToStringDelegatingAnnotationBoxedElement
extends Object
implements AnnotationBoxedElement

AnnotationBoxedElement that delegates all operations to the wrapped element except for toString() which is delegated to the boxed value itself.


Constructor Summary
ToStringDelegatingAnnotationBoxedElement(AnnotationBoxedElement delegate)
           
 
Method Summary
 Object box(Object value)
          Box the provided value according to the boxing strategy
<T extends Annotation>
T
getAnnotation(Class<T> annotationType)
           
 Annotation[] getAnnotations()
           
 Annotation[] getDeclaredAnnotations()
           
 boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
           
 String toString()
           
 Object unbox()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ToStringDelegatingAnnotationBoxedElement

public ToStringDelegatingAnnotationBoxedElement(AnnotationBoxedElement delegate)
Method Detail

unbox

public Object unbox()
Specified by:
unbox in interface BoxedValue

isAnnotationPresent

public boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
Specified by:
isAnnotationPresent in interface AnnotatedElement

getAnnotation

public <T extends Annotation> T getAnnotation(Class<T> annotationType)
Specified by:
getAnnotation in interface AnnotatedElement

getAnnotations

public Annotation[] getAnnotations()
Specified by:
getAnnotations in interface AnnotatedElement

getDeclaredAnnotations

public Annotation[] getDeclaredAnnotations()
Specified by:
getDeclaredAnnotations in interface AnnotatedElement

box

public Object box(Object value)
Description copied from interface: BoxingStrategy
Box the provided value according to the boxing strategy

Specified by:
box in interface BoxingStrategy
Parameters:
value - object to box
Returns:
value boxed according to this strategy

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003-2012 Atlassian. All Rights Reserved.