org.jvnet.annox.model
Class XAnnotationField.XAnnotationArray

java.lang.Object
  extended by org.jvnet.annox.model.XAnnotationField<T[]>
      extended by org.jvnet.annox.model.XAnnotationField.XArrayField<T>
          extended by org.jvnet.annox.model.XAnnotationField.XFixedArrayField<XAnnotation>
              extended by org.jvnet.annox.model.XAnnotationField.XAnnotationArray
Enclosing class:
XAnnotationField<T>

public static class XAnnotationField.XAnnotationArray
extends XAnnotationField.XFixedArrayField<XAnnotation>

Annotation array field.

Author:
Aleksei Valikov

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jvnet.annox.model.XAnnotationField
XAnnotationField.XAnnotation, XAnnotationField.XAnnotationArray, XAnnotationField.XArrayField<T>, XAnnotationField.XBoolean, XAnnotationField.XBooleanArray, XAnnotationField.XByte, XAnnotationField.XByteArray, XAnnotationField.XChar, XAnnotationField.XCharArray, XAnnotationField.XClass, XAnnotationField.XClassArray, XAnnotationField.XDouble, XAnnotationField.XDoubleArray, XAnnotationField.XEnum, XAnnotationField.XEnumArray, XAnnotationField.XField<T>, XAnnotationField.XFixedArrayField<T>, XAnnotationField.XFixedField<T>, XAnnotationField.XFloat, XAnnotationField.XFloatArray, XAnnotationField.XInt, XAnnotationField.XIntArray, XAnnotationField.XLong, XAnnotationField.XLongArray, XAnnotationField.XShort, XAnnotationField.XShortArray, XAnnotationField.XString, XAnnotationField.XStringArray
 
Constructor Summary
XAnnotationField.XAnnotationArray(String name, XAnnotation[] value, Class<? extends Annotation> annotationClass)
           
 
Method Summary
<T> T
accept(XAnnotationVisitor<T> visitor)
          Accepts the annotation visitor.
 Class<? extends Annotation> getAnnotationClass()
           
 Object getResult()
          Returns the result value of the field.
 Class<?> getType()
          Return the type of the field.
 
Methods inherited from class org.jvnet.annox.model.XAnnotationField.XFixedArrayField
getValue
 
Methods inherited from class org.jvnet.annox.model.XAnnotationField.XArrayField
equals, getInternalValue, hashCode, toString
 
Methods inherited from class org.jvnet.annox.model.XAnnotationField
getName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XAnnotationField.XAnnotationArray

public XAnnotationField.XAnnotationArray(String name,
                                         XAnnotation[] value,
                                         Class<? extends Annotation> annotationClass)
Method Detail

getType

public Class<?> getType()
Description copied from class: XAnnotationField
Return the type of the field.

Specified by:
getType in class XAnnotationField<XAnnotation[]>
Returns:
Type of the field.

getAnnotationClass

public Class<? extends Annotation> getAnnotationClass()

accept

public <T> T accept(XAnnotationVisitor<T> visitor)
Description copied from class: XAnnotationField
Accepts the annotation visitor.

Specified by:
accept in class XAnnotationField<XAnnotation[]>
Type Parameters:
T - Return type of the visitor.
Parameters:
visitor - visitor to accept.
Returns:
Result of the visit.

getResult

public Object getResult()
Description copied from class: XAnnotationField
Returns the result value of the field. By default, returns the value of the field.

Overrides:
getResult in class XAnnotationField.XArrayField<XAnnotation>
Returns:
Result value of the field.


Copyright © 2006-2011 Highsource. All Rights Reserved.