org.jvnet.annox.model
Class XAnnotationField.XAnnotation

java.lang.Object
  extended by org.jvnet.annox.model.XAnnotationField<T>
      extended by org.jvnet.annox.model.XAnnotationField.XField<T>
          extended by org.jvnet.annox.model.XAnnotationField.XFixedField<XAnnotation>
              extended by org.jvnet.annox.model.XAnnotationField.XAnnotation
Enclosing class:
XAnnotationField<T>

public static class XAnnotationField.XAnnotation
extends XAnnotationField.XFixedField<XAnnotation>


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.XAnnotation(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.XFixedField
getValue
 
Methods inherited from class org.jvnet.annox.model.XAnnotationField.XField
equals, hashCode, toString
 
Methods inherited from class org.jvnet.annox.model.XAnnotationField
getInternalValue, getName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XAnnotationField.XAnnotation

public XAnnotationField.XAnnotation(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<XAnnotation>
Returns:
Result value of the field.


Copyright © 2006-2011 Highsource. All Rights Reserved.